Demystifying evals for AI agents
Agent evaluations should grade both the final environment outcome and the full transcript of tool calls, turns and reasoning, because multi-turn agents modify state and compound mistakes. The post lays out a practical structure—tasks, trials, graders, harnesses and suites—with code-based graders for deterministic checks, model-based graders for nuanced rubrics and human graders for calibration. It recommends capability evals that start at low pass rates and regression evals that stay near 100%, and shows coding and conversational agent examples that combine unit tests, state checks, LLM rubrics and tool-call assertions. The takeaway is to build an eval suite early: it clarifies success criteria, enables fast model upgrades and provides baselines for latency, token usage, cost and error rates.
Related posts
- Agents are users, so your software needs evals
Vercel mediumAdeptAgents act as users of APIs, CLIs, MCP servers and SDKs, so measuring whether they complete tasks correctly requires evals: tests run many times and scored. An agentic testing pyramid groups checks by LLM call count (deterministic tests, one-turn evals, E2E evals), and a worked example builds an end-to-end eval for a hypothetical coffee-ordering CLI using Harbor, covering goal setting, task design with seeded environments, frozen clocks and per-constraint verifiers, and guarding against reward hacking. Metric choice should follow failure cost: a 60% success rate yields 99% pass@5 but only 8% pass^5, so products where users get no retry should optimize for pass^k, while coding agents with test feedback can lead with pass@k.
- The Most Common Questions About Agent Evals, Answered
LangChain mediumAdeptAgent evals score agent runs to handle nondeterminism, multiple valid answers and variable execution paths: start by reading traces, pick one behavior, build a 10-20 example dataset from real traces, run a baseline experiment, and fold new failures back in. Offline evals compare versions against datasets before shipping, while online evals score sampled production traces without reference outputs. Use code evaluators where possible, LLM judges with narrow binary questions calibrated against human review, and pairwise comparison for choosing variants. Container-based benchmarks like Terminal-Bench (run via the open-source Harbor harness) score the end state of an environment for long multi-step tasks, and online costs can be controlled through sampling, filters, code checks and cheaper judge models.
- What Is Eval-Driven Development? How to Improve AI Agents
LangChain mediumAdeptEval-driven development adapts test-driven development to non-deterministic agents: write a pass/fail spec for one behavior, build a dataset and evaluator before implementing, run a baseline, then hill-climb by comparing experiments per example. A worked example adds a create_ticket tool to an internal docs agent. The average score improves, but a how-to VPN question regresses, and a trace shows the cause is an overly broad tool description. Practical advice includes using code evals for deterministic checks and LLM judges otherwise, keeping a held-out set to detect overfitting, running fast checks in CI and slower judges nightly, and turning production failures into new dataset examples.
- How to build and maintain an agentic evaluation
Hugging Face mediumAdeptAgentic evaluations depend on far more than the model: task instructions, agent harness, environment, verifier and traces can each move a score, with harness changes alone shifting Terminal-Bench accuracy by up to 29.9 points. A worked example adapts Terminal-Bench's raman-fitting task into an eight-task physics benchmark using Harbor. Testing the grader with a do-nothing agent and a shortcut showed a ratio-only verifier could be fooled, and reading traces showed gpt-oss-120b mostly failed by declaring completion early rather than by fitting badly. The authors recommend reporting pass^k alongside pass@k, pinning inference providers, validating graders against shortcuts, and publishing tasks, graders and traces so outside reviewers can find and correct benchmark errors.
- Why human insight is a strategic advantage for building better agents
LangChain easyNoviceHuman review of agent traces supplies the domain judgment that automated evals lack, and it works best when reviewers see the full multi-turn conversation rather than an isolated step. Reviewer scores and written reasoning, captured in annotation queues, can be reused to align LLM judges by comparing their scores against human labels, to fix online evaluators that keep missing the same failure, and to seed golden datasets for offline regression testing. LangSmith now supports whole threads as annotation-queue items, shown as a readable trajectory, and Fetch Rewards uses this to check tool grounding, product images and offer availability before tuning its automated judges.