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
Configure model-judged metrics through their criteria: Verdict parsing uses the judge’s final response, including any rationale. Reasoning and partial chunks are excluded; a missing final answer cannot pass.includeIntermediateResponsesInFinal instead controls evidence from the agent under test.
See the judge configuration reference for thresholds, model overrides, sampling, concurrency, and intermediate-response settings. Higher sample counts increase judge calls and cost.
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 the required OPENAI_MODEL. There is no built-in model fallback. Use an explicit provider-prefixed model ID when the judge should differ from the agent:
evals/test_config.json
my-judge-model with a model served by your endpoint. The judge reuses a compatible agent transport when available. See model environment for endpoint and credential setup.
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 a model 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.