Files
crewAI/lib/crewai/tests/utilities/test_planning_handler.py
Devin AI edfbec4740 Fix: Set crew attribute on planning agent to prevent EventBus errors
- Added crew parameter to CrewPlanner.__init__() to accept crew reference
- Modified _create_planning_agent() to set crew attribute on planning agent
- Updated Crew._handle_crew_planning() to pass crew reference to CrewPlanner
- Added test to verify planning agent has crew attribute set
- Renamed test class from InternalCrewPlanner to TestCrewPlanner for pytest compatibility

Fixes #3782

Co-Authored-By: João <joao@crewai.com>
2025-10-23 09:59:40 +00:00

7.7 KiB