How ADK evaluates an agent
Agents don't give the same output twice, so assertEquals won't work. See how adk eval runs your agent against an evalset and scores both what it did and what it said.
12 minPro
Checking your access…
Inside this lesson
- An animation you play, pause and step through, with each part saying what it is doing.
- The real code beside it, with the lines for each step lit up.
- Practice mode, where you route each message yourself, and a short quiz.
- About 12 minutes.
Written from the official documentation
In this module: ADK evaluation
- How ADK evaluates an agentEvalsets, trajectory and response scoring, pass and fail, animated.Pro
- Test files vs evalsets.test.json for unit-style, .evalset.json for integration.Pro
- Trajectory and response criteriatool_trajectory_avg_score and response_match_score.Pro
- LLM-as-judge criteriafinal_response_match_v2, rubrics, hallucinations, safety.Pro
- Multi-turn and user simulationLetting an AI play the user.Pro
- Environment simulationTesting without real backends.Pro
- Custom metricsScoring what matters to your product.Pro
- Efficiency metricsTool calls, model calls, tokens and latency.Pro
- Running evals: web UI, CLI and pytestadk web, adk eval and AgentEvaluator.Pro
- Evals in CI/CDBlocking a merge when quality drops.Pro
- Testing deployed agentsSmoke tests against a live endpoint.Pro
- OptimizationImproving an agent from eval results.Pro