Files
crewAI/tests
Devin AI 0ca45f6bc5 Fix Pydantic compatibility issue in FlowTrackable model validator
- Remove max_depth parameter from _set_parent_flow method signature
- Convert max_depth to local variable to maintain functionality
- Ensures compatibility with Pydantic versions < 2.8
- Add comprehensive tests for FlowTrackable instantiation scenarios
- Fixes issue #3011 where Crew instantiation failed with ValidationInfo errors

The model validator signature now follows the same pattern as other
validators in the codebase (Agent, LiteAgent, BaseAgent) which only
accept 'self' parameter.

Co-Authored-By: João <joao@crewai.com>
2025-06-16 14:40:25 +00:00
..
2025-03-14 03:00:30 -03:00
2023-10-29 19:51:59 -03:00