mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
- Fix Flow constructor to accept initial_state parameter - Replace dict conversion with model.model_copy() in _create_initial_state - Replace dict conversion with model.copy(update=...) in _initialize_state - Add comprehensive tests covering dict method name collisions - Preserve BaseModel structure to prevent attribute collision Fixes issue where Pydantic BaseModel instances were coerced into dicts, causing field names like 'items', 'keys', 'values' to be overridden by built-in dict methods. Now BaseModel structure is preserved using Pydantic's built-in copying methods. Co-Authored-By: Jo\u00E3o <joao@crewai.com>
5.2 KiB
5.2 KiB