liveBook · Manning

Tool integration

As explained in Building Reliable AI Systems

The process of connecting tools to an AI system so it can invoke them as part of its operation.

Tool integration connects an AI agent to APIs, databases, and other external systems. Without it, an LLM may understand a request but be unable to carry it out: asked to schedule a meeting, it can suggest sending invitations but cannot use a calendar or email service. Tool integration gives the agent a way to retrieve information or take action instead of merely describing what to do. section 6.1.2 section 6.2

The purpose of a tool call depends on what the connected system does:

  • Retrieval obtains external information, such as current data from an API or records from a database, so an answer need not rely on the model’s stored patterns. section 6.2.2
  • Action changes state outside the agent. A booking API can reserve a selected flight; email and calendar services can then send a confirmation and update a schedule. Passive retrieval alone cannot perform those steps. section 6.2.3

Checking the weather

Asked for the current weather in Paris, an agent without a live source might confidently invent a temperature. With a weather API, it can query the current conditions and answer from the returned data. The important difference is not a more confident response, but access to information the model could not verify on its own. section 6.2.3

Tool integration works alongside memory, which retains context, and decision-making frameworks, which orchestrate actions and workflows. External access can reduce unsupported answers, but calls need not be automatic: deciding when to consult an API can improve reliability while avoiding unnecessary queries. A tool-connected response is more readily grounded in external data; the connection itself is not a guarantee that every answer is correct. section 6.2 section 6.2.3

How Building Reliable AI Systems covers it

How deep it goes
Explains retrieval-versus-action behavior and a weather comparison, but does not provide a tool-calling implementation in the supplied excerpts.
Examples
Uses meeting scheduling, flight booking with email and calendar updates, and a live weather query.
What you can do after
Evaluate/understand when an agent needs external retrieval or a state-changing tool rather than a generated suggestion.
How it connects
Links tool integration to memory, decision-making frameworks, hallucinations, and retrieval-augmented generation.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Reliable AI Systems. The section links point to the parts of the book it draws on.