I teach people what AI can actually do.
Then I build the labs and demos that let them do it without me in the room.
InstructorAndrew Yu. Lead Technical Writer at Salesforce, and Director of AI Enablement at Claude Dojo, a nonprofit.
Objective
Find out who runs the tool when an agent uses one: the model or your code.
You will need
This page. Nothing to install.
Step 1
You send a model one question and one tool it may use, search_portfolio. Who runs the search?
Tick one to reach the checkpoint.
Expected output. The model only replies with a request to call the tool. Your code runs it and sends the result back. That holds for tools you define, like this one. Anthropic's server tools, such as web search, run on Anthropic's side, and the model still runs nothing itself. Lab 02 shows every message.
If it fails. That is the common first guess. The model never runs anything on its own. Try the other box, or step through Lab 02 and watch who does what.
Checkpoint
passedLab 01