You evaluate an LLM agent not only by what it answers, but also by how it gets to the answer: what it retrieves, what it cites, when it refuses and when it escalates. Evaluating it before deployment means measuring answer and trajectory over representative, adversarial cases, with deterministic scorers first, and issuing a per-category verdict that can block the release.
What is LLM agent evaluation?
LLM agent evaluation is the process of running an agent, before every promotion to production, against a reproducible set of cases and scoring not only its final answer but the path it took to produce it: which context it retrieved, which sources it cited, which tools it called, whether it refused what it should have refused and whether it escalated what it should have escalated. The output is not a single grade. It is a per-category verdict that decides whether the change can ship.
That definition separates evaluating an agent from evaluating a model. A public benchmark tells you something about the model in general; it tells you nothing about your agent, with your sources, your permissions and your users. NIST’s generative AI profile warns that benchmark testing may not extrapolate well to real-world conditions (NIST AI 600-1, 2024-07-26; accessed 2026-10-24). What you deploy is not the model. It is the whole system around it, and that system is what has to be measured.
Which dimensions should you measure before deploying?
I measure four dimensions before I let an agent through to production. None of them replaces the others, and a high average in a dimension can hide a serious failure in another, which is why the verdict is read by category and not as a global number.
Is the answer grounded in its sources, and does it cite them?
The first dimension is grounding. It covers groundedness (whether the answer rests on the retrieved context), faithfulness (whether it bends or contradicts what the sources say) and citation coverage (whether every claim that needs a citation carries it). Citing a source that does not say what is claimed is worse than not citing: it gives a mistake the appearance of truth. None of these measures says whether the source is right: an answer can be faithful to a wrong document. That is why hallucination, facts the sources do not support, is measured separately.
Does it refuse and escalate when it should?
The second dimension is refusal and escalation correctness. An agent scoped to a domain has to decline what falls outside it and hand risk signals to a person. Both directions count as errors. Failing to refuse is the obvious risk, but refusing a legitimate request is also a failure, because it leaves someone who was entitled to an answer without it. The same goes for over-escalating: an agent that escalates everything pushes the work back onto people and stops being worth running.
Does it hold up under adversarial attacks?
The third dimension is attacks: prompt injection, jailbreaks and data extraction attempts. You have to check what it does when someone tells it to ignore its instructions, tries to make it reveal its configuration, or goes after data it should never see. My harness has no separate injection scorer: adversarial cases are scored through refusal and escalation correctness, and a “should have refused and did not” is a gate failure. The private corpus includes injection and prompt-extraction cases, and a red-team suite of hand-crafted cases runs in continuous integration, as the public decision records show. OWASP states that “no reliable prevention mechanism exists today” (LLM01:2026 Prompt Injection; accessed 2026-11-16): no set of cases proves an agent immune, it only measures how often an attack succeeds, so that risk can be bounded.
Does it stay within its cost and latency budget?
The fourth dimension is operational: cost and latency as an exit criterion. An agent that answers perfectly but takes longer than users will tolerate, or costs more per interaction than agreed, is not ready for production.
How do you build the evaluation set?
An evaluation is only as good as its cases. I build the set from four sources, because each covers a gap the others leave open.
The first is anonymized real cases: what users actually ask, with their vocabulary, their typos and their ambiguities.
The second is designed adversarial cases: injections, jailbreaks, extraction attempts and queries that sit right at the edge of the domain. They rarely show up in real logs in the proportion you need, so they have to be written deliberately.
The third is synthetic cases generated with a model and reviewed by a person. They widen coverage of variants and of under-represented categories, but without human review they carry the same biases as the model that produced them.
The fourth is expected answers validated by domain experts. A case without a trustworthy expected answer evaluates nothing: it only compares the agent with the intuition of whoever wrote the case.
The resulting set should not stay static: a failure that surfaces is a good candidate for a new case, and every case keeps its category so the verdict can still be read dimension by dimension. In the agent I document below, the evaluation data is 100% synthetic: its pinned run includes no anonymized real cases, and the agent is not clinically validated. I also use the four-source method in deployments with real users.
Deterministic scorers or LLM-as-judge?
Deterministic first. A deterministic scorer checks something that can be decided without interpretation: whether the answer carries a citation, whether the citation points to a real source in the corpus, whether the agent refused when the case required a refusal, whether it escalated when it should have, whether the relevant context showed up in what was retrieved. It runs without a model, always returns the same result and is cheap, so it can serve as a gate in continuous integration.
LLM-as-judge is reserved for the semantic: what a rule cannot decide, such as whether an answer is really supported by the context, whether it is faithful to the sources, or whether it adds facts the sources do not back. There, a judge with a rubric provides a measurement no literal check can. But a judge is more expensive, slower and less reproducible than a rule, and it can be wrong too or score its own outputs higher (Panickssery, Bowman and Feng, 2024), so it is not used for anything a rule can settle. Anthropic recommends that LLM-as-judge graders be closely calibrated with human experts (“Demystifying evals for AI agents”, 2026-01-09; accessed 2026-10-24).
In my own harness the split reflects that rule: of 8 scorers, 5 are deterministic and 3 use a judge. The deterministic ones cover citation coverage, citation correctness, refusal correctness, escalation correctness and retrieval recall; the judge-backed ones cover groundedness, faithfulness and hallucination. Those judges have not yet been calibrated against expert labels, so their means are read with that caveat; calibrating them is the next step.
What is the most common mistake when evaluating an agent?
The most common mistake is scoring only the final answer and not the agent’s trajectory: what it retrieved, which tools it used and when it escalated. But an agent can reach an acceptable answer by the wrong path: retrieving irrelevant documents and getting lucky, calling a tool it should not have touched, or giving a reasonable reply to a case it should have escalated. Evaluating the trajectory does not mean demanding an exact sequence of steps, which would punish valid alternative paths, but checking invariants: it retrieved before answering, it cited a real source, and it refused or escalated when the case required it. Anthropic makes the point from the other side: rigid step checks punish valid paths and it is often better to grade the outcome, keeping only the safety invariants (Demystifying evals for AI agents, 2026-01-09).
If you only score the answer, those failures count as successes. The wrong path that produced an acceptable answer today can produce a wrong answer tomorrow, already in production. In my harness, the trajectory is scored through retrieval recall@k, citation correctness and coverage, and refusal and escalation correctness.
What does a verdict that blocks deployment look like?
The example I can show is my own, documented in public: the AI agent for regulated industries and its evaluation report card. It is a conversational agent grounded in verified sources that goes through its harness before every promotion to production, and its verdict is published exactly as measured.
In the pinned run of 2026-07-28, 231 of 319 scored entries pass and 88 are flagged with gate reasons. The reasons are listed, not summarized: 71 for missing citations, 10 for refusing a benign case, 7 for escalating when no escalation was expected and 4 for failing to refuse a case that should have been refused; an entry can carry several reasons, which is why they add up to more than 88. On top of that, the cost and latency gate failed: mean corpus latency was 8088 ms against a budget of 8000 ms per turn. It is a single run and the budget is set on the mean; repeating it, measuring p95 and reporting pass^k, the probability that a case passes on every repetition (τ-bench), is the next step. Verdict: FAIL. The change does not pass.
What matters is how that verdict is read. The per-scorer corpus means are on a 0 to 1 scale. Several means are solid: groundedness 0.878, faithfulness 0.914, refusal correctness 0.956 and escalation correctness 0.978; hallucination is 0.069, where lower is better, and citation correctness is 1.000: when it cites, it cites a real source. A report that showed only those figures would invite a release. But citation coverage is 0.652, and the most frequent gate reason is exactly the missing citation. Retrieval recall is also 0.652; the match does not prove a cause, but it says where to start looking. Read by category, the verdict says what to fix first: the visible grounding of the answers and the latency, then the refusals and escalations that failed, before anyone reaches for a different model.
That is the value of a verdict that can block: a convincing demo does not change it, and when a behavior is accepted, it is accepted in writing. This agent’s harness caught an over-escalation on negated phrases before production, and it was ratified as accepted product behavior in public decision records (ADR-0034 and 0035).
What should you decide before building an agent?
Before building the agent and its harness, decide what has to be true for it to ship. Which dimensions matter in your domain and in what order of priority, which cases the set has to cover, who validates the expected answers, which threshold turns a failure into a block, and what cost and latency per interaction are acceptable. Without those decisions, the harness measures things but cannot decide anything.
That definition is design work, not tooling, and it is part of an AI Discovery Sprint, which validates the use case before building: which failure mode is tolerable, which cost and latency work at your real volume, and who takes ownership of the system. With those answers, the evaluation criterion is written on solid ground.
An LLM agent is ready for production when its answer and its trajectory clear, category by category, a criterion agreed before anything was built.