Back to catalog / Agent evaluation
Measure tokens, tool calls, and latency during agent evaluation
Record agent resource use alongside quality evaluation to detect excessive cost for marginal quality gains.
Goal
Create comparable baselines for tool calls, tokens, and runtime across agent iterations.
Steps
- Choose a fixed evaluation set and run configuration; record model and SDK versions. [efficiency]
- Read
tool_call_count_v1,inference_call_count_v1,token_usage_v1, andinvocation_duration_v1. [efficiency] - Compare quality and resource metrics before and after changes, noting sample size and measurement limits. [efficiency]
- For clear regressions, optimize tool planning or context and rerun the same benchmark. [efficiency]
How to verify
The report shows quality, model calls, tool calls, tokens, and latency under matching settings.
Troubleshooting
If usage is not comparable, align cases, concurrency, and model version; efficiency metrics alone do not establish quality.
Permissions
Prerequisites
- Python 3.11+, google-adk compatible with the pinned revision, and an isolated test environment
- Configured model-provider credentials for live inference; never place them in code or logs
Permissions
- Use authorized test data only; isolate sessions and credentials per user; obtain human authorization before external side effects
Limitations
This procedure follows Google ADK at the pinned revision; other versions, models, or remote services may differ in APIs and event semantics. Recheck permissions, retention, and recovery before production.
Pinned upstream source
- Repository
- google/adk-python
- File path
- docs/guides/evaluation/efficiency_evaluators/index.md
- Pinned commit
e9b74d36140f2594b24c481fb7a3825b2cb01e96- Source checked
- 2026-10-14 · Reviewed against the pinned upstream source
Repository metrics
These values describe the upstream repository, not popularity or likes for an individual skill or playbook.
- Stars
- Not collected
- Forks
- Not collected
- Observed at
- Not collected
No metrics snapshot is available yet.
License: Apache-2.0
Main topic
Take a coding Agent change from context to verification