Tool Use & Function Calling — Final Exam

13 questions · pass mark 80% · 20 minute limit. The timer auto-submits at zero.

Time remaining: 20:00
  1. Question 1easy

    What is the main advantage of native function calling over the text-based ReAct protocol?

  2. Question 2easy

    How is a tool described to the model for function calling?

  3. Question 3medium

    In the structured tool-call loop, what must each tool-result message reference?

  4. Question 4medium

    How does the loop know the agent is finished in native function calling?

  5. Question 5hard

    A JSON schema guarantees arguments have the right types. Why still validate them?

  6. Question 6medium

    In the examples, what role does pydantic play?

  7. Question 7medium

    When can a model request multiple tool calls in a single turn?

  8. Question 8hard

    A tool raises an exception (timeout, 404, bad value). What is the correct handling in an agent loop?

  9. Question 9hard

    Why should tool error messages be informative rather than a bare exception like 'KeyError'?

  10. Question 10hard

    Which are good practices for agent tool use? (Select all that apply)

    Select all that apply.

  11. Question 11medium

    Within a tool's JSON schema, what does an `enum` on a property express?

  12. Question 12medium

    What data format (two words) is used to describe a tool's parameters to the model?

  13. Question 13hard

    In one word, what should you do with a tool exception so the agent can keep going: crash, or ____ it and return the error as an observation?

0 / 13 answered