get eval samples
get_eval_samplesInspect the exact prompts, answers, and verdicts behind an eval score, providing the audit trail that makes a win rate trustworthy.
Instructions
Inspect the test cases behind a run's score — each sampled prompt, the answer every arm produced (reasoning traces stripped, as the judge saw them) and the per-sample verdict — the audit trail that makes a win rate trustworthy. GET /v1/evals/{id}/samples (API-key scope: read). Returns: A bare JSON array (no list envelope), one item per sample in order: {prompt (messages rendered as "ROLE: content" lines, clipped to 2000 chars), baseline_answer (the baseline's fresh answer, or the stored logged reply when baseline is "stored"; empty string on criterion runs), candidates:[{model (arm key), answer (clipped to 2000 chars), outcome}]}. outcome is "win"|"loss"|"tie"|"failed" (judge gave no reading) on comparison runs and "pass"|"fail"|"unparsed" on criterion runs; criterion runs list the baseline among candidates. Notes: 404 when the run is not in this workspace. Works on any status (partial data while RUNNING; empty array before sampling). Texts are clipped server-side at 2000 chars with a "…[clipped]" marker — use GET /v1/evals/{id}/evidence?with_content=true for full transcripts. Comparison items also carry human_verdict ("candidate"|"baseline"|"tie"|null) per candidate once pairs are labelled (label_eval_pair). Read-only, no spend.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The eval run id. |