Why does agent evaluation matter?
Language models produce non-deterministic outputs, so a prompt change that fixes one conversation can silently break ten others. Evaluations catch regressions before customers encounter wrong actions, missed approvals, or policy violations.
An evaluation, or eval, runs an agent on a set of test cases and checks what it did. Good evaluations separate hard checks, such as the right amount, the right account or an approval requested, from softer judgments like tone and clarity, so a friendly reply can never hide a wrong action.
Because models are not fully predictable, each case is usually run several times. A case only counts as passing when it passes consistently.
Key characteristics of agent evaluation
- Deterministic hard checks verify required tool calls, parameters, policy boundaries, and approval requests first.
- Soft criteria such as tone, formatting, and helpfulness are scored separately and never override a failed hard check.
- Multiple trials per test case expose flaky behavior that a single lucky run would hide.
- Held-out cases prevent teams or automated optimizers from overfitting to known examples.
How agent evaluation works step by step
- 1. Test casesCommon, edge, and adversarial scenarios
- 2. Repeated runsRun each case several times
- 3. Layered gradingHard policy checks first, tone second
- 4. Release gateCompare against the live version
Agent evaluation vs. unit tests: key differences
| Dimension | Agent evaluation | Traditional unit test |
|---|---|---|
| Behavior tested | Multi-step reasoning, tool selection, and policy compliance | Deterministic function input and output |
| Pass condition | Consistent pass rate across repeated trials and assertions | Single deterministic pass or fail |
| Grading method | Hard checks combined with rubric or LLM-as-judge scoring | Exact code assertions |
| Failure signal | Policy drift, wrong tool arguments, or missed escalation | Thrown exception or wrong return value |
Example in practice
How Norilu handles agent evaluation
Frequently asked questions
- How many times should each agent evaluation case run?
- Most production teams run critical cases three to five times per candidate version so intermittent failures surface before deployment.
- Can an LLM judge replace deterministic checks in an eval?
- No. Use deterministic checks for exact amounts, tool calls, permissions, and approval gates, and reserve LLM judges for subjective qualities like clarity or tone.