Agent Foundations: sections and modules
The Agent Loop & Tool Calling
Implement tool use and ReAct-style planning with raw API calls and no framework.
- Lessons
- 8 lessons
- By
- Sourav Banerjee
- Prerequisites
- None
Lessons
Start modulePractise and Check
- Deliverable
- Retriever as a tool, by hand: wrap your T6 retriever as a tool, run it through your own tool loop with no framework, and log every tool call and error.
- Assessment
- Answer the five Interview questions without notes, then run the lab.
- Interview probe
- Larkspur's support agent returns a 500 whenever a customer mistypes a server name ("Is web-9 up?"). The logs show `ValueError: Unknown server 'web-9'`. The tool works for valid names. What is wrong, and what do you change?
- Common mistakes
- No
max_roundscap on a hand-written ReAct loop - Vague tool descriptions that cause wrong or missing calls
- Letting tool exceptions escape instead of returning an error
ToolMessage
- No
Your Progress
Saved in this browser when you leave the box.