Custom metrics

Built-in criteria don't know your product's rules. Write a Python function that scores each turn, register it in the eval config, and watch it catch a bug every built-in criterion misses.

9 minPro

Checking your access…

This is a Pro lesson

Sign in to continue. Pro members get every animated lesson, its code and its quiz, across ADK, Agent Platform, Agent QA and CX Agent Studio.

Get Pro for ₹999

You're signed in, but this lesson is part of Pro

Get every Pro lesson, its code and its quiz for ₹999, once. Lifetime access, including lessons added later.

Unlocking your lesson…

If this doesn't change in a moment, reload the page.

In this module: ADK evaluation

  1. How ADK evaluates an agent Evalsets, trajectory and response scoring, pass and fail, animated. Pro
  2. Test files vs evalsets .test.json for unit-style, .evalset.json for integration. Pro
  3. Trajectory and response criteria tool_trajectory_avg_score and response_match_score. Pro
  4. LLM-as-judge criteria final_response_match_v2, rubrics, hallucinations, safety. Pro
  5. Multi-turn and user simulation Letting an AI play the user. Pro
  6. Environment simulation Testing without real backends. Pro
  7. Custom metrics Scoring what matters to your product. Pro
  8. Efficiency metrics Tool calls, model calls, tokens and latency. Pro
  9. Running evals: web UI, CLI and pytest adk web, adk eval and AgentEvaluator. Pro
  10. Evals in CI/CD Blocking a merge when quality drops. Pro
  11. Testing deployed agents Smoke tests against a live endpoint. Pro
  12. Optimization Improving an agent from eval results. Pro