Files
crewAI/lib
Devin AI 52d36ccaf9 feat: add agent loop detection middleware (#4682)
- 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>
2026-03-03 03:33:33 +00:00
..
2026-02-27 09:44:47 -05:00