Agentic Design Patterns¶
《Agentic Design Patterns》图书封面
Authorship and Credit¶
- Authors: Antonio Gulli
- Compiled by: ningg@GitHub
- 作者: Antonio Gulli
- 翻译: ningg@GitHub
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》(智能体设计模式)