- Introduced TokenCallbackHandler to track input and output token usage during LLM operations. - Updated RunResult model to include token usage data. - Enhanced RunsStore to support token usage persistence in the database. - Modified RunService to yield token usage information during event streaming. - Implemented UI components to display token statistics in the run detail view. - Added tests for token handling and reporting functionality. Made-with: Cursor |
||
|---|---|---|
| .. | ||
| test_models.py | ||
| test_run_service.py | ||
| test_runs.py | ||
| test_settings.py | ||
| test_store.py | ||
| test_stream_propagate.py | ||
| test_token_handler.py | ||