keepcalculator

06 Numbers and Powers

How to Evaluate AI Agents Beyond Data Quality

Card No. 06·58490 · Updated · Standard formula, shown below

Evaluating an AI agent means checking more than whether its training or test data is clean. This guide helps you assess whether an agent reliably completes tasks, uses tools appropriately, handles uncertainty, and behaves safely in realistic conditions. Before you start, define the agent’s intended users, tasks, and operating limits.

What You’ll Need

  • A written description of the agent’s purpose, intended users, and tasks it is allowed to perform.
  • A representative set of test scenarios, including ordinary requests, edge cases, and situations where the agent should refuse or ask for clarification.
  • Access to logs or traces showing the agent’s inputs, outputs, tool calls, and errors, with sensitive information handled appropriately.
  • People who can judge task quality and risk, such as subject-matter reviewers and the team responsible for the agent.
  • A way to record results, compare versions, and repeat tests under consistent conditions.

Step-by-Step

  1. Define success in terms of the job. List the tasks the agent is intended to complete and the outcome a user actually needs. For each task, specify what counts as complete, what errors matter, and when the agent must stop or hand off. Avoid vague goals such as “be helpful.” For example, a support agent might need to identify the correct policy, explain it clearly, and avoid claiming an action was completed unless a connected system confirms it.
  2. Map the risks and boundaries. Identify who could be affected by a wrong answer or action, how serious the impact could be, and whether the agent can change records, send messages, or make other consequential tool calls. Define permitted and prohibited actions, escalation routes, and approval requirements. Test the safeguards as part of evaluation, not as an assumption.
  3. Build a realistic evaluation set. Sample scenarios from real workflows where permitted, then remove or protect personal and confidential details. Include routine requests, ambiguous instructions, incomplete information, unusual but valid cases, and requests outside the agent’s scope. Add adversarial cases such as conflicting instructions or attempts to make it ignore its boundaries. Keep some cases private as a holdout set so the team does not tune directly to every test.
  4. Choose measures that match the task. Use task completion or correctness measures where outcomes can be checked. Add measures for factual support, appropriate clarification, refusal quality, tool-call accuracy, and successful handoff. Track latency and cost if they affect the service. For actions with potential impact, measure unwanted actions and safeguard failures separately; a high average score must not hide a critical failure.
  5. Evaluate the full interaction, not just the final text. Review the sequence from user request through reasoning-visible traces, tool selection, arguments, results, and final response. Check whether the agent used authorized tools, interpreted returned data correctly, and represented what it did honestly. An answer can sound plausible yet rely on a failed call, stale information, or an unsupported assumption.
  6. Test across realistic conditions. Run cases with different phrasing, context lengths, missing details, and relevant system or tool failures. Repeat cases when outputs can vary, and record model, prompt, tools, configuration, and test date. Compare results by task type and risk group, not only in aggregate. Where appropriate, test with representative users to find usability problems that a scripted benchmark will miss.
  7. Use human review for judgment-heavy outcomes. Give reviewers clear scoring criteria and examples of acceptable, borderline, and unacceptable behavior. When practical, have two reviewers score a sample independently, then discuss disagreements and refine the rubric. Do not treat a single reviewer’s impression as a reliable measure of subjective qualities such as clarity or tone.
  8. Check robustness and misuse resistance. Try plausible variations, misleading context, contradictory information, and requests that press against the stated limits. Check whether the agent reveals protected information, follows untrusted text as an instruction, or takes a prohibited action. Keep tests controlled and authorized; the goal is to find weaknesses before deployment, not to expose real users or systems.
  9. Set release gates and monitor after launch. Agree in advance which failures block release and who can approve exceptions. Keep a record of known limitations and unresolved risks. Once deployed, monitor a privacy-conscious sample of interactions, user corrections, escalations, tool failures, and incident reports. Re-run the evaluation after changes to models, prompts, tools, or policies, because a fix in one area can cause regressions elsewhere.

Common Mistakes

  • Using a clean-data score as the whole evaluation: data quality matters, but it does not show whether the agent follows instructions, uses tools correctly, or handles unsafe requests.
  • Testing only easy, familiar prompts: include realistic ambiguity, failures, and out-of-scope requests, not just examples the agent is likely to answer well.
  • Relying on one overall score: report important task categories and serious failure types separately so that averages do not mask risk.
  • Scoring style instead of outcomes: fluent, confident language is not proof of correctness. Verify claims against trusted references or observable task results.
  • Changing the test while comparing versions: keep a stable core set and document any additions or scoring changes to make comparisons meaningful.
  • Ignoring people and operations: a technically capable agent can still be hard to use, difficult to correct, or poorly supported when it fails.

Tips

  • Separate “must not fail” safety checks from quality goals that can be balanced, such as speed and detail.
  • Use both automated checks and human review: automation is repeatable, while people can catch context and usability issues.
  • Save representative failure examples and use them to improve prompts, tools, training, or handoff procedures.
  • Make evaluation reproducible by recording the exact configuration and keeping test inputs and scoring guidance versioned.
  • Ask reviewers to distinguish a wrong answer from an answer that is incomplete, unclear, or appropriately cautious.
  • Set a baseline before making changes, then compare the new version on both the target improvement and possible regressions.

Troubleshooting

Scores vary substantially between runs: repeat a representative sample, record configuration details, and report ranges or failure rates rather than relying on one run. If variation is unexpected, inspect whether the agent is using changing external data or nondeterministic tools.

The agent passes tests but fails in use: compare real workflows with the evaluation scenarios. Add missing context, user phrasing, and tool conditions to the test set, while protecting sensitive data. Review whether users are asking for tasks outside the defined scope.

Reviewers disagree: make the rubric more specific, add examples, and identify which disagreements reflect genuine judgment calls. For high-impact cases, seek a qualified second review rather than averaging away the difference.

A new version improves one score but causes other problems: run the full regression set, inspect failures by category, and keep the previous version available until release criteria are met. Document trade-offs and do not waive a safety gate just to improve an average.

There is not enough data to evaluate a rare risk: use carefully designed simulations and expert review, and state the evidence limits. Do not interpret a lack of observed failures as proof that the risk is absent.

Frequently Asked Questions

Is data quality still important when evaluating an AI agent?
Yes. Poor or unrepresentative data can undermine performance, but data checks do not measure the agent’s behavior, tool use, or ability to recover from errors.

What should I measure first?
Start with task success and the most consequential failure modes for the agent’s intended use. Add measures such as latency, tool accuracy, clarity, and handoff quality when they affect users or operations.

How many test cases do I need?
There is no universal number. Use enough cases to cover important tasks and risks, and expand the set when results are unstable or new failure patterns appear. Rare, serious risks need targeted scenarios even if they are uncommon.

Can an automated judge evaluate an agent?
It can help score repeatable, clearly defined criteria, but it can also miss subtle errors or share the agent’s biases. Validate automated judgments against human review, especially for consequential decisions.

How often should an agent be reevaluated?
Reevaluate before release and after meaningful changes to the model, prompts, tools, data, or policies. Continue monitoring in operation because usage patterns and connected systems can change.

Does a good test score prove the agent is safe?
No. A test score describes performance on the cases and conditions tested. Combine evaluation with safeguards, human oversight where needed, incident response, and ongoing monitoring.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →