v1
latestOpenAPI 3.1.02026-07-2618690613.4 KBAI Eval
Start an eval run
Create and start a new run against an existing prompt set. The run enqueues one agentic job per prompt and begins executing immediately. Returns the newly created run with its initial per-prompt result rows.
post/v1/ai/eval/runs
Request body
Example request
{
"description": "Re-running after switching to gpt-4o for query generation",
"prompt_set_id": "550e8400-e29b-41d4-a716-446655440000",
"run_config": {
"branch_id": "440e8400-e29b-41d4-a716-446655440006"
}
}Response
Run created and jobs enqueued.
Example response
{
"job_count": 12,
"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",
"results": [
{
"agentic_job": {
"conversation_id": "770e8400-e29b-41d4-a716-446655440002",
"id": "990e8400-e29b-41d4-a716-446655440004",
"state": "COMPLETE"
},
"cost": 0.0021,
"id": "aa0e8400-e29b-41d4-a716-446655440005",
"prompt": "What are the top 5 products by revenue?",
"score": 0.9,
"scoring_cost": 0.0004,
"timing_ms": 4321
}
],
"run_number": 3,
"status": "RUNNING"
}
}