A slow agent run has one visible symptom -- it took too long -- but usually many possible causes: a slow retrieval step, a slow LLM call, a slow external tool. Fixing the slowest part first requires knowing which part it actually is, not guessing.
Write latency_breakdown(events) that takes a list of (component, duration) pairs and returns a dict mapping each component to the sum of its durations across the whole run.
No results yet
Run your code to check it against the examples, or submit to run every test.