# 第八章 Agent 架构设计

AI Agent 是能够自主完成复杂任务的系统。本章介绍如何基于 Claude 构建 Agent。

***

## 什么是 AI Agent？

Agent = LLM + 工具 + 记忆 + 规划

一个 Agent 能够：

* 理解复杂任务
* 制定执行计划
* 调用工具完成子任务
* 根据结果调整策略

***

## 本章学习目标

* [ ] 理解 Agent 的核心概念
* [ ] 掌握常见设计模式
* [ ] 实现上下文和记忆管理
* [ ] 了解多 Agent 协作

***

## 章节导航

| 章节                                                                                                       | 主题                     |
| -------------------------------------------------------------------------------------------------------- | ---------------------- |
| [8.1](https://yeasy.gitbook.io/claude_guide/di-san-bu-fen-jin-jie-pian/08_agent/8.1_intro)               | 什么是 AI Agent           |
| [8.2](https://yeasy.gitbook.io/claude_guide/di-san-bu-fen-jin-jie-pian/08_agent/8.2_patterns)            | Agent 设计模式             |
| [8.3](https://yeasy.gitbook.io/claude_guide/di-san-bu-fen-jin-jie-pian/08_agent/8.3_memory)              | 上下文管理与记忆               |
| [8.4](https://yeasy.gitbook.io/claude_guide/di-san-bu-fen-jin-jie-pian/08_agent/8.4_extended_thinking)   | Extended Thinking 扩展思考 |
| [8.5](https://yeasy.gitbook.io/claude_guide/di-san-bu-fen-jin-jie-pian/08_agent/8.5_collaboration)       | 多 Agent 协作             |
| [8.6](https://yeasy.gitbook.io/claude_guide/di-san-bu-fen-jin-jie-pian/08_agent/8.6_agent_sdk_deep_dive) | Agent SDK 深度指南         |
| [8.7](https://yeasy.gitbook.io/claude_guide/di-san-bu-fen-jin-jie-pian/08_agent/8.7_managed_agents)      | Managed Agents 全托管平台   |

***

> 💡 **延伸阅读**：如需深入了解智能体架构与多智能体协作，请参阅[《智能体 AI 权威指南》](https://yeasy.gitbook.io/agentic_ai_guide)。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yeasy.gitbook.io/claude_guide/di-san-bu-fen-jin-jie-pian/08_agent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
