Best safeguard against an agent looping forever?
- Cap on total turns and tool calls per task
- Higher temperature for variety
- More verbose system prompt
- Bigger context window
Show answer and solution
Correct answer: A. Cap on total turns and tool calls per task
A loop budget (max turns + max tool calls) forces decisive work and prevents agents from spinning indefinitely.