Skip to main content

Module loop_detector

Module loop_detector 

Source
Expand description

Loop detection for agent outputs — prevents repetitive/stuck agents. Loop detection for ARES agents.

Detects when an agent is producing repetitive outputs and intervenes to break the loop. Uses a sliding window of recent outputs with similarity hashing.

Structs§

LoopDetector
Tracks agent outputs and detects repetitive loops.
LoopDetectorConfig
Configuration for loop detection.

Enums§

LoopAction
Actions to take when a loop is detected.
LoopStatus
Result of checking an output for loops.