← 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?
- A.To make answers shorter
- B.The API allows only five tool calls in total
- C.To speed up each tool
- 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 →