Cancel an eval run
Cancel an in-flight eval run. Any non-terminal per-prompt jobs are cancelled and the run is archived — the response returns the updated run inline (status: CANCELLED, is_archived: true); use /unarchive to surface it in the default archived=false list again.
Path parameters
The unique identifier of the eval run.
The unique identifier of the eval run.
Response
Cancellation processed.
Example response
{
"cancelled": 4,
"run": {
"created_at": "2025-01-15T10:00:00.000Z",
"id": "660e8400-e29b-41d4-a716-446655440001",
"model_id": "880e8400-e29b-41d4-a716-446655440003",
"prompt_set_id": "550e8400-e29b-41d4-a716-446655440000",
"repeat_count": 1,
"results": [
{
"agentic_job": {
"conversation_id": "770e8400-e29b-41d4-a716-446655440002",
"id": "990e8400-e29b-41d4-a716-446655440004",
"state": "COMPLETE"
},
"ai_timing_ms": 4121,
"cost": 0.0021,
"eval_prompt_id": "bb0e8400-e29b-41d4-a716-446655440007",
"expectation": "The top product by revenue should be Aniseed Syrup.",
"id": "aa0e8400-e29b-41d4-a716-446655440005",
"prompt": "What are the top 5 products by revenue?",
"query_count": 4,
"query_timing_ms": 1800,
"score": 0.9,
"scoring_cost": 0.0004,
"timing_ms": 4321,
"tool_timing_ms": 200
}
],
"run_number": 3,
"status": "RUNNING"
},
"total": 12
}Changes
Changed in 1 of the 23 revisions of this API.3
- ○
added the required property
run/allOf[EvalRunDetail]/repeat_countto the response with the200statusresponse-required-property-added
- ○
added the required property
run/allOf[EvalRunDetail]/results/items/eval_prompt_idto the response with the200statusresponse-required-property-added
- ○
added the required property
run/allOf[EvalRunDetail]/results/items/repeat_indexto the response with the200statusresponse-required-property-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○