🎙 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 3 of 10

A tool fails because the roll number doesn't exist. What should you send back?

A tool fails because the roll number doesn't exist. What should you send back?

  1. A.Nothing — stop the program
  2. B.A tool_result with an error message and is_error set to true
  3. C.A fake successful result
  4. D.The Python stack trace to the user
Answer & explanation

Correct answer: A tool_result with an error message and is_error set to true

The model can then explain or ask for the right input.

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 →