AI agent evaluation is the practice of measuring whether an agent reaches the correct end state, takes a sound path, uses tools correctly and stays within cost, latency and safety limits, consistently across repeated runs. A working evaluation framework has three parts: a versioned set of real tasks, graders (code checks, calibrated LLM judges and humans), and gates that block a release when scores drop. The step most teams skip is the last one: writing those thresholds into the contract.
The vendor guides that rank for this topic mostly explain their own tool. This one is tool-neutral and comes from running evals on production agents for governments and regulated companies, where "it looked fine in the demo" is not an acceptance criterion.
What is AI agent evaluation, and how is it different from LLM evaluation?
LLM evaluation grades one answer to one input. Agent evaluation grades a process. Anthropic's vocabulary is useful here (Anthropic):
- Task: one test with defined inputs and success criteria.
- Trial: one attempt. You run several, because outputs vary.
- Grader: logic that scores one aspect of the trial.
- Transcript (trajectory): the full record of tool calls, reasoning and intermediate results.
- Outcome: the final state of the environment, such as whether the booking exists in the database.
The outcome is the part most chat-era metrics miss. An agent can write a confident "Done, your permit is filed" while the record was never created.
The AI agent evaluation metrics stack
| Layer | What it answers | Example metric | How to measure |
|---|---|---|---|
| Outcome | Did the job get done? | Task success against acceptance criteria | Check the end state in the system of record |
| Trajectory | Was the path sound? | Unnecessary steps, loops, skipped checks | Transcript checks plus human review of samples |
| Tool use | Were the right tools called correctly? | Valid arguments on first call | Schema validation on every call |
| Consistency | Does it work every time? | pass^k over repeated trials | Run each task k times |
| Efficiency | Is it affordable and fast? | Cost and latency per completed task | Tracing with token and time accounting |
| Safety | Did it stay inside its limits? | Policy violations, data leaks, injection success | Red-team tasks and guardrail logs |
| Business | Does it matter? | Hours saved, cases closed, error rate vs baseline | Production analytics against a control |
Consistency deserves special attention. pass@k (at least one success in k tries) flatters an agent; pass^k (all k tries succeed) tells you whether users can rely on it. A 75% per-trial success rate gives only about 42% for three straight successes (0.75³). The τ-bench authors found function-calling agents succeeded on fewer than half of tasks, and gpt-4o's pass^8 in the retail domain was below 25% (Yao et al.).
Building a golden dataset
Start with 20 to 50 tasks drawn from real failures, as Anthropic recommends, not hundreds of synthetic ones. Then grow the set every time production finds something new.
What goes in
- Happy-path tasks for each core workflow.
- Edge cases: missing fields, conflicting records, ambiguous requests, wrong language.
- Adversarial cases: prompt injection hidden in documents, requests outside the agent's authority.
- Regression cases: every bug that ever reached a user.
How to keep it honest
- Version it in Git next to the code and prompts, so a score is always tied to a dataset version.
- Human-written cases outrank generated ones. When a human-approved case and a generated case disagree, the human case wins.
- Fix the scorer before the run. In one of our projects, an agent's self-scoring reported 69% and 75%; the official scorer gave 56% and 63%. Only the official numbers count, and a finding must reproduce on fresh, unseen runs.
Deterministic checks vs LLM-as-a-judge
Use code wherever the answer can be checked by code: database state, schema validity, exact figures, whether a test passes. It is fast, cheap and reproducible.
Use a model as judge for what code cannot check: tone, completeness of a summary, whether an explanation is faithful. Strong LLM judges reached over 80% agreement with human preferences in the MT-Bench study, about the level humans reach with each other, but the same study documented position, verbosity and self-enhancement biases (Zheng et al.). So calibrate the judge against human labels before trusting it, and re-calibrate when you change the judge model.
A hybrid we use on government assistants: a deterministic check that every number in an answer traces to a tool result or the user's input. If a figure is untraced, the agent retries; if it is still untraced, the number is masked "[unverified]". No judge model is needed for the part that matters most.
Offline evals as a CI gate, then online sampling
Treat evals like tests. A prompt or model change that lowers quality should fail CI, and each release should be compared with a baseline, not only with a pass/fail floor (Stack Overflow). After release, sample production traffic, grade it with the same graders, and watch cost and override rate on a dashboard.
Two rules from our own pipeline:
- Evidence, not status. Never call a feature working from a health check. Our QA agent drives a real browser through every UAT case and saves screenshots, and someone actually opens them.
- Gates on what users see. Our open-source visual check, RenderLint, runs in the loop. Across 22 AI coding sessions, the apps built without it had 229 visual defects; the apps built with it had 0.
Benchmarks vs your own evals
Public benchmarks such as τ-bench and SWE-bench are good for choosing a model and tracking the field. They are poor at predicting how an agent will do on your forms, your data and your edge cases. Use them to shortlist models, then decide with your own golden set. If a vendor quotes only benchmark scores, ask for results on your tasks.
Agent evaluation tools
| Tool | Type | Typical use |
|---|---|---|
| Langfuse | Open source, self-hostable | Tracing, cost tracking, datasets and scores |
| Arize Phoenix | Source-available, self-hostable | Tracing, evaluation and observability |
| MLflow | Open source | Experiment tracking with GenAI evaluation |
| DeepEval | Open source | Test-style eval cases with built-in metrics |
| Ragas | Open source | Retrieval and RAG quality metrics |
| OpenAI Evals | Open source framework | Defining and running eval suites |
| LangSmith | Commercial (LangChain) | Tracing, datasets and evaluators |
| Braintrust | Commercial | Eval experiments and production logging |
The tool matters less than the dataset and the gate. For sovereign or government work, prefer tools you can self-host so transcripts never leave the client's infrastructure.
Evals as contract acceptance criteria
This is where agent evaluation becomes a procurement tool. Instead of "the system shall use AI to assist officers," a statement of work can say:
| Acceptance item | Example threshold | Evidence delivered |
|---|---|---|
| UAT pass rate | 100% of approved cases, 0 open failures | Case-by-case report with screenshots |
| Numerical grounding | 100% of figures traced or masked | Automated trace check log |
| Consistency | Agreed pass^k on critical tasks | Repeated-trial results per task |
| Security | 0 open high or critical findings | Audit report and scan output |
| Parity (for migrations) | All agreed scenarios match the old system | Side-by-side scenario results |
We deliver to these terms. On a national data-integration gateway, every UAT case was an automated test ("a case without a test is not done"); more than a thousand cases passed with none open, and every audit finding was fixed before go-live. Before swapping the prototype engine for one in a production language, we required the parity scenarios to match; the new engine then ran about 10 times faster.
This approach fits the measurement function of the NIST AI Risk Management Framework and gives a buyer something concrete to sign off.
Eval maturity model
- Level 0, vibes: manual spot checks in a demo.
- Level 1, golden set: 20 to 50 real tasks, run by hand before releases.
- Level 2, CI gate: evals run on every change and block regressions against a baseline.
- Level 3, production loop: sampled live traffic graded continuously; failures flow back into the golden set.
- Level 4, contractual: thresholds written into acceptance criteria, with evidence packs delivered per release.
How YITEC does it
Evaluation is built into our AI Software Factory, not added at the end:
- Each UAT case becomes a named browser test, so the regression suite grows with every feature. On the Resolution 57 KPI platform that produced about 850 end-to-end browser tests and 1,143 test files in seven weeks.
- Our AI QA bot ran 13,491 test-case executions and filed 1,006 issues, 603 of them security findings, before users saw them. The approved UAT workbook grew to 6,021 cases.
- On a US healthcare prior-authorization platform, prompts live as versioned files with their own evaluation sets, backed by about 18,800 automated tests. Langfuse traces every model call with its reasoning trail, cost and evaluation score, so a regression shows up as a number, not a complaint.
- Our probes sign in as real test users for every role and walk the pages those users open. Component health checks alone once reported 14 of 14 green while testers were locked out; we explain that failure in AI agent orchestration in production.
For more on how evals fit agent design, read agentic AI development and multi-agent system architecture. To set acceptance thresholds for your own agent, see our services or contact us.
FAQ
What is AI agent evaluation?
How is LLM evaluation different from agent evaluation?
What are the most common AI agent evaluation metrics?
How many test cases do I need to evaluate an agent?
How do you use LLM-as-a-judge reliably?
Sources
- Demystifying evals for AI agents (Anthropic, 2026)
- τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains (arXiv 2406.12045)
- Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena (arXiv 2306.05685)
- Production-grade LLMs and agents: a field guide (Stack Overflow Blog, 2026)
- AI Risk Management Framework (NIST)



