mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-02 13:48:09 +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>