Beginner-Friendly Topic
Take your time - it's perfectly normal to re-read this topic 2-3 times. Try the interactive code editor below to run code yourself. Use the Q&A section to check your understanding before moving on.You've got this!
Why Agents Need Tools
A language model alone can only generate text. Tools give agents the ability to take real actions in the world — searching the web, reading files, calling APIs, and updating databases.
The Problem with Text-Only AI
A language model without tools is like a very knowledgeable person who is locked in a room with no phone, no computer, and no way to interact with the world.
They can answer questions, write plans, and reason through problems. But they cannot:
- Look up current information
- Send emails
- Read files
- Update a database
- Execute code
- Call an API
Tools solve this problem. A tool is a function that the agent can call to interact with the real world. When an agent has tools, it can move from generating text about actions to actually performing them.
What Tools Enable
- Search: retrieve current information from the web or internal knowledge bases
- Read: access files, databases, and APIs to gather data
- Write: create records, update databases, and send messages
- Compute: run calculations, transformations, and validations
- Communicate: send emails, Slack messages, and notifications
- Control: start processes, trigger pipelines, and schedule tasks
Key Takeaways
- A language model alone can only generate text.
- Search: retrieve current information from the web or internal knowledge bases
- Read: access files, databases, and APIs to gather data
- Write: create records, update databases, and send messages