Trajectory and response criteria
Tune the two fast, reference-based criteria. See how EXACT, IN_ORDER and ANY_ORDER change what tool_trajectory_avg_score accepts, and why response_match_score can pass an answer that means the opposite.
10 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 10 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