AI and LLMs · Middle · Question 12 of 75

Why set a maximum number of steps for an agent loop?

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.

Further reading

Problem with a question

AI and LLMs · Middle · question 12

Test yourself

Take the AI and LLMs · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz