🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Tools and Agents: all 10 questions

Quiz: Tools and Agents · Question 8 of 10

Why does runagent have maxsteps?

Why does run_agent have max_steps?

  1. A.To make answers shorter
  2. B.The API allows only five tool calls in total
  3. C.To speed up each tool
  4. D.To stop a confused agent from looping forever and burning money
Answer & explanation

Correct answer: To stop a confused agent from looping forever and burning money

Always set hard limits on agent loops.

Can you get the rest right without peeking?

Take the timed Quiz: Tools and Agents quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →