What does trajectory evaluation add beyond task success rate for LLM agent evaluation?
Trajectory eval scores each tool call and state transition along the agent's run, so you can localize where multi-step agents fail. Success rate only tells you that they failed.
Imagine grading a student on a long math problem. Success rate is like marking the final answer right or wrong, you learn nothing about where they went astray. Trajectory evaluation is like grading every line of work: which formula they picked, whether each step followed, whether they did pointless extra steps. Now if twenty students all slip at line 3, you know exactly what to reteach. For an agent that calls tools across many steps, the final-answer grade hides which tool call was wrong, which step was redundant, and which early mistake the agent later recovered from. Reading the whole trajectory turns a single pass-fail number into a map of failure that tells you what to fix.
Detailed answer & concept explanation~8 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: outcome vs process metrics, the four step-level signals (correctness, state, redundancy, recovery), how aggregation localizes a bug, why each distractor overclaims, and the production pattern of gating on success and debugging on the trajectory.
Real products, models, and research that use this idea.
- SWE-bench grades whether a generated patch passes the repo's tests, while failure analyses inspect the edit trajectory to localize where agents go wrong.
- GAIA tasks require multi-step tool use, and leaderboard analyses break down failures by step type rather than reporting only pass rate.
- LangSmith ships trajectory evaluators that score agent runs against reference tool-call sequences and flag missing or extra steps.
- The OpenAI Agents SDK exposes per-step traces (tool calls, arguments, outputs) so teams can score and replay individual decision points.
- AgentBench reports task success alongside step-level execution traces across web, OS, and database environments to diagnose failure modes.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you score a trajectory when several valid tool-call paths solve the same task?
QHow do you distinguish a recoverable error from a fatal one in trajectory scoring?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Reporting only end to end success rate for a multi-step agent. A single pass or fail number cannot tell you which step broke, so you cannot localize or fix the failure.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.