PRODUCTION · 4 MIN READ
How do you know your agent works?
Evaluate the outcome and the path it took to get there.
Define a task-level result
Start with the business outcome. For order support, success could mean the correct status, an answer grounded in the lookup result, and no access to another user’s order. A fluent answer is only one part of that result.
Build a small, representative dataset
Include normal tasks, ambiguous requests, missing data, tool errors, and boundary cases. Preserve the inputs, expected outcomes, and tool fixtures. Run the same set whenever you change a prompt, tool, model, or memory policy.
Measure the whole run
- Task completion and factual consistency.
- Tool selection and argument correctness.
- Authorization and approval behavior.
- Latency, model usage, and tool cost.
- Recovery from errors and turn-limit behavior.
Use deterministic checks where possible. When using a model to judge an answer, calibrate its decisions against human review and keep the grading criteria explicit.