-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Feat: Agent Evaluations print detailed results when all tests pass #3892
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
base: main
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @quad2524, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the agent evaluation system by providing an opt-in mechanism to display detailed evaluation metrics for tests that successfully pass. Previously, detailed results were only presented for failing tests. This change introduces a new parameter and a corresponding CLI flag, allowing users greater control over the verbosity of evaluation output, particularly useful for in-depth analysis of successful agent performance. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a new feature to print detailed evaluation results even for passing tests, controlled by the print_detailed_results_on_success argument. The changes are well-implemented across both the CLI command adk eval and the programmatic AgentEvaluator methods, ensuring consistent behavior. The logic correctly handles the new option. I've included a couple of suggestions to refactor the conditional logic for improved readability and maintainability.
|
Hi @quad2524, Thank you for your contribution! We appreciate you taking the time to submit this pull request. |
29bcb87 to
852da24
Compare
Link to Issue or Description of Change
1. Link to an existing issue (if applicable):
Testing Plan
I verified the changes using a reproduction script that tested both the default behavior and the new opt-in behavior.
Unit Tests:
Manual End-to-End (E2E) Tests:
I created a reproduction script
reproduce_issue.py(which I have since cleaned up) that invokedAgentEvaluator.evaluateon an existing test fixture (tests/integration/fixture/home_automation_agent/simple_test.test.json).print_detailed_results=True(and impliedprint_detailed_results_on_success=False). Verified that no detailed metrics table was printed for a passing test.print_detailed_results=Trueandprint_detailed_results_on_success=True. Verified that the detailed metrics table was printed for the passing test.CLI Verification:
I also verified the new CLI flag
--print_detailed_results_on_successwith theadk evalcommand.Checklist
Additional context
This change introduces a backward-compatible optional argument
print_detailed_results_on_successtoAgentEvaluator.evaluateandevaluate_eval_set.It also adds the
--print_detailed_results_on_successflag to theadk evalCLI command.