mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 09:08:31 +00:00
- Add MAX_METADATA_SIZE_MEM0 constant for 2000 character limit - Implement _truncate_metadata_if_needed() to handle large metadata - Prioritize essential fields and truncate messages when needed - Add comprehensive tests for metadata truncation scenarios - Fixes #3391 Co-Authored-By: João <joao@crewai.com>