An agent evaluation is a task, a trial, a grader, and evidence of what happened. Test the final outcome, but also inspect the trajectory: whether the right tool was selected, whether arguments were valid, whether the source was authorized, whether the agent repeated a failed action, and whether it stopped when it should.
Build the first suite from 20 to 50 realistic tasks. Include common work, edge cases, incomplete inputs, conflicting instructions, tool failures, adversarial content, and cases where the correct behavior is to ask or refuse. Run multiple trials when the agent is nondeterministic. Separate capability tests, which explore what it can do, from regression tests, which protect behavior that already works.
Use deterministic graders for exact fields, permissions, schemas, unit tests, and final state. Use rubric-based model graders for qualities such as groundedness or completeness only when the rubric is explicit and calibrated against human review. For high-impact workflows, keep expert review in the loop. A high score from a badly designed grader is not evidence of a reliable agent.
Connect offline tests to production learning. Sample traces, capture user corrections, investigate failures, and turn confirmed failures into new regression cases. Re-run the suite when changing the model, prompt, tool, retrieval index, policy, or user population. See our [AI evaluation guide](/ai-evaluation) for a detailed evaluation framework.