Anatomy of an AI agent · 03
Tools
Tools give an AI agent the ability to interact with the world beyond the model itself. While a model can interpret language and generate responses, tools allow it to retrieve information, perform calculations and take actions.
For example, a model may know a great deal about Paris, but it cannot reliably tell you which hotels are available next weekend without access to an external source of information. Tools provide that connection.
How do tools work?
Each tool is typically given a name, a description of what it does and the information it requires to operate. The model uses these descriptions to determine which tool is appropriate for a particular request.
When a tool is selected, the agent’s execution environment runs it and returns the result to the model. The model can then use that information to respond to the user or determine what to do next.
Consider the following example:
01 / User input
What’s the weather like in Paris?
02 / Available capabilities
03 / Tool result
04 / Response
An illustrative example of how access to a tool extends the capabilities of a model.
What can tools do?
Tools can be developed to perform almost any task that can be exposed through software.
| Capability | Example |
|---|---|
| Retrieve | Check flight availability. |
| Calculate | Determine mortgage affordability. |
| Create | Generate a document. |
| Update | Change a delivery address. |
| Execute | Book an appointment. |
Developers often connect agents to existing applications through an Application Programming Interface (API). An API allows different software systems to communicate programmatically. Tools can also be implemented as functions written by developers.
Giving an agent more tools does not necessarily make it more capable. Tools should be relevant to its purpose, clearly described and restricted to the appropriate level of access.
If the model represents intelligence, tools represent capability.