The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Foundations, Memory, Patterns, Protocols and Frameworks
Minimum price
$59.99
$79.49
About the Book
The engineering reference the AI agent field has been missing. In 2024 and 2025, the community produced a flood of AI agent tutorials. Almost none of it answered the questions that matter in production: Why is the system designed this way? What fails — and why? What does this architectural decision cost at scale? Architecting AI Agent Systems, Volume 1 closes that gap. Written for software engineers and architects, this is a precision-engineered, production-oriented reference—not a tutorial collection. It builds the complete architectural foundation of autonomous AI systems: from LLM fundamentals to agent anatomy, multi-agent orchestration, the MCP/A2A/ANP protocol stack, the 2026 framework landscape, and the integration stack. By the final chapter, you hold a battle-tested mental model of how agent systems are designed. Volume 2 takes every pattern specified here and implements it in production Java. What this book covers — 815 pages, 35 chapters, 7 parts: Prologue — LLM Foundations: LLMs as stateless functions, token economics, context window management as a resource, and the conceptual bridge to autonomous agency. Part I — Foundations of Agentic AI: Agentic systems defined, the OODA-inspired loop, loop failure modes (infinite loops, divergence), and prompt engineering as a systems discipline with injection defense and regression testing. Part II — Anatomy of an AI Agent: The agent runtime, perception pipelines, reasoning architectures (ReAct, Tree-of-Thought, LATS, Reflexion, BDI), tool calling contracts, and cognitive architecture trade-offs. Part III — Memory Architecture: The five-type memory taxonomy, vector databases (Pinecone, Qdrant, pgvector), knowledge graphs, hybrid retrieval, memory consolidation, and security attack surfaces. Part IV — Multi-Agent Orchestration: Supervisor–Worker, Manager–Specialist, Pipeline, Blackboard, Hierarchical patterns, peer-to-peer delegation, and human-in-the-loop (HITL) as an architectural decision. Part V — Communication Protocols: The three-layer stack: MCP (Model Context Protocol) for tool access; A2A (Agent-to-Agent) for collaboration; and ANP (Agent Network Protocol) for the open agent web via W3C DIDs and DIDComm v2. Part VI — The 2026 Framework Landscape: Evaluations of LangGraph, Microsoft Agent Framework, Google ADK, OpenAI Agents SDK, FastMCP, CrewAI, PydanticAI, and Mastra—assessed against production rubrics. Part VII — Tooling & Integration: Tool abstraction, enterprise integration (REST, GraphQL, queues), advanced patterns (parallel fan-out, async tools), and agentic RAG pipelines with hybrid search and reranking. Who this book is for: Software engineers building production AI systems who need depth beyond API documentation. Architects making framework and protocol decisions. Technical leads evaluating MCP, A2A, and ANP for enterprise adoption. Senior engineers moving from RAG to autonomous architectures. What sets this apart: Structured Reference: Every chapter opens with precise learning objectives and closes with hard engineering takeaways. Honest Evaluations: Framework reviews cover failure modes and "when not to use" rather than "Hello World" marketing. Specification-Grade: Protocol coverage (MCP, A2A, ANP) is treated with the rigor of engineering contracts, including security and lifecycle detail.
For every engineer who asked why it works before asking how to use it.
About the Author
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
Learn more about writing on Leanpub
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.