Agents, Tool Use & MCP·Question 28 of 90IntermediateAI-75

How do you evaluate an agent? Compare trajectory evals and final-outcome evals.

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Use final-outcome evals as your primary metric and trajectory evals as your diagnostic layer - you need both, because outcomes tell you whether it works and trajectories tell you why it doesn't.

Full worked answer

Use final-outcome evals as your primary metric and trajectory evals as your diagnostic layer - you need both, because outcomes tell you whether it works and trajectories tell you why it doesn't.

Final-outcome evals check the end state of the environment: did the PR make the tests pass (SWE-bench style), does the database row exist with correct values (τ-bench checks final DB state), was the correct answer produced (GAIA)? Their key virtue is path-independence: agents legitimately solve tasks many different ways, and grading the outcome doesn't punish valid variance. They require a resettable environment - stateful tasks need isolated fixtures per run, which is most of the engineering cost of a good agent eval harness.

Trajectory evals grade the path: did it call the right tools, avoid forbidden actions, take a reasonable number of steps, follow policy ("never promise refunds over $X"), recover from errors rather than looping? Methods: programmatic checks on the transcript (tool-call counts, ordering constraints, banned-action detection) and LLM-as-judge with a specific rubric over the trajectory - judges are decent at "did the agent ignore the search results it retrieved?" and unreliable at vague "rate this trajectory 1-10", so rubrics must be concrete, and judges must be spot-check-calibrated against human grades.

A sane maturity path: (1) 20-50 realistic tasks with programmatic outcome checks; (2) instrument step counts, token spend, tool-error rates as regression canaries - outcome-neutral changes that double step count are real regressions; (3) add rubric'd judge evals on trajectories for policy and efficiency; (4) continuously harvest failed production trajectories into the eval set. Also: report variance, not single runs - agents are high-variance, so run each task multiple times (which is where pass^k enters).

What a good answer covers

  • Use final-outcome evals as your primary metric and trajectory evals as your diagnostic layer - you need…
  • Final-outcome evals check the end state of the environment
  • Their key virtue is path-independence
  • They require a resettable environment - stateful tasks need isolated fixtures per run, which is most of…
  • Trajectory evals grade the path

Key terms: Final-outcome evals · Trajectory evals · LLM-as-judge with a specific rubric

Interviewer follow-ups to expect

  1. How do you build the resettable environment for an agent that touches three external SaaS APIs?

  2. What rubric items would you give an LLM judge for a support agent?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep