Devin AI
7a0feb8c43
Fix tool output token overflow issue
- 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>
2025-11-06 13:01:52 +00:00
..
2025-11-05 19:02:11 -05:00
2025-11-05 19:02:11 -05:00
2025-10-31 18:42:03 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-11-05 07:19:09 -05:00
2025-10-20 14:10:19 -07:00
2025-11-05 11:38:44 -05:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-11-05 07:19:09 -05:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-31 18:42:03 -07:00
2025-11-06 13:01:52 +00:00
2025-10-20 14:10:19 -07:00
2025-10-31 18:42:03 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-31 18:42:03 -07:00
2025-10-31 18:42:03 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-11-03 07:49:31 -05:00
2025-11-06 01:29:21 -05:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00
2025-11-05 19:02:11 -05:00
2025-11-05 19:02:11 -05:00
2025-10-20 14:10:19 -07:00