fix: agent evaluations detailed output rows wrapping issue #3381
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Link to Issue or Description of Change
1. Link to an existing issue (if applicable):
print_detailed_resultsoutput is not readable #3363Problem:
The detailed output of agent evaluations is not readable due to rows in the table getting wrapped. This happens when there are long text values in cells.
Solution:
Existing code uses
tabulatepython package to format the table. We can set a maximum column width usingmaxcolwidthsparameter. I have set it to25.After the fix:

Testing Plan
I have manually tested if the output is properly displayed after changes. Please let me know if any unit tests can be added for this.
Unit Tests:
Manual End-to-End (E2E) Tests:
print_detailed_resultsoption and check if the output is properly displayed.If you want a quick setup for testing this, I have a sample repo with an agent and an evalset here. You will have to manually build & install the fixed adk version to test it.
Checklist