Free module
Tool calling
Learn tool calling hands on: describe a function to a model, run the call loop, handle errors and ask a person before risky calls.
The lessons
Each lesson is free to read in full. Create a free account to run its commands in a live lab and to sit its quizzes and tasks.
1 · Container lab
Function calling with a language model
I can describe a function so that a model can ask for it.
Read the lesson2 · Container lab
The tool calling loop
I can run the loop of ask, call, answer and ask again.
Read the lesson3 · Container lab
Giving a model several tools
I can offer more than one tool and route each request to the right function.
Read the lesson4 · Container lab
What to do when a tool fails
I can pass a tool's error back as a result so the model can recover.
Read the lesson5 · Container lab
Asking a person before a tool runs
I can make a risky tool wait for a person to approve it.
Read the lesson6 · Container lab
Build an assistant that uses tools
I can build a small assistant that uses my own functions.
Read the lesson
Worked in a real lab
Every lesson of this module is worked in a lab started for you alone. The labs it uses:
Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.