diagnose_trace
Diagnose why an AI agent run failed. Returns a structured verdict (failure_class, failed_at_step, root_cause, fix_suggestion, confidence). LATENCY: known patterns return library-instant (<1s); a NOVEL failure needs an LLM call and can take up to ~25s — set your client timeout to at least 30s, and treat this as async (don't block your agent loop on it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace | Yes | OTel-shaped agent trace |