Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
AI Agents in Action, Second Edition: Intelligent workflows with LLMs, MCP, A2A, and more
Purchase options and add-ons
"Great contents, broad coverage, fun exercises. This book has it all.”
—Saurabh Sawant, Microsoft
AI Agents in Action, Second Edition is a substantial revision and update of the first edition. It is a practical and comprehensive guide to building AI agents—not just understanding what they are, but designing, implementing, evaluating, and deploying them. Its strength is in the way it combines conceptual clarity with working code examples, so readers build progressively rather than absorb isolated ideas. The examples form a continuous learning path, moving from a minimal agent to more capable, tool-using, multi-agent, and deployable systems. Each step adds a new skill while reinforcing what came before.
The book begins by giving readers a usable mental model for agent design. Its central organizing idea is the five functional layers: persona, actions and tools, reasoning and planning, knowledge and memory, and evaluation and feedback. This framework helps readers understand where an agent’s behavior comes from and how to diagnose weaknesses. Rather than randomly adding prompts, tools, or memory, readers learn to ask which layer needs improvement. This is especially valuable because the model is not tied to one vendor or framework; it remains useful even as APIs and tools continue to change.
From there, the book moves into the practical building blocks of agents: LLMs, prompting, typed outputs, tracing, tool use, and the OpenAI Agents SDK. Typed outputs reduce brittle text parsing. Tracing exposes what the agent is doing. Tool integration gives agents the ability to act rather than merely respond. The cumulative benefit is that readers learn to build agents that are more predictable, inspectable, and maintainable.
A highlight is the treatment of Model Context Protocol. Readers liked the book’s “USB-C” analogy, because it explains MCP as a standard connector between agents and external capabilities. The book shows how MCP can flatten “a mess of bespoke integrations” into cleaner, swappable components, helping developers build agents that are modular instead of tangled.
The book also covers multi-agent architectures, reasoning patterns, planning strategies, RAG, memory, evaluation, feedback, observability, and deployment. Each topic is tied to a practical benefit: multi-agent patterns help divide complex work; reasoning and planning help agents handle multi-step tasks; RAG and memory let agents use external and retained knowledge; evaluation and feedback help make them safer and more reliable.
Physically, this is a substantial but focused book covering 392 pages across 11 chapters. Its tables and figures are a valuable part of the learning experience. While building, readers will want to return to the easy-to-use tables summarizing complex trade-offs.
AI Agents in Action shows developers how to build agents they can ship, trust, and maintain.
What's inside
• Autonomous agent design and deployment
• MCP-based tools, resources, prompts, memory, and server integrations
• Reasoning and planning patterns including ReAct, Reflexion, Tree-of- Thought, and Sequential Thinking
About the reader
For intermediate Python programmers. No experience with AI agents and agentic systems required.
About the author
Micheal Lanham is a software and technology innovator with over 20 years of industry experience. He has authored books on deep learning, including Manning’s Evolutionary Deep Learning.
Table of Contents
1 The rise of AI agents
2 Core components: Large language models, prompting, and agents
3 Actions with Model Context Protocol for AI agents
4 Architecting and building multi-agent systems
5 Agent reasoning and planning
6 Working with memory and knowledge RAG for agents
7 Building robust agents with evaluation and feedback
8 Deploying agents and agentic systems
9 Understanding the agentic loop
10 Exploring the cognitive agent that thinks, monitors, and adapts
11 Tips for building agentic systems
A Setting up the sample code repository
B Node.js setup for local MCP servers
- ISBN-101633434532
- ISBN-13978-1633434530
- Edition2nd
- Publication dateJuly 14, 2026
- LanguageEnglish
- Dimensions7.38 x 0.98 x 9.25 inches
- Print length391 pages
Frequently bought together

