Minimum-first framing: require two-tool trace plus no-auth fallback path; forced-failure handling is extension.
Day 1 ยท Block 4
Understand tool-calling loops and implement a small agent using multiple tools, with a no-auth local fallback path.
Block Write-up
Loading write-up...
Exercise overview: Tool-calling mini-agent
Inputs
- exercises/04/tool_agent.py
- Two tools: label lookup + average
- One multi-step question requiring both tools
Deliverable
tool trace with two tool calls + plausibility check + one TODO change note.
Target
Take a look at the LangChain documentation for tool use
Submission
- Use the live launcher: Live Exercises
- Direct prefilled form: E04 submission link
Checklist
- Make one explicit design decision.
- Include one verification check.
- State one limitation or risk.
Common failure modes
- Agent answers directly without using both tools.
- No no-auth fallback when external tool setup fails.
Extension task (optional)
Add graceful fallback for a forced tool failure and show fallback trace.