Add a mechanism to prevent infinite loops for Agent
Open
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
When some models lack sufficient capability, the agent may infinitely loop through a single task (e.g., executing a shell script).
We hope to add a mechanism to the agent to detect the N most recent duplicate tasks (or recurring loops of responses from LLM endpoints)
and to stop the loop.
Contributor guide
Assessment
This issue has not been assessed yet.