mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-01 13:18:10 +00:00
- Add LoopDetector class with sliding window tracking, configurable repetition threshold, and intervention strategies (inject_reflection, stop, or custom callback) - Add LoopDetectedEvent for observability via the event bus - Integrate loop detection into all 4 executor loop methods (sync/async ReAct and native tools) - Add loop_detector field to BaseAgent - Export LoopDetector from crewai public API - Add i18n support for loop detection warning message - Add 50 comprehensive unit tests Co-Authored-By: João <joao@crewai.com>