liveBook · Manning

Chapter 1: The rise of AI agents

What you will learn in chapter 1 of AI Agents in Action, Second Edition

The introduction distinguishes response-generating LLM apps from AI agents that can decide and act toward goals.

After this chapter you will be able to

Section by section

Introduction

The introduction distinguishes response-generating LLM apps from AI agents that can decide and act toward goals.

Key terms: LLM-based apps, AI agents, environment, goal

1.1 Defining agents and agentic thinking

Defines agents and agentic behavior, distinguishes agents from reactive assistants, and places LLM-powered agents in the broader history of AI.

Key terms: agent, agentic, agency, environment, goal, generative assistant, autonomy, persistence, multistep workflows, LLM-powered agents

1.1.1 Understanding agent, assistant, and LLM patterns

This section distinguishes direct LLM interactions, tool-using assistants, and agents by how they use tools, pursue goals, and involve human approval.

Key terms: direct chat, LLM, tools, proxy agent interaction, assistant, agent, autonomy, per-step approval, higher-level goal, agency

1.1.2 Thinking like agents: Sense-plan-act-learn

This section explains how agents turn goals into tool-based tasks through a sense-plan-act-learn cycle, and why built-in model reasoning may still need guidance.

Key terms: agency, goal, tasks, tools, tool chaining, sense-plan-act-learn, SPAL cycle, sense, plan, act

1.1.3 Agents act with tools

This section explains how agents use registered tool functions to act on external systems, handle tool failures, and avoid repetitive integration work through shared protocols such as MCP.

Key terms: tools, tool functions, register a tool, tool failures, normal control flow, retries, fallbacks, runaway loops, Model Context Protocol (MCP), tool wrappers

1.2 Introducing the Model Context Protocol

This section introduces MCP as a standard way for agents to discover and use reusable external tools, and explains the basic connection flow and trust considerations.

Key terms: MCP, JSON-RPC 2.0, open standard, language-agnostic, prebuilt MCP servers, tool functions, shared, reusable layer, MCP server, registering, list_tools

1.3 Understanding the five functional layers of an agent

Introduces five functional layers for describing agent capabilities and explains that the layers are neither universally required nor executed in a fixed order.

Key terms: functional layers, persona, tools and actions, reasoning and planning, knowledge and memory, evaluation and feedback, agentic loop, runtime call order, core components

1.3.1 The agent persona

This section defines the agent persona as the first layer of an agent and describes what it can contain and how it can be created.

Key terms: agent persona, system prompt, role, operating constraints, handcrafting, LLM-assisted drafting, data-driven techniques, evolutionary algorithms, performance metrics

1.3.2 Agent tools and actions

This section explains how tools and actions extend agents and distinguishes information retrieval from persistent memory and actions in the world.

Key terms: tools and actions, reasoning and planning, knowledge and memory, evaluation and feedback, context retrieval, knowledge and memory tools, task completion tools, external state, persistent stores

1.3.3 Agent reasoning and planning

This section explains when agents need structured reasoning, compares single-path and multipath planning, and introduces external planners.

Key terms: model-native reasoning, structured reasoning augmentation, reasoning trace, guardrails, single-path reasoning, multipath reasoning, tree-of-thought, token, latency, external planners

1.3.4 Agent knowledge and memory

This section explains how agents use external knowledge and interaction-based memory to supply relevant context, and why retrieval and context-window limits shape what an agent sees.

Key terms: knowledge, memory, conversational memory, short-term memory, long-term memory, context window, tokens, context window management, retrieval-augmented generation, RAG

1.3.5 Agent evaluation and feedback

This section explains how evaluation and feedback improve agent responses, both as external checks and as internal feedback during the agent’s learn phase.

Key terms: evaluation and feedback layer, LLM-as-judge, rubric, learn phase, internal feedback, goal-execution plan, guardrails, critic, evaluator, actor-critic arrangement

1.4 Advancing to multi-agent systems

This section explains four reasons to use multiple agents when a single agent is limited by a problem’s scale, scope, or need for independent actors.

Key terms: specialization, context management, context window, parallelism, fan out, wall-clock time, inherently multi-agent problems, independent actors, distinct goals

1.4.1 The agent flow assembly line

This section explains how specialized agents can work in an assembly-line flow, how they can share context, and when that pattern is useful.

Key terms: agent flow, assembly line, specialized worker, designated roles, threaded, blackboard, chained, conversation thread, schema, shared context

1.4.2 Agent orchestrations (hub-and-spoke)

This section explains how a hub-and-spoke agent orchestration delegates work, why it helps, and where it limits collaboration.

Key terms: agent orchestration, hub-and-spoke, orchestrator, worker agents, subgoals, single agent, input and output, worker agents as tools, feedback, evaluation

1.4.3 Agent collaboration (teams of agents)

This section explains how teams of role-based agents collaborate and why their ability to tackle complex problems must be weighed against communication and cost.

Key terms: agent team, collaboration pattern, agent role, QA agent, product agent, agent collaboration, latency, token spend, operational complexity, capability

1.5 Next steps

Outlines the book’s path from agent layers to advanced systems and clarifies that production operations receive only brief coverage.

1.6 Summary

This chapter summary recaps what makes agents autonomous, how their capabilities are organized and connected to tools, and how multiple agents can work together.

Where this is used later

Concepts explained in this chapter

Chapter 2: Core components: Large language models, prompting, and agents →

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.