跳转至

Agentic Design Patterns

Agentic Design Patterns CN Cover

《Agentic Design Patterns》图书封面

Authorship and Credit

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 种核心智能体模式:

  1. Foundational patterns (prompt chaining, routing, tool use)
  2. Advanced systems (memory, learning, monitoring)
  3. Production concerns (error handling, safety, evaluation)
  4. Multi-agent architectures
  1. 基础模式(提示链、路由、工具使用)
  2. 高级系统(记忆、学习、监控)
  3. 生产实践问题(错误处理、安全、评估)
  4. 多智能体架构

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

Part One: Foundational Patterns

Part Two: Advanced Systems

Part Three: Production Concerns

Part Four: Multi-Agent Architectures

Appendix

License

This repository is licensed under the MIT License.

本仓库采用 MIT 许可证 授权。

Agentic Design Patterns

《Agentic Design Patterns》(智能体设计模式)