โ AI Product Building learning pathAI Product Building ยท Module 5 of 10
Tools and agents
Agents use tools to take actions, not just write text.
๐ Key ideas
- Tool use (function calling) lets the model request actions like search_orders or send_email.
- Your code runs the tool and returns the result to the model.
- An agent loops: plan, call tools, read results, continue until done.
- Give tools narrow permissions and validate every argument.
- Ask for human approval before risky actions like payments or deletions.
๐ก Real-life example: Like a trainee with a phone and a list of approved numbers: they can call the store or the bank, but a manager signs off big payments.
Tool useModel asks your code to run a function
AgentModel that loops through steps and tools
Human-in-the-loopA person approves key steps
GuardrailRule that blocks unsafe actions