run_evaluator
Judges one Session using a saved Evaluator version and stores the Evaluation Run for history and tracking.
Instructions
Runs one Evaluator version on one Session and keeps the result. A judged Evaluator costs money.
Unlike try_evaluator, which runs source you send and stores nothing, this runs a saved
Evaluator version and stores an Evaluation Run that shows in list_evaluation_runs and in the Metric's history
over time. Use it to judge one Session with
an Evaluator that already exists; to judge many Sessions with a Metric Group use
start_experiment_run. An Evaluator that judges with a model costs a model call per judged
turn on the customer's provider, so say so and get a yes first. Find the version id with
get_evaluator (latest_version or versions) and the Session with list_sessions.
outcome ERRORED means the Evaluator's code broke: read error_detail. metrics are
the values per address with their rationales. If status is still CREATED or STARTED the
wait ran out: poll get_evaluation_run with the evaluation_run_id.
:param pipeline_name: Name of the pipeline the Session belongs to.
:param evaluator_version_id: The exact Evaluator version to run.
:param session_id: The Session to judge: a search_session_id, or a single-turn run's query_id.
:param wait_seconds: How long to wait for the result before handing back the id to poll.
:returns: The Evaluation Run, 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>",
"evaluator_version_id": "<evaluator_version_id>",
"session_id": "<session_id>"
},
"name": "run_evaluator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| wait_seconds | No | ||
| pipeline_name | Yes | ||
| evaluator_version_id | Yes |