Skip to content
skillbld
Day 6 of 14 35 minTool definitionsTool callsResults

Let the model call your own functions. Define tools with a name, description and input schema, run the tool-use loop, return results and errors, and keep tools safe.

By the end of today you can

  • Explain what tool use (function calling) is and why models need it
  • Define a tool with a name, description and input schema
  • Run the tool-use loop - request, tool call, your code runs it, result back
  • Return errors and handle several tool calls at once
  • Keep tools safe with validation, limited permissions and confirmations

What's inside

  • 6 sections
  • 3 diagrams and mind maps
  • 3 code examples you can run
  • 5-question quiz
  1. 1How tool use works
  2. 2Defining a tool
  3. 3The tool-use loop, step by step
  4. 4With the real API
  5. 5Errors and multiple calls
  6. 6Keeping tools safe

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free
Day 6: Tool Use · AI: Building with LLMs · SkillBld