Evals
Attach Execution To Eval Endpoint
Path Parameters
Request Body
application/json
The eval to attach to. It must exist and not be archived. Attaching to the eval the run already belongs to is a no-op; another eval needs a detach first.
Response Body
application/json
curl -X POST "https://loading/executions/string/eval" \ -H "Content-Type: application/json" \ -d '{ "eval_id": "string" }'{
"execution_id": "string",
"eval_id": "string",
"association_kind": "launched",
"launched_eval_id": "string"
}Detach Execution From Eval Endpoint
Path Parameters
Query Parameters
The eval to detach from. Must be the eval the run belongs to, or none.
Response Body
application/json
curl -X DELETE "https://loading/executions/string/eval?eval_id=string"{
"execution_id": "string",
"eval_id": "string",
"association_kind": "launched",
"launched_eval_id": "string"
}Set Workflow Default Eval Endpoint
Path Parameters
Request Body
application/json
The default eval, which must exist and not be archived. Null clears it. Runs already started keep the eval they launched into.
Response Body
application/json
curl -X PUT "https://loading/workflows/string/default-eval" \ -H "Content-Type: application/json" \ -d '{ "eval_id": "string" }'{
"workflow_id": "string",
"default_eval_id": "string"
}List Evals Endpoint
Query Parameters
Keep only active or only archived evals. Both when omitted.
Case-insensitive match on id, name and goal
Keep evals carrying this tag; repeat for AND
11 <= value501 <= value <= 200Response Body
application/json
application/json
curl -X GET "https://loading/evals"{
"evals": [
{
"eval_id": "string",
"name": "string",
"goal": "string",
"starting_workflow_id": "string",
"baseline_repos": [
{
"repository": "string",
"requested_ref": "string",
"commit_sha": "string"
}
],
"tags": [
"string"
],
"frozen": true,
"archived": true,
"created_at": "string",
"updated_at": "string",
"run_count": 0,
"run_status_counts": {
"property1": 0,
"property2": 0
},
"scored_count": 0,
"pass_rate": 0,
"pass_rate_display": "—",
"last_run_at": "string",
"last_verdict": "PASS",
"variants": [
{
"workflow_id": "string",
"workflow_version": "string",
"models": [
"string"
],
"run_count": 0,
"pass_count": 0,
"pass_rate": 0,
"pass_rate_display": "string",
"avg_cost_usd": "string",
"avg_cost_display": "string",
"last_run_at": "string",
"last_verdict": "PASS",
"stats": {
"median_duration_seconds": 0,
"median_duration_display": "string",
"incomplete_duration_count": 0,
"median_cost_usd": "string",
"median_cost_display": "string",
"incomplete_cost_count": 0,
"cost_per_pass_usd": "string",
"cost_per_pass_display": "string"
}
}
],
"stats": {
"median_duration_seconds": 0,
"median_duration_display": "string",
"incomplete_duration_count": 0,
"median_cost_usd": "string",
"median_cost_display": "string",
"incomplete_cost_count": 0,
"cost_per_pass_usd": "string",
"cost_per_pass_display": "string"
}
}
],
"total": 0,
"page": 0,
"page_size": 0,
"status_counts": {
"property1": 0,
"property2": 0
},
"read_model_status": {
"rebuilding": true,
"projection": "string",
"label_display": "string",
"progress_pct": 0,
"progress_display": "string",
"events_behind": 0,
"events_behind_display": "string",
"summary_display": "string"
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Create Eval Endpoint
Request Body
application/json
Makes the create idempotent (#1920): the eval id is derived from this key, so every create with the same key, concurrent ones included, answers with the one eval. A create that differs from the one that made it is refused.
1 <= length <= 200What the eval sets out to measure.
1 <= lengthThe workflow a run uses when it names none.
Response Body
application/json
curl -X POST "https://loading/evals" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "goal": "string" }'{
"eval_id": "string",
"name": "string",
"goal": "string",
"starting_workflow_id": "string",
"baseline_repos": [
{
"repository": "string",
"requested_ref": "string",
"commit_sha": "string"
}
],
"tags": [
"string"
]
}Get Eval Endpoint
Path Parameters
Query Parameters
Add this eval's pass@k / pass^k in every cohort, over k trials
Response Body
application/json
curl -X GET "https://loading/evals/string"{
"eval_id": "string",
"name": "string",
"goal": "string",
"starting_workflow_id": "string",
"baseline_repos": [
{
"repository": "string",
"requested_ref": "string",
"commit_sha": "string"
}
],
"tags": [
"string"
],
"frozen": true,
"archived": true,
"created_at": "string",
"updated_at": "string",
"run_count": 0,
"run_status_counts": {
"property1": 0,
"property2": 0
},
"scored_count": 0,
"pass_rate": 0,
"pass_rate_display": "—",
"last_run_at": "string",
"last_verdict": "PASS",
"variants": [
{
"workflow_id": "string",
"workflow_version": "string",
"models": [
"string"
],
"run_count": 0,
"pass_count": 0,
"pass_rate": 0,
"pass_rate_display": "string",
"avg_cost_usd": "string",
"avg_cost_display": "string",
"last_run_at": "string",
"last_verdict": "PASS",
"stats": {
"median_duration_seconds": 0,
"median_duration_display": "string",
"incomplete_duration_count": 0,
"median_cost_usd": "string",
"median_cost_display": "string",
"incomplete_cost_count": 0,
"cost_per_pass_usd": "string",
"cost_per_pass_display": "string"
}
}
],
"stats": {
"median_duration_seconds": 0,
"median_duration_display": "string",
"incomplete_duration_count": 0,
"median_cost_usd": "string",
"median_cost_display": "string",
"incomplete_cost_count": 0,
"cost_per_pass_usd": "string",
"cost_per_pass_display": "string"
},
"read_model_status": {
"rebuilding": true,
"projection": "string",
"label_display": "string",
"progress_pct": 0,
"progress_display": "string",
"events_behind": 0,
"events_behind_display": "string",
"summary_display": "string"
},
"cohorts": [
{
"cohort": {
"suite_version": "string",
"workflow_id": "string",
"workflow_version": "string",
"models_digest": "string",
"scorer_protocol": "string"
},
"metrics": {
"eval_id": "string",
"k": 0,
"n": 0,
"c": 0,
"pending": 0,
"infra_error_count": 0,
"base_mismatch_count": 0,
"treatment_mismatch_count": 0,
"trials_short": 0,
"exhausted": true,
"complete": true,
"never_launched": true,
"pass_at_k": 0,
"pass_at_k_display": "string",
"pass_hat_k": 0,
"pass_hat_k_display": "string",
"flaky": true,
"pass_at_k_bounds": {
"lower": 0,
"upper": 0,
"display": "string"
},
"pass_hat_k_bounds": {
"lower": 0,
"upper": 0,
"display": "string"
}
}
}
]
}List Eval Runs Endpoint
Path Parameters
Query Parameters
Comma-separated execution statuses (OR'd)
11 <= value501 <= value <= 200Response Body
application/json
curl -X GET "https://loading/evals/string/runs"{
"items": [
{
"execution_id": "string",
"started_at": "string",
"completed_at": "string",
"status": "string",
"workflow_id": "string",
"workflow_version": "string",
"models": [
{
"phase_id": "string",
"model": "string"
}
],
"total_cost_usd": "string",
"total_cost_display": "string",
"duration_seconds": 0,
"duration_display": "string",
"verdict": "PASS",
"score": 0,
"evidence_excerpt": "string",
"scorer": "string",
"scorer_version": "string",
"scored_at": "string",
"judge_model": "string",
"trial_result": "pass"
}
],
"total": 0,
"page": 0,
"page_size": 0
}Get Eval Trend Endpoint
Path Parameters
Query Parameters
11 <= value501 <= value <= 200Response Body
application/json
curl -X GET "https://loading/evals/string/trend"{
"definition_version": "string",
"definition_changed_at": "string",
"definition_changes": [
{
"definition_version": "string",
"changed_at": "string",
"kind": "created"
}
],
"eval_id": "string",
"items": [
{
"execution_id": "string",
"date": "string",
"workflow_id": "string",
"workflow_version": "string",
"eval_definition_version": "string",
"verifier_model": "string",
"observed_models": [
"string"
],
"judge_model": "string",
"score": 0,
"verdict": "PASS",
"cost_usd": "string",
"cost_is_lower_bound": true,
"cost_display": "string",
"duration_seconds": 0,
"duration_is_lower_bound": true,
"duration_display": "string",
"tokens": 0
}
],
"total": 0,
"page": 0,
"page_size": 0
}Score Eval Run Endpoint
Path Parameters
Request Body
application/json
What a scorer concluded about one run of an eval.
ERROR is the scorer's own failure to reach a conclusion (the run left
nothing to judge, or the scorer broke), never a judgement that the run
failed. It counts as scored, and not as passed.
"PASS" | "FAIL" | "ERROR"""1 <= length1 <= lengthResponse Body
application/json
curl -X POST "https://loading/evals/string/runs/string/score" \ -H "Content-Type: application/json" \ -d '{ "verdict": "PASS", "scorer": "string", "scorer_version": "string" }'{
"eval_id": "string",
"execution_id": "string",
"verdict": "PASS",
"score": 0,
"evidence": "string",
"scorer": "string",
"scorer_version": "string",
"scored_at": "string",
"judge_model": "string"
}curl -X POST "https://loading/evals/string/archive"{
"eval_id": "string",
"archived": true
}Get Eval Set Metrics Endpoint
Query Parameters
The eval set: evals tagged suite:
1 <= lengthThe roster version: evals tagged suite-version:
1 <= lengthTrials per case the figures are computed over
1 <= valueKeep only cases of this split, e.g. holdout
Response Body
application/json
application/json
curl -X GET "https://loading/eval-sets/metrics?suite=string&version=string&k=1"{
"suite": "string",
"version": "string",
"split": "string",
"k": 0,
"roster": [
{
"eval_id": "string",
"split": "string",
"polarity": "string"
}
],
"cohorts": [
{
"cohort": {
"suite_version": "string",
"workflow_id": "string",
"workflow_version": "string",
"models_digest": "string",
"scorer_protocol": "string"
},
"k": 0,
"cases": [
{
"eval_id": "string",
"k": 0,
"n": 0,
"c": 0,
"pending": 0,
"infra_error_count": 0,
"base_mismatch_count": 0,
"treatment_mismatch_count": 0,
"trials_short": 0,
"exhausted": true,
"complete": true,
"never_launched": true,
"pass_at_k": 0,
"pass_at_k_display": "string",
"pass_hat_k": 0,
"pass_hat_k_display": "string",
"flaky": true,
"pass_at_k_bounds": {
"lower": 0,
"upper": 0,
"display": "string"
},
"pass_hat_k_bounds": {
"lower": 0,
"upper": 0,
"display": "string"
}
}
],
"coverage": {
"roster_size": 0,
"complete": 0,
"short": 0,
"never_launched": 0
},
"mean_pass_at_k": 0,
"mean_pass_at_k_display": "string",
"mean_pass_hat_k": 0,
"mean_pass_hat_k_display": "string",
"flakiness": 0,
"partial": true,
"flaky_cases": [
"string"
],
"pass_at_k_bounds": {
"lower": 0,
"upper": 0,
"display": "string"
},
"pass_hat_k_bounds": {
"lower": 0,
"upper": 0,
"display": "string"
},
"infra_error_count": 0,
"infra_share": 0,
"base_mismatch_count": 0,
"treatment_mismatch_count": 0,
"image_manifests": [
{
"provider": "string",
"provider_version": "string",
"components": {
"property1": "string",
"property2": "string"
},
"build_commit": "string",
"built_at": "string",
"manifest_digest": "string"
}
],
"trials_without_image_manifest": 0
}
],
"comparison": {
"a": {
"suite_version": "string",
"workflow_id": "string",
"workflow_version": "string",
"models_digest": "string",
"scorer_protocol": "string"
},
"b": {
"suite_version": "string",
"workflow_id": "string",
"workflow_version": "string",
"models_digest": "string",
"scorer_protocol": "string"
},
"k": 0,
"paired_cases": [
"string"
],
"short_cases": [
"string"
],
"coverage_complete": true,
"a_only": 0,
"b_only": 0,
"both": 0,
"neither": 0,
"mcnemar_p": 0,
"difference": {
"estimate": 0,
"low": 0,
"high": 0
},
"a_lower_minus_b_upper": {
"estimate": 0,
"low": 0,
"high": 0
},
"a_upper_minus_b_lower": {
"estimate": 0,
"low": 0,
"high": 0
}
},
"not_a_trial_count": 0,
"isolation": "unproven"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}