Skip to main content
Learn
Reference
Pricing
News
Blog
Mastering Function Calling & Tool Use
/
Function Calling Fundamentals
/
Quiz
Function Calling Fundamentals
Question 1 of 4
25%
What should you do when a function call fails with an error?
A
Raise an exception to crash the program
B
Return an empty string as the tool result
C
Return a structured error JSON as the tool result so the model can respond helpfully
D
Ignore the error and retry the same call
Previous
Next
Press
1-4
to select,
Enter
to continue