liveBook · Manning

Chapter 1: When and why to use agent design patterns

What you will learn in chapter 1 of Agent Design Patterns

This introduction frames agents as software that makes imperfect AI models more reliable and introduces agent design patterns as reusable solutions to common agent-design challenges.

After this chapter you will be able to

Section by section

Introduction

This introduction frames agents as software that makes imperfect AI models more reliable and introduces agent design patterns as reusable solutions to common agent-design challenges.

Key terms: AI agent, foundational models, output anomalies, high-quality data, agent design patterns, ADPs, patterns, composable modules, transparent, standardized

1.1 Why build agents?

This introductory section frames the debate around AI agents and motivates asking what agents are, why they are built, and what role they may have in software.

Key terms: AI agents, agentic AI, large language models, SaaS

1.1.1 What is an agent?

This section defines AI agents, explains their code–AI hybrid control model, and positions the book’s practical definition against a stricter autonomy-based view.

Key terms: AI agent, AI models, continued output refinement, repeated user interactions, code-AI hybrid, program control, code agency, model agency, speech-to-text model, LLM

1.1.2 Why do we design agents?

This section explains why agents are engineered around foundation models: to reduce unreliable behavior while adding practical capabilities, transparency, and sometimes lower cost.

Key terms: foundation models, LLMs, VLMs, world models, hallucinating, narrowing the AI's responsibilities, supervising the choice of information sources, fixed processes, interpretable processes, goal-motivated processes

1.2 AI’s problems already have solutions

This section defines agent design patterns as reusable behavioral abstractions and explains how they help developers compose, discuss, and revise agent designs.

Key terms: agent design pattern, ADP, behavioral patterns, instantiated, applied, introduced, implemented, abstract modules, functional LEGO bricks, Resampler

1.2.1 What can we do with ADPs?

This section shows how ADPs separate stable agent design from tunable performance parameters and allow targeted pattern additions to fix specific problems.

Key terms: ADPs, design decisions, parameter values, quality-specific design decisions, parameter tuning, Voter, Resampler, Persona, extracting Persona, voting beams

1.2.2 Using ADPs can pay off in multiple ways

This section explains how agent design patterns can improve agents through predictive performance, interpretability, alignment, and cost, and why specialized agent design is likely to remain valuable.

Key terms: performance, predictive performance, inference performance, capability, robustness, reliability, benchmarking dataset, metric, accuracy, interpretability

1.3 Summary

This summary explains why agents and agent design patterns make AI systems more reliable, structured, adaptable, and likely to remain useful.

Where this is used later

Concepts explained in this chapter

Chapter 2: Working with ADPs: Building a mortgage advisor tool →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.