try_evaluator
Tests an Evaluation Function against a session to validate a draft evaluator or judge a replay, returning metrics, rationales, and error details.
Instructions
Tries Evaluator source on one Session and returns what it found. Persists nothing.
Use it to check a draft before showing it as ready, and to judge a replayed Session against
its source. The source is an Evaluation Function: a Python function that reads one Session and
reports named Metrics declared with @metrics. To try a saved Evaluator, read a version's
python_code with get_evaluator and pass it. A try that
judges with a model costs a model call per judged turn on the customer's provider.
test_case_id hands the Evaluation Function that Dataset test case's expected data, so a
correctness Evaluator can be tried on any Session; leave it out to use the test case the Session
replayed, if any.
outcome ERRORED means the code broke: read error_detail and fix it. metrics are the
values per address with their rationales. trace_summary says which Session Tools the
evaluator called. If status is RUNNING the wait ran out: poll get_evaluation_try.
:param pipeline_name: Name of the pipeline the Session belongs to.
:param python_code: The Evaluation Function's source.
:param session_id: The Session to judge: a search_session_id, or a single-turn run's query_id.
:param test_case_id: A Dataset test case whose expected data the Evaluation Function receives.
:param wait_seconds: How long to wait for the result before handing back the id to poll.
:returns: The try report, or an error message.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pipeline_name": "<pipeline_name>",
"python_code": "<python_code>",
"session_id": "<session_id>"
},
"name": "try_evaluator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| python_code | Yes | ||
| test_case_id | No | ||
| wait_seconds | No | ||
| pipeline_name | Yes |