- Add logging for None token values
- Improve test documentation and structure
- Fix import sorting in tests
Part of #2198
Co-Authored-By: Joe Moura <joao@crewai.com>
- Fix import sorting in tests
- Add docstrings and type validation
- Add comprehensive test cases
- Add validation for negative token counts
Addresses review feedback on #2198
Co-Authored-By: Joe Moura <joao@crewai.com>
- Update sum_cached_prompt_tokens to handle None values gracefully
- Add unit tests for token counting with None values
- Fixes#2197
Co-Authored-By: Joe Moura <joao@crewai.com>