Evaluation Datasets & Runs
The Eval API provides organization-scoped scaffolding for defining evaluation datasets, scheduling runs against an agent and rubric, and recording per-case results and aggregate scores. Automated execution is driven by the agent runtime worker; this API owns the durable state. All eval endpoints require the caller to be an organization owner or admin.Base URL
Endpoints
Datasets
A dataset is a named collection of test cases. Each case is a free-form JSON object; common fields areinput and expected_output.
Create a dataset
Request body
Response
Update a dataset
Delete a dataset
Response
Runs
A run binds a dataset to an agent and optional rubric. The runtime worker executes the run and records results.Create a run
Request body
Response
Record scores
After a run completes, record per-case results and aggregate scores.Request body
Response
pending, running, completed, failed.
Grade a run against a rubric
rubric_id is omitted, the rubric set on the run is used.
Response
Error codes
Related pages
- Outcome Rubrics — define scoring criteria
- Eval Metrics — built-in metrics and scoring helpers