Built-in metrics
Reference and single-turn metrics
tool_trajectory_avg_score gives each invocation either 0 or 1, then averages the invocation scores. Choose business or strict to control matching.
final_response_match_v2 produces a binary verdict for each invocation. It uses majority vote across judge samples, then reports the fraction of valid invocations.
Multi-turn and simulation metrics
The three Vertex multi-turn metrics are reference-free and evaluate the complete actual conversation. Their per-invocation result is
not_evaluated on earlier turns; the last turn carries the conversation-level score. The rubric-based multi-turn metric uses the same final-turn convention.
Configure thresholds
Use a number for a metric that needs only a threshold:evals/test_config.json
Configure model-judged metrics
Judge-backed criteria use the properties below. The final-output option applies only where the evaluator consumes final answer text.evals/test_config.json
hallucinations_v1 uses evaluateIntermediateNlResponses, not includeIntermediateResponsesInFinal, to opt visible intermediate natural-language responses into its analysis.
Use a custom judge model
Model precedence is an explicitjudgeModel, then OPENAI_MODEL, then gpt-4.1-mini. Use an explicit OpenAI-compatible model ID when the judge should differ from the agent:
evals/test_config.json
my-judge-model with a model served by your configured endpoint. This explicit ID overrides OPENAI_MODEL. The judge reuses a compatible agent model transport when one is available, including a lifecycle-owned client, custom gateway, and headers. Otherwise it uses the normal OPENAI_BASE_URL and OPENAI_API_KEY configuration. To select a native non-OpenAI provider instead, use its ADK model ID and supply that provider’s credentials through the same process environment.
Configure rubric metrics
Each rubric criterion requires a non-emptyrubrics list. Every rubric has a stable ID and one testable text property.
evals/test_config.json
rubric_based_multi_turn_trajectory_quality_v1 with the same criterion shape when a property spans the complete conversation. Rubric verdicts, scores, and rationales are preserved in the complete CLI result.
Configure evaluation backends
The agent under test and every metric backend inherit the same process environment. Follow Configure model credentials for local, CI, and deployment setup. Metrics may add a second provider to the agent’s normal model and tool stack:- Local deterministic
- ADK judge model
- Vertex evaluation service
tool_trajectory_avg_score and response_match_score need no metric service. The agent itself can still make live model or tool calls.test_config.json selects metric backends and judge model IDs. Never put credentials in that file.