Domain 4: Evaluating and Deploying Agentic Workflows (Part 1 of 2)
This lesson covers 4 exam topics: Building Agent Test Sets, Agent Evaluation Tools, Continuous Evaluation Pipelines, Evaluating Against a Golden Dataset. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. Building Agent Test Sets
Central question: What belongs in an agent test set?
Facts (ADK and agent evaluation docs verified; composition is design guidance)
- Agent evaluation phases: design eval cases (tasks and expected outcomes), run inferences (real or simulated traces), score with automated raters such as task success and safety (agent evaluation docs).
- Include golden data (correct answers and expected tool calls), representative prompts, edge cases (ambiguous, adversarial, missing data) and multi-turn conversations.
- Expected tool trajectories capture which tools should be called, in which order.
Exam traps
- Only happy-path prompts. Add edge and adversarial cases.
- Checking only the final answer. Also check tool trajectories.
2. Agent Evaluation Tools
Central question: Which agent evaluation tool fits?
Facts
| Tool | Fits |
|---|---|
ADK evaluation (test files, evalsets, adk eval, web UI) | Developer-time tests of trajectories and responses |
| Agent Platform Gen AI evaluation service / agent evaluation | Scaled, managed scoring with autoraters, user simulation |
| Custom autoraters | Domain-specific criteria judged by a model |
- ADK test files (
.test.json) suit unit-test style checks during development; evalsets (.evalset.json) hold multiple multi-turn sessions; run withadk eval, pytest or the web UI (ADK evaluate). - ADK criteria include tool_trajectory_avg_score and response_match_score, plus final_response_match_v2, hallucinations_v1 (grounding) and safety_v1.
- Gen AI evaluation service supports adaptive rubrics (recommended), static rubrics, computation metrics and custom functions.
Exam traps
- Exact string match for free-form answers. Use semantic or rubric criteria.
- No tool-trajectory checks for an agent. Agents fail in the steps, not just the answer.
3. Continuous Evaluation Pipelines
Central question: How do you evaluate agents continuously?
Facts (design guidance; tools verified)
- Run evalsets automatically in CI on every change (prompt, tool, model) and block release on regressions.
- In production, sample real traces (Cloud Trace, logs) and score them with autoraters against success criteria, such as correct tool execution and task success.
- Track scores over time; alert on drops; feed failures back into the test set.
Exam traps
- Evaluating only before launch. Agents drift as tools, data and models change.
- Changing a model version without rerunning evals.
4. Evaluating Against a Golden Dataset
Central question: How do you evaluate response and retrieval quality against golden data?
Facts (ADK docs verified; retrieval metrics are general practice)
- ADK evaluates against golden data: expected final responses and expected intermediate tool calls (evalsets).
- Response quality: response_match_score / final_response_match_v2 and rubric judges; groundedness: hallucinations_v1.
- Retrieval quality: check whether the right documents were retrieved (recall at k, precision at k) separately from whether the answer used them correctly.
Exam traps
- Only scoring the final answer. A good answer can hide bad retrieval.
- Golden set that never changes. Update it as products change.
References
- PAA exam guide — checked Oct 26, 2026
- Agent evaluation — checked Oct 26, 2026
- ADK evaluation — checked Oct 26, 2026
- Gen AI evaluation service — checked Oct 26, 2026
Check your understanding
Expected tool calls in a test?Show answerHide answer
Answer
Tool trajectory.Multi-turn sessions file for ADK?Show answerHide answer
Answer
Evalset.When to run evals?Show answerHide answer
Answer
Every change, and on sampled production traces.Was the answer supported by retrieved text?Show answerHide answer
Answer
Groundedness / hallucinations metric.Three phases of agent evaluation?Show answerHide answer
Answer
Design, execution, scoring.