AI and LLMs · Middle · Question 12 of 75
Why set a maximum number of steps for an agent loop?
- 1To stop runaway loops that waste tokens or repeat actions
- 2Because models can't call more than three tools in total
- 3To make the agent's final answer more creative
Show the answer
Correct answer: To stop runaway loops that waste tokens or repeat actions
Explanation
Agents can get stuck retrying the same tool. Step and budget limits, plus clear stop conditions, keep costs bounded.