← 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?
- A.Nothing — stop the program
- B.A tool_result with an error message and is_error set to true
- C.A fake successful result
- 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 →