Start an eval experiment
PreviewStart an experiment: run an eval’s cases against one to four variants and compare them case by case.
/v1/evals/{eval_id}/experimentsSee authentication for credentials and permissions.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Prefixed public identifier
Request Bodyrequired
Section titled “Request Bodyrequired”Request to start an experiment.
object
Spending cap in USD for the whole experiment, split evenly between the variants’ runs.
Example
10Display name. Defaults to the variant labels joined with “vs”.
Example
Luna vs SolTrials per case and variant, 1 to 20 (default 3).
Example
3One to four variants. The first is the baseline the others are compared against.
One configuration an experiment runs the dataset against.
object
Short name shown in comparisons, unique within the experiment.
Example
candidateModel for this variant, beating the target’s model.
Example
gpt-6.1-solSession creation parameters (mirrors CreateSessionRequest).
object
Agent to work in this session.
Harness for the session. If omitted, org default harness is used.
Addressable harness name (alternative to harness_id).
Max LLM iterations per turn.
LLM model override.
System prompt override (prepended to agent prompt).
Reference to a deployed app.
object
Label-only target for externally-executed runs (e.g. imported from Mira).
Carries provider/model labels and opaque params instead of session setup:
external runs are ingested already-complete, so everruns never builds a
session from this. Mirrors a provider-agnostic (provider, model) pair.
object
Responses
201Created
Created
An experiment: one dataset version against several variants.
object
Label of the variant the others are compared against.
Paired comparison by case (detail view).
object
Cases whose result changed come first.
One case across the variants.
object
One cell per variant, in variant order.
One case under one variant.
object
What the case cost, all its trials together.
Trials that passed, of trials that finished.
Some variant’s pass rate on this case differs from the baseline’s.
One verdict per variant other than the baseline.
A variant against the baseline.
object
Cases the baseline passes every trial of and this variant does not.
Cases this variant passes every trial of and the baseline did not.
95% interval of that difference (paired bootstrap), in points.
Cases both ran.
Mean per-case pass rate difference, in percentage points.
How a variant compares with the baseline.
The eval’s version the experiment ran.
The eval whose cases are the dataset.
Where an experiment is: running until every variant’s run finished.
One variant of an experiment and how its run went.
object
What one case cost on average, all its trials together.
Set when the variant ran outside Everruns and was imported: the system that ran it, such as “mira”.
The variant’s run.
Status of an eval run.
Set once the run finished.
object
Mean case latency in milliseconds.
Mean score across cases, 0.0 to 1.0.
Mean agent turns per case.
Distinct cases in the run.
Cases that passed in at least one trial (pass@k).
Cases that passed in every trial (pass^k).
Number of cases that errored.
Number of cases that failed.
Fraction of cases that passed, 0.0 to 1.0.
Number of cases that passed.
Total number of cases in the run.
What the run spent in USD: the agents’ model calls plus grading. Absent on imported runs, whose cost is in their own metrics.
Total input tokens across cases.
Total output tokens across cases.
Repetitions per case. total counts every repetition.
Session creation parameters (mirrors CreateSessionRequest).
object
Agent to work in this session.
Harness for the session. If omitted, org default harness is used.
Addressable harness name (alternative to harness_id).
Max LLM iterations per turn.
LLM model override.
System prompt override (prepended to agent prompt).
Reference to a deployed app.
object
Label-only target for externally-executed runs (e.g. imported from Mira).
Carries provider/model labels and opaque params instead of session setup:
external runs are ingested already-complete, so everruns never builds a
session from this. Mirrors a provider-agnostic (provider, model) pair.
object
Example
{ "baseline": "baseline", "comparison": { "baseline": "baseline", "cases": [ { "case_id": "evalcase_01933b5a000070008000000000000001", "case_name": "Refund request, angry customer", "cells": [ { "cost_usd": 0.05, "label": "candidate", "passed": 3, "trials": 3 } ] } ], "verdicts": [ { "broke": 1, "fixed": 4, "interval_high_points": 9, "interval_low_points": 1, "label": "candidate", "paired_cases": 42, "pass_rate_delta_points": 5, "verdict": "improvement" } ] }, "dataset_version": 7, "eval_id": "eval_01933b5a000070008000000000000001", "id": "evalexp_01933b5a000070008000000000000001", "max_cost_usd": 10, "name": "Luna vs Sol", "status": "running", "trials": 3, "variants": [ { "cost_per_case_usd": 0.031, "label": "candidate", "model_override": "gpt-6.1-sol", "run_elsewhere": "mira", "run_id": "evalrun_01933b5a000070008000000000000001", "status": "pending", "summary": { "avg_latency_ms": 8450, "avg_score": 0.85, "avg_turns": 3.2, "cases": 4, "cases_passed_any_trial": 4, "cases_passed_every_trial": 3, "errored": 1, "failed": 2, "pass_rate": 0.75, "passed": 9, "total": 12, "total_cost_usd": 0.42, "total_input_tokens": 14400, "total_output_tokens": 10200, "trials": 3 }, "target": { "type": "session" } } ]}