Skip to content

Fix: Add optional detailed logging to AgentEvaluator #1619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kubikb
Copy link

@kubikb kubikb commented Jun 24, 2025

This PR introduces a log_detailed_results parameter to AgentEvaluator.evaluate() and AgentEvaluator.evaluate_eval_set() in src/google/adk/evaluation/agent_evaluator.py.

Description

This feature enables users to see detailed, per-invocation results during agent evaluations. When log_detailed_results is set to True, the evaluator will log the actual invocation, expected invocation, score, and evaluation status for each step.

Motivation

Without this change, users only see a final, aggregated evaluation result (either successful or failed through an assert). When an evaluation fails, they don't have a breakdown of the results, which makes debugging difficult. This forces them to "fly blind" or resort to lower-level evaluation methods to get more details, which requires extra work.

While the ADK UI offers detailed result observation, having this capability directly within pytest runs is beneficial, especially for CI/CD environments where the UI is not available. This change improves the developer experience by providing a direct and convenient way to debug evaluation tests from the logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant