Import CSV
Upload a CSV of eval results to backfill a run. Same column shape as /api/runs/{id}/export.csv — round-trips natively. Imported rows are tagged source=import so they're distinguishable from app-generated runs.
CSV format reference
Header row required. Column names are case-insensitive. Required: input. All other columns optional with sensible defaults.
| Column | Type | Default |
|---|---|---|
| input | string | — (required) |
| expected | string | null |
| output | string | null |
| passed | true / false / 1 / 0 | false |
| scores_json | JSON array | [] |
| cost_cents | integer | 0 |
| latency_ms | integer | 0 |
| input_tokens | integer | 0 |
| output_tokens | integer | 0 |
| error_message | string | null |
| case_id | ignored | — |
Programmatic equivalent: curl -F file=@run.csv -F suite=… -F model=… /api/import