run_eval
Start an eval run to score recent calls against default and custom criteria using gpt-4o-mini. Requires Pro+ subscription and plaintext storage opt-in.
Instructions
Start a new eval run immediately (POST /v1/eval-runs). Scores the most recent N calls against the 5 default criteria (plus up to 8 custom criteria) using gpt-4o-mini. Pro+ only (Free gets 403); environments without OPENAI_API_KEY provisioned return 500 from the backend. Precondition: only calls with plaintext storage (the content-storage opt-in) ON are scored. With the opt-in OFF (the default) there are zero candidates and the run returns summary.scoredCount=0 with reason='no_plaintext_calls' (gating, not a failure). Cost: about $0.01 per run (20 calls x 5 criteria = 100 LLM calls); around 30 runs/month = $0.30 at founder-dogfood scale.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Free-form run name (1-100 chars, e.g. 'weekly-prod-eval-2026-06-02') | |
| label | No | Label filter (substring match within tags). Omit = all calls. | |
| recentCount | No | Number of calls to evaluate (1-20, default 10). The most recent N calls are passed to the judge. | |
| idempotencyKey | No | Opaque key for retry dedup (UUID recommended, 64 char cap). Re-POSTing the same key within 60 minutes returns the existing run. | |
| promptRegistryId | No | Target prompt registry id (list_prompts.prompts[].id). Omit = ad-hoc run. |