Agentic Design Patterns¶
《Agentic Design Patterns》图书封面
Authorship and Credit¶
- Authors: Antonio Gulli
- Compiled by: ningg@GitHub (Email: guoning.gn@gmail.com )
- 作者: Antonio Gulli
- 翻译: ningg@GitHub (Email: guoning.gn@gmail.com )
What makes this book stand out?¶
This 424-page guide tackles the real challenges we face when building intelligent, autonomous AI systems. It bridges the gap between theory and implementation—exactly what our field needs right now. This is the best resource for anyone serious about building real AI systems. If you're an engineer, researcher, or product manager ready to move beyond basic LLM applications and build truly robust AI agents, this is for you.
这本 424 页的指南聚焦在 构建智能、自主 AI 系统 时的真实挑战,在理论与工程实践之间搭起桥梁,正好契合当下行业需求。对任何希望认真打造可落地 AI 系统的人而言,它都是极具价值的参考;若你是工程师、研究员或产品经理,正准备从基础大语言模型应用迈向 真正稳健的智能体系统 ,本书正适合你。
The book covers essential agentic patterns including Prompt Chaining, Routing, Planning, and Multi-Agent Systems, all with practical, code-based examples. You'll find comprehensive coverage of Tool Use, Memory Management, and RAG implementation, plus advanced topics like Reasoning Techniques and Inter-Agent Communication.
全书涵盖提示链、路由、规划与多智能体协作等核心智能体设计模式,均配有可运行的代码示例;同时系统讲解工具使用、记忆管理与 RAG 实现,并延伸到推理技术与智能体间通信等进阶主题。
Inside you will find:
书中,主要内容包括:
- Real code examples: Not just theory, but working implementations.
- Proven patterns: Memory handling, exception logic, resource control, safety guardrails.
- Advanced techniques: Multi-agent orchestration, inter-agent messaging, human-in-the-loop.
- Full chapter on MCP (Model Context Protocol): A key framework for integrating tools with agents.
- 真实代码示例: 不止于理论,更有可运行代码。
- 经实践检验的智能体模式: 记忆与上下文处理、异常逻辑、资源约束、安全护栏。
- 进阶技术: 多智能体编排、智能体间消息传递、人在回路中(human-in-the-loop)。
- MCP(模型上下文协议)专章: 将外部工具与智能体集成的关键框架。
It covers 21 core patterns across 4 sections:
全书分四部分,介绍 21 种核心智能体模式:
- Foundational patterns (prompt chaining, routing, tool use)
- Advanced systems (memory, learning, monitoring)
- Production concerns (error handling, safety, evaluation)
- Multi-agent architectures
- 基础模式(提示链、路由、工具使用)
- 高级系统(记忆、学习、监控)
- 生产实践问题(错误处理、安全、评估)
- 多智能体架构
Most AI content stops at “how to call an API.” But in real-world systems you need to ask:
现实中,多数 AI 资料聚焦在「如何调用 API」。在真实生产系统中,你还需要追问几个关键问题:
- What if the agent gets stuck mid-task?
- How do you preserve memory across long sessions?
- How do you prevent chaos when you run 10+ agents?
- 智能体,任务运行时,
中途卡住怎么办?- 如何在 长会话 中,保持
记忆连贯?- 数十个智能体同时运行,如何
避免失控与混乱?
This book answers all that with patterns you can actually apply. The 70+ page appendix alone is worth the investment, featuring Advanced Prompting techniques and an overview of Agentic Frameworks.
本书涵盖一系列可直接落地的智能体设计模式,来回答上述问题。 附录部分(大概 70 页),涵盖
进阶提示工程与智能体开发框架概览。
Table of Contents¶
Introduction¶
- Dedication
- Acknowledgment
- Foreword
- A Thought Leader's Perspective: Power and Responsibility
- Introduction
- What makes an AI system an Agent?
Part One: Foundational Patterns¶
- Chapter 1: Prompt Chaining
- Chapter 2: Routing
- Chapter 3: Parallelization
- Chapter 4: Reflection
- Chapter 5: Tool Use (Function Calling)
- Chapter 6: Planning
- Chapter 7: Multi-Agent Collaboration
Part Two: Advanced Systems¶
- Chapter 8: Memory Management
- Chapter 9: Learning and Adaptation
- Chapter 10: Model Context Protocol (MCP)
- Chapter 11: Goal Setting and Monitoring
Part Three: Production Concerns¶
- Chapter 12: Exception Handling and Recovery
- Chapter 13: Human in the Loop
- Chapter 14: Knowledge Retrieval (RAG)
Part Four: Multi-Agent Architectures¶
- Chapter 15: Inter-Agent Communication (A2A)
- Chapter 16: Resource-Aware Optimization
- Chapter 17: Reasoning Techniques
- Chapter 18: Guardrails and Safety Patterns
- Chapter 19: Evaluation and Monitoring
- Chapter 20: Prioritization
- Chapter 21: Exploration and Discovery
Appendix¶
- Appendix A: Advanced Prompting Techniques
- Appendix B: AI Agentic Interactions: From GUI to Real-World Environment
- Appendix C: Quick Overview of Agentic Frameworks
- Appendix D: Building an Agent with AgentSpace (online only)
- Appendix E - AI Agents on the CLI
- Appendix F: Under the Hood: An Inside Look at the Agent's Reasoning Engines
- Appendix G: Coding Agents
License¶
This repository is licensed under the MIT License.
本仓库采用 MIT 许可证 授权。
Agentic Design Patterns
《Agentic Design Patterns》(智能体设计模式)