Skip to Content
An Illustrated Guide to AI Agents
book

An Illustrated Guide to AI Agents

by Maarten Grootendorst, Jay Alammar
December 2026
Intermediate to advanced
400 pages
2h 36m
English
O'Reilly Media, Inc.
Content preview from An Illustrated Guide to AI Agents

Chapter 3. Tool Usage, Learning, and Protocols

The tool module is such an interesting module for augmenting your LLM and generating autonomous behavior in agents. By themselves, LLMs are nothing more than functions that take in some string and output some string. Although that creates interesting chatbots, they cannot yet interact with their environment.

A key trait that defines an agent is its ability to autonomously search for, select, and utilize tools, allowing it to interact with and influence its environment. With enough capabilities, agents can even create their own set of tools to use. The benefit of tools is not contained to interaction with the environment. Tools are typically used to access external knowledge or memories, as we discussed in the previous chapter. We can even use tools to access specialized (L)LMs that have capabilities that extend beyond what the agent is capable of, like multimodal LLMs or LLMs specialized for certain tasks (like coding). Generally, tools allow an ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

AI Agents in Practice

AI Agents in Practice

Valentina Alto
AI Agents in Action

AI Agents in Action

Micheal Lanham

Publisher Resources

ISBN: 9798341662681Errata Page