Skip to Content
Modelli di progettazione dell'IA generativa
book

Modelli di progettazione dell'IA generativa

by Valliappa Lakshmanan, Hannes Hapke
October 2025
Intermediate to advanced
508 pages
12h 52m
Italian
O'Reilly Media, Inc.
Book available
Content preview from Modelli di progettazione dell'IA generativa

Chapter 7. Enabling Agents to Take Action

The patterns we’ve covered in this book so far have involved creating content in some form. In this chapter, we’ll discuss three patterns that enable applications built on foundational models to interact with the world—often, this is the line beyond which we consider the application to be agentic. Tool Calling (Pattern 21) enables models to invoke external functions through structured interfaces. Code Execution (Pattern 22) allows models to write and run code to solve complex problems. Multiagent Collaboration (Pattern 23) orchestrates specialized AI agents in hierarchical, peer-to-peer, or market-based architectures to tackle complex tasks through division of labor.

Pattern 21: Tool Calling

The Tool Calling pattern enables an LLM to act in the world, either to obtain information (for example, through web search) or to make a change to the environment (for example, by writing out a file). It does so by having the LLM emit special tokens when it determines that a function needs to be called, along with the arguments to pass to that function. A client-side postprocessor invokes the function with those parameters and sends the results back to the LLM, and the LLM incorporates the function results in its response.

Problem

At their core, multimodal LLMs generate content in different forms (text, images, audio, and video). This is enough to provide capabilities such as creating research reports, translating between languages, and generating ...

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

Modelli linguistici di grandi dimensioni pratici

Modelli linguistici di grandi dimensioni pratici

Jay Alammar, Maarten Grootendorst
IA generativa pratica con trasformatori e modelli di diffusione

IA generativa pratica con trasformatori e modelli di diffusione

Omar Sanseviero, Pedro Cuenca, Apolinário Passos, Jonathan Whitaker
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9798341671416Supplemental Content