Why are agent evals harder than model evals?

L1 · FundamentalsConcept~6 minEvals & observability

"We evaluate our LLM features with a set of prompts and expected answers. Why doesn't that work as well for agents?"

Answer it out loud or on paper first. Then open the short answer.

Short answer

An agent's output is a trajectory, not a single answer. Many different paths can be correct, so exact-match references fail good runs. The same final message can hide very different actions (a correct refund versus ten times the amount), so answer-only checks miss real harm. Runs are nondeterministic, so one run per case isn't a measurement. And agents act on environments, so evals need realistic, resettable state (databases, files, fake APIs) and judges that look at side effects. You need outcome checks, trajectory checks, several runs per task and environment fixtures.

Full answer
Model evalAgent eval
One input → one outputOne task → many steps, tools and side effects
Compare to a reference answerMany valid paths; compare to rules and end state
Deterministic-ish per runVariance compounds over steps
No environmentNeeds fixtures: DBs, files, sandboxes, fake APIs
Cheap per caseMany calls per case

What to check

  • Outcome: did the world end up right? (refund recorded once, correct amount; tests pass)
  • Trajectory: were rules followed? (lookup before refund, no forbidden calls, within budget)
  • Answer: is what the user was told true and grounded?
  • Efficiency: steps, tokens, latency.

Statistics

Run each task several times. Report pass rate with uncertainty, and also "passes every time" for reliability-critical tasks. A 2-point change on 50 tasks run once is noise.

Follow-ups

  1. L2. What's pass@k vs pass^k?

    Expected answer

    pass@k: at least one of k runs succeeds (capability); pass^k: all k succeed (reliability). Production users experience something closer to pass^k.

  2. L2. Why fake APIs instead of real ones in evals?

    Expected answer

    Determinism, no real side effects, controllable failures, and resettable state per run.

  3. L3. How do you keep an eval set relevant?

    Expected answer

    Add cases from production failures, retire saturated ones, and version the set with the agent.

Wrong answers interviewers hear
  • "Use the same prompt-and-expected-answer set." Misses wrong actions behind right-sounding answers and fails valid alternative paths.
  • "Have an LLM judge the final message." It can't see the side effects.
  • "One run per task is enough if temperature is 0." Variance remains; you need multiple runs.

Taught in

Improve this answer