mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 07:38:29 +00:00
- Add max_tool_output_tokens parameter to Agent (default: 4096) - Implement token counting and truncation utilities in agent_utils - Truncate large tool outputs before appending to messages - Update CONTEXT_LIMIT_ERRORS to recognize negative max_tokens error - Add comprehensive tests for tool output truncation Fixes #3843 Co-Authored-By: João <joao@crewai.com>