L2a: Multi-Tool Agent
Module: M2 Architecture
Files: starter.py, solution.py
Objective
Add file operations AND web search to your agent.
Concepts
Refer to the corresponding module for full concept explanations.
Starter
bash
cd course/labs/l2-multi-tool/
# Open starter file and fill in the TODOsCheckpoints
- Define a read_file tool schema
- Define a search_web tool (DuckDuckGo or similar)
- Define a write_file tool
- Implement execute_tool for all three
- Run the agent loop with tool result feedback
Solution
Compare against the solution file after attempting the starter.