Building AI Agents from Scratch with Python
Tools and Real-World Robustness
An agent that can only talk isn't useful — the point is letting it do things: query a database, call an API, run code. This chapter adds tool calling to the loop from Chapter 2, then covers the failure modes that show up the moment an agent starts taking real actions.