mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 17:18:29 +00:00
- Add task_ordering_callback field to Crew class with proper validation - Implement dynamic task selection in _execute_tasks method - Add comprehensive error handling and validation for callback - Include tests for various ordering scenarios and edge cases - Maintain backward compatibility with existing code - Support both task index and Task object returns from callback - Add example demonstrating priority-based and conditional ordering Fixes #3620 Co-Authored-By: João <joao@crewai.com>
9.2 KiB
9.2 KiB