- 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>