Customers who viewed this item also viewed
- The Agentic AI Bible: The Complete and Up-to-Date Guide to Design, Develop, and Scale Goal-Driven, LLM-Powered Agents that Think, Execute and EvolvePaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Sep 21
- AI Engineering: Building Applications with Foundation ModelsPaperbackFREE Shipping by AmazonGet it as soon as Sunday, Sep 20
- Build an AI Agent (From Scratch): Agents that reason, plan, and act autonomouslyJungjun HurPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Build a Reasoning Model (From Scratch)PaperbackFREE Shipping by AmazonGet it as soon as Sunday, Sep 20
- Domain-Specific Small Language Models: Efficient AI for local deploymentPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Build a Large Language Model (From Scratch)PaperbackFREE Shipping by AmazonGet it as soon as Sunday, Sep 20
Customers also bought or read
- Build a Reasoning Model (From Scratch)#1 Best SellerProgramming Algorithms
Paperback$47.82$47.82FREE delivery Sun, Sep 20 - Domain-Specific Small Language Models: Efficient AI for local deployment
Paperback$41.51$41.51FREE delivery Mon, Sep 21 - AI Agents and Applications: With LangChain, LangGraph, and MCP
Paperback$51.69$51.69FREE delivery Mon, Sep 21 - AI Engineering: Building Applications with Foundation Models#1 Best SellerEnterprise Applications
Paperback$52.40$52.40FREE delivery Sun, Sep 20 - Building Applications with AI Agents: Designing and Implementing Multiagent Systems
Paperback$56.44$56.44FREE delivery Sun, Sep 20 - Designing Multi-Agent Systems: Principles, Patterns, and Implementation for AI Agents
Paperback$46.39$46.39FREE delivery Mon, Sep 21 - Agentic Coding with Claude Code: The everyday developer's guide to agentic coding with Claude Code
Paperback$36.33$36.33FREE delivery Mon, Sep 21 - Hands-On Large Language Models: Language Understanding and Generation
Paperback$37.68$37.68FREE delivery Mon, Sep 21 - 30 Agents Every AI Engineer Must Build: Build production-ready agent systems using proven architectures and patterns
Paperback$41.79$41.79FREE delivery Tue, Sep 22 - Build a Large Language Model (From Scratch)#1 Best SellerComputer Neural Networks
Paperback$49.24$49.24FREE delivery Sun, Sep 20 - Sutskever's List: Foundational ideas of modern AI#1 New ReleaseComputer Vision & Pattern Recognition
Paperback$49.99$49.99FREE delivery Mon, Sep 21 - Agentic Architectural Patterns for Building Multi-Agent Systems: Proven design patterns and practices for GenAI, agents, RAG, LLMOps, and enterprise-scale AI systems
Paperback$44.99$44.99FREE delivery Sun, Sep 20 - AI Agents in Action: Build, orchestrate, and deploy autonomous multi-agent systems
Paperback$59.99$59.99 - Reinforcement Learning from Human Feedback: LLM alignment and post-training
Just releasedPaperback$59.99$59.99FREE delivery Mon, Sep 21 - Agentic Spec-Driven Development: A Practical Method for Using AI to Build Complete Specifications for Software, Products, and Knowledge Work
Paperback$39.95$39.95FREE delivery Mon, Sep 21 - AI Systems Performance Engineering: Optimizing Model Training and Inference Workloads with GPUs, CUDA, and PyTorch
Paperback$87.70$87.70FREE delivery Mon, Sep 21 - Deep Learning with PyTorch, Second Edition: Training and applying deep learning and generative AI models
Paperback$51.68$51.68FREE delivery Mon, Sep 21 - Building Agentic AI: Workflows, Fine-Tuning, Optimization, and Deployment (Pearson AI Signature Series)
Paperback$49.99$49.99FREE delivery Mon, Sep 21 - System Design for the LLM Era: Patterns and principles for production-grade AI architecture#1 New ReleaseWeb Services
Paperback$36.99$36.99FREE delivery Mon, Sep 21 - Context Engineering for Multi-Agent Systems: Move beyond prompting to build a Context Engine, a transparent architecture of context and reasoning
Paperback$37.99$37.99FREE delivery Mon, Sep 21 - Generative AI Design Patterns: Solutions to Common Challenges When Building GenAI Agents and Applications
Paperback$68.99$68.99FREE delivery Sun, Sep 20 - LLMs in Production: From language models to successful products
Paperback$48.13$48.13FREE delivery Sun, Sep 20 - Building Agentic AI Systems with Claude Code: A Practical Guide to MCP, Sub-Agents, Hooks, Computer Use, and Production-Ready AI Workflows in 2026
Paperback$17.99$17.99Delivery Mon, Sep 21 - The Claude Code Operating Model: Build scalable AI coding systems with Skills, MCP, Hooks, agent orchestration, and SDK patterns#1 Best SellerDesign & Graphics Software Books
Paperback$35.99$35.99FREE delivery Mon, Sep 21 - Building Claude Skills: Turn repeatable work into reusable Claude Skills#1 Best SellerSoftware Reuse
Paperback$24.99$24.99Delivery Mon, Sep 21
From the Publisher
"One of the most practical introductions to agent development available today."
Ajay Prakash, LinkedIn
“An outstanding book for beginner practitioners in the field of AI agent development.#
Roger Meli, IT Architect
"A comprehensive yet digestible overview of agents, and by the end of it, you'll be able to build an agent that can even summarize it for you"
Daksh Gupta, Co-founder, CEO Greptile
why this book?
AI Agents in Action, Second Edition helps intermediate Python developers move from prompt tinkering to designing, building, evaluating, and deploying practical AI agents.
You learn a reusable architecture for agent systems through five functional layers—persona, tools/actions, reasoning/planning, knowledge/memory, and evaluation/feedback—while also gaining hands-on experience with OpenAI Agents SDK, MCP, RAG, multi-agent workflows, guardrails, observability, and deployment.
By the end, you will be able to build more reliable, inspectable, maintainable agents that use tools, reason over complex tasks, retrieve knowledge, coordinate with other agents, and operate closer to production standards.
about Manning
Manning helps developers and tech professionals stay ahead in a fast-moving industry with expert-led books, videos, and projects. Learning never stops, but it’s hard to keep up, so we focus on content that’s practical, clear, and trusted. As an independent publisher, we adapt quickly, from pioneering early-access books to offering DRM-free eBooks. Our series, like "In Action" and "In a Month of Lunches", reflect a commitment to making complex topics accessible.
Deep Learning with Python, Third Edition
|
AI Agents in Action
|
Build a Large Language Model (From Scratch)
|
LLMs in Production: From language models to successful products
|
Data Analysis with LLMs: Text, tables, images and sound (In Action)
|
Causal AI
|
|
|---|---|---|---|---|---|---|
|
Add to Cart
|
Add to Cart
|
Add to Cart
|
Add to Cart
|
Add to Cart
|
Add to Cart
|
|
| Customer Reviews |
4.2 out of 5 stars 42
|
4.0 out of 5 stars 51
|
4.5 out of 5 stars 613
|
4.5 out of 5 stars 36
|
4.8 out of 5 stars 7
|
4.4 out of 5 stars 14
|
| Level of proficiency | Intermediate | Intermediate | Intermediate | Intermediate | Intermediate | Advanced |
| About the reader | For readers with intermediate Python skills. | For intermediate Python programmers. | Readers need intermediate Python skills and some knowledge of machine learning. | For data scientists and ML engineers. | For data scientists and data analysts. | For data scientists and machine learning engineers. |
| Special features | Includes liveBook with out built-in AI assistant. | Includes liveBook with out built-in AI assistant. | Includes liveBook with out built-in AI assistant. | Includes liveBook with out built-in AI assistant. | Includes liveBook with out built-in AI assistant. | Includes liveBook with out built-in AI assistant. |
| Pages | 648 | 344 | 368 | 456 | 232 | 520 |
Editorial Reviews
About the Author
Product details
- Publisher : Manning Publications
- Publication date : July 14, 2026
- Edition : 2nd
- Language : English
- Print length : 391 pages
- ISBN-10 : 1633434532
- ISBN-13 : 978-1633434530
- Item Weight : 13.8 ounces
- Dimensions : 7.38 x 0.98 x 9.25 inches
- Part of series : In Action
- Best Sellers Rank: #25,023 in Books (See Top 100 in Books)
- Customer Reviews:
About the author

Michael Lanham is a proven software and tech innovator with 25+ years of experience. During that time, he has developed a broad range of software applications, including games, graphic, web, desktop, engineering, artificial intelligence, GIS, and machine learning applications for a variety of industries as an R&D developer. Michael has worked as an GIS Architect, Data Scientiest, Machine Learning Engineer, AI Engineer and Manager of an AI team He currently resides in Calgary, Alberta, Canada, with his family. At the turn of the millennium, Michael began working with neural networks and evolutionary algorithms in game development. He later applied many of those practices to several applications in Oil and gas, GIS and financial services.
Michael has written 10 books including "Augmented Reality Game Development," "Game Audio Development with Unity 5.x," and "Learn ARCore: Fundamentals of Google ARCore," all published by Packt Publishing. Additionally, he has written "Evolutionary Deep Learning" by Manning Publications and "Learn Python Game Development with ChatGPT" by BPB. He is currently writing "AI Agents In Action" for Manning Publications.















