Evals

Attach Execution To Eval Endpoint

POST
/executions/{execution_id}/eval

Path Parameters

execution_id*string

Request Body

application/json

eval_id*string

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.

[key: string]?never

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"
}
Empty
Empty
Empty

Detach Execution From Eval Endpoint

DELETE
/executions/{execution_id}/eval

Path Parameters

execution_id*string

Query Parameters

eval_id*string

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"
}
Empty
Empty
Empty

Set Workflow Default Eval Endpoint

PUT
/workflows/{workflow_id}/default-eval

Path Parameters

workflow_id*string

Request Body

application/json

eval_id*|

The default eval, which must exist and not be archived. Null clears it. Runs already started keep the eval they launched into.

[key: string]?never

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"
}
Empty
Empty
Empty

List Evals Endpoint

GET
/evals

Query Parameters

status?|

Keep only active or only archived evals. Both when omitted.

q?|

Case-insensitive match on id, name and goal

tag?array<>|

Keep evals carrying this tag; repeat for AND

page?integer
Default1
Range1 <= value
page_size?integer
Default50
Range1 <= value <= 200

Response 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

POST
/evals

Request Body

application/json

stable_key?|

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.

name*string
Length1 <= length <= 200
goal*string

What the eval sets out to measure.

Length1 <= length
starting_workflow_id?|

The workflow a run uses when it names none.

baseline_repos?array<>
tags?array<>
[key: string]?never

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"
  ]
}
Empty

Get Eval Endpoint

GET
/evals/{eval_id}

Path Parameters

eval_id*string

Query Parameters

k?|

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"
        }
      }
    }
  ]
}
Empty
Empty

List Eval Runs Endpoint

GET
/evals/{eval_id}/runs

Path Parameters

eval_id*string

Query Parameters

statuses?|

Comma-separated execution statuses (OR'd)

page?integer
Default1
Range1 <= value
page_size?integer
Default50
Range1 <= value <= 200

Response 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
}
Empty
Empty

Get Eval Trend Endpoint

GET
/evals/{eval_id}/trend

Path Parameters

eval_id*string

Query Parameters

page?integer
Default1
Range1 <= value
page_size?integer
Default50
Range1 <= value <= 200

Response 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
}
Empty
Empty

Score Eval Run Endpoint

POST
/evals/{eval_id}/runs/{execution_id}/score

Path Parameters

eval_id*string
execution_id*string

Request Body

application/json

verdict*string

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.

Value in"PASS" | "FAIL" | "ERROR"
score?|
evidence?string
Default""
scorer*string
Length1 <= length
scorer_version*string
Length1 <= length
judge_model?|
[key: string]?never

Response 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"
}
Empty
Empty
Empty

Archive Eval Endpoint

POST
/evals/{eval_id}/archive

Path Parameters

eval_id*string

Response Body

application/json

curl -X POST "https://loading/evals/string/archive"
{
  "eval_id": "string",
  "archived": true
}
Empty
Empty

Get Eval Set Metrics Endpoint

GET
/eval-sets/metrics

Query Parameters

suite*string

The eval set: evals tagged suite:

Length1 <= length
version*string

The roster version: evals tagged suite-version:

Length1 <= length
k*integer

Trials per case the figures are computed over

Range1 <= value
split?|

Keep 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": {}
    }
  ]
}

On this page