Show token cost breakdown in check output#185
Open
gauravxthakur wants to merge 4 commits intohidai25:mainfrom
Open
Show token cost breakdown in check output#185gauravxthakur wants to merge 4 commits intohidai25:mainfrom
gauravxthakur wants to merge 4 commits intohidai25:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Add a summary table to evalview check output showing token usage breakdown: input tokens, output tokens, cached tokens, and estimated cost.
Related Issue
Fixes #146
Type of Change
Changes Made
What I added:
Testing
Test Configuration
Tests Added/Modified
Manual Testing Steps
Run unit tests to verify token summary functionality: py -m pytest tests/test_check_cmd.py::test_check_json_includes_token_usage_and_cost_summary tests/test_check_cmd.py::test_check_json_omits_token_usage_when_unavailable -v
Checklist
Code Quality
Documentation
Testing
Dependencies
Breaking Changes
None.
Additional Notes
There's a type checking error in the CI/CD pipeline. The functionality works correctly (all tests pass locally), but there's a type annotation issue that needs to be resolved. I would really appreciate some help in identifying and fixing this error.
By submitting this pull request, I confirm that: