get failure clusters
get_failure_clustersGroup live production failures into systemic clusters by cause, so you can prioritize fixes without reading each failure individually.
Instructions
See live production failures grouped into systemic causes per criterion (judge FAIL rationales plus pending scan suspects, clustered by a model) so a customer can find what to fix first rather than reading failures one by one. GET /v1/evals/failure_clusters (API-key scope: read). Returns: {window_days, generated_at, cached (true when served from the hourly cache), criteria:[{criterion_id, criterion_name, failures (online FAILs + pending suspects, deduped), without_reason (failures with no stored rationale — counted, never clustered), clusters:[{name, count, share (of this criterion's clustered failures), request_ids, example (one representative rationale verbatim)}]}]}. Cache-Control: no-store. Notes: 400 "window_days must be an integer 1..90" for an out-of-range value. MONEY: a fresh clustering (cache miss or force=true) makes one small metered model call per criterion that has ≥4 failure reasons (at most 40 reasons per criterion) — billed to the wallet like other assists; cached responses cost nothing. Criteria with fewer than 4 reasons are listed with no clusters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Pass the literal "true" to bypass the per-workspace one-hour cache and re-cluster now. Default: false. | |
| window_days | No | Look-back window in days, integer 1..90. Default: 7. |