AI AgentsIntermediate24 September 2026
An agent repeatedly calls the same failing tool with unchanged arguments. Which safeguard directly stops this loop?
Pick an answer to see the explanation.
Answer
A step limit plus repeated-action detection
Step budgets and repeated-action detection provide deterministic termination when an agent gets stuck. Prompt wording may help behavior, but it is not a reliable runtime control.
Learn more: Build your first practical AI agent →