Glean 拾遗
日刊 /2026-08-03 / Agent 架构选型指南:七种模式的取舍与判据

Agent 架构选型指南:七种模式的取舍与判据

原文 www.kimi.com 收录 2026-08-03 06:00 阅读 15 min
AI 解读

这是一篇面向选型决策的 Agent 架构入门指南,用组件分解、模式对比表和带图示例说明单 Agent、顺序/并行、路由、层级、网络/群、生成-评判等常见架构的适用条件与代价。文中最有价值的是两条可操作判据:交接是否改变所需专业或权限集合,以及并行分支是否真正独立。同时列出生产化要点(可观测性、显式终止、共享状态冲突规则、工具失败语义)和常见误用(过早引入多 Agent、并行化有依赖的任务)。适合想为具体工作流设计最小充分架构的工程师。文末为 Kimi Agent 及其 Swarm 能力的产品介绍,属厂商推广部分,核心内容本身相对克制。

原文 15 分钟
原文 www.kimi.com ↗
§ 1

A language model can answer a question in one pass, while an AI agent can continue working toward a goal. It decides what to do next and uses available tools. The agent then adjusts its approach after seeing the result. Agentic AI architectures provide the structure that makes this behavior possible. This guide explains their core components and common patterns through practical examples. It also shows how to choose an architecture without adding unnecessary complexity.

语言模型可以一次性回答一个问题,而 AI 智能体能够继续朝着目标推进。智能体决定下一步做什么,并使用可用的工具;看到结果后,再调整自己的策略。智能体 AI 架构(agentic AI architectures)正是让这种行为成为可能的结构。本文将通过实际示例讲解其核心组件和常见模式,并说明如何选择架构,同时避免引入不必要的复杂度。

§ 2

Agentic AI architectures are system designs that enable one or more AI agents to pursue a goal through repeated reasoning and action. The architecture connects the model with tools and working context. It also defines how the agent plans its next step and uses new results to continue the task. The model provides the reasoning capability, while the architecture turns that capability into an operating system for goal-based work. It determines how information moves through the workflow and how an agent produces a final result.

智能体 AI 架构是一种系统设计,让一个或多个 AI 智能体能够通过反复推理与行动来追求目标。架构把模型与工具、工作上下文连接起来,并定义智能体如何规划下一步、如何利用新结果继续推进任务。模型提供推理能力,而架构则把这种能力转变成一套面向目标工作的操作系统。它决定了信息在工作流中如何流动,以及智能体最终如何产出结果。

§ 3

Most AI agent architectures use the same functional building blocks. Their implementation can vary, but each block answers a distinct design question. It defines how the system decides and acts. Other blocks determine what it remembers. They also coordinate work and keep execution under control.

大多数 AI 智能体架构都使用相同的功能积木。具体实现方式可以千差万别,但每一块积木都要回答一个独特的设计问题:有的决定系统如何决策和行动,有的决定智能体记什么,还有的负责协调工作、让执行始终处于掌控之中。

§ 4

AI agent architecture workflow diagram: from the user goal through the agent loop into reasoning and planning, then through tools and the action layer to observations or human review, with memory and context feeding back, plus guardrails and oversight

AI 智能体架构工作流示意图:从用户目标进入智能体循环,经过推理与规划,再通过工具和动作层,到达观察或人工审查;记忆与上下文回流,并配有护栏与监督

§ 5

The reasoning layer turns a goal into a next action. Larger tasks need decomposition into steps with clear outputs. For example, “research the market” is too broad. “Identify buyer groups from approved sources” is easier to execute and evaluate. Plans should remain provisional because tool failures or new evidence may require replanning.

推理层负责把目标转化为下一步行动。更大的任务需要拆解成带有明确产出的步骤。例如,“研究市场”太过宽泛,“从已批准的信源中识别买家群体”更容易执行和评估。计划应当保持临时性,因为工具失败或出现新证据都可能要求重新规划。

§ 6

Tools let an agent inspect or affect systems outside the model. Search and database queries are common examples. Business APIs can extend the action layer further. Each tool needs a precise contract and validated inputs. Failures must be explicit. A timeout cannot look like an empty result, and a partial write cannot look like success.

工具让智能体能够检查或影响模型之外的系统,搜索和数据库查询是常见例子。业务 API 可以进一步扩展动作层。每个工具都需要精确的契约和经过校验的输入,失败必须是显式的:超时不能看起来像空结果,部分写入不能看起来像成功。

§ 7

Context supports the current decision, while memory persists useful information. Knowledge sources provide facts on demand. Working memory may hold the active plan. Longer-lived memory can retain approved preferences. Retrieval should fetch relevant documents without placing an entire corpus in the prompt. Every stored item needs access and provenance rules.

上下文为当前决策提供支撑,而记忆则持久保留有用信息。知识源按需提供事实。工作记忆可以保存当前计划,长期记忆可以留存经过批准的用户偏好。检索应当只拉取相关文档,而不是把整个语料库都塞进提示词。每个有存储的内容都需要访问规则和来源规则。

§ 8

Orchestration routes work and manages shared state. In a single-agent design, it may be a small execution loop. A multi-agent design also assigns roles and resolves dependencies. Each agent needs defined inputs with expected outputs. The orchestrator can cap iterations and concurrency to prevent uncontrolled expansion.

编排负责路由任务并管理共享状态。在单智能体设计中,它可能只是一个小型执行循环;在多智能体设计中,它还要分配角色、解决依赖关系。每个智能体都需要明确的输入和预期的输出,编排者可以限制迭代次数和并发度,防止任务失控扩张。

§ 9

Guardrails define what an agent is allowed to do. They can block unsafe tool calls or restrict access to sensitive systems. Observability keeps a record of the agent’s decisions and tool results, which makes failures easier to investigate. Human oversight adds an approval step before high-impact actions such as sending a payment or changing a production record. Together, these controls keep automated work visible and within agreed limits.

护栏定义了智能体被允许做什么,可以拦截不安全的工具调用,或限制对敏感系统的访问。可观测性记录智能体的决策和工具结果,让失败更易于排查。人工监督则在高影响动作执行前增加一道审批,比如发送付款或更改生产记录。这些控制手段加在一起,让自动化工作保持可见,并始终处于商定边界之内。

§ 10

Architecture patterns describe how control moves through a system. These agentic AI architecture examples pair each pattern with a fitting use case. The diagrams emphasize agent relationships rather than infrastructure details.

A single-agent architecture has one decision loop and one task owner. It is often the right starting point because state stays local and execution is easy to trace.

架构模式描述的是控制如何在系统中流动。下面的智能体 AI 架构示例将每个模式与一个合适的用例配对。图示侧重智能体之间的关系,而非基础设施细节。

单智能体架构只有一个决策循环和一个任务所有者。它往往是正确的起步选择,因为状态保持本地化,执行过程易于追踪。

§ 11

Single-agent architecture diagram: a goal flows into one agent that calls Tool A and Tool B, then produces the result

单智能体架构示意图:目标流入一个智能体,该智能体调用工具 A 和工具 B,然后产出结果

§ 12

A sequential architecture passes work from one specialized agent to the next. For example, a publishing workflow can send source material to a research agent. Its findings move to a writing agent, then a review agent checks the completed draft.

This structure clarifies ownership, but weak early output can constrain every later stage. Each handoff needs validation.

A parallel architecture sends independent subproblems to several agents. A due-diligence task could separate product evidence from market evidence. A synthesis step combines the results. A company evaluating a new market can assign separate agents to customer demand and competitor activity. Another agent can examine local regulations. A synthesis agent combines the findings after all branches finish.

Parallel work can reduce elapsed time and improve coverage. It also creates duplication and conflict that synthesis must resolve.

顺序架构把工作从一个专职智能体传给下一个。例如,一个发布流程可以把素材交给研究智能体,研究结果再流转给写作智能体,随后由审查智能体检查完成的草稿。

这种结构让职责清晰,但早期输出若薄弱,会制约后续每个阶段,因此每次交接都需要校验。

并行架构则把相互独立的子问题分发给多个智能体。例如,尽职调查任务可以把产品证据与市场证据分开处理,再由一个汇总步骤合并结果。一家评估新市场的公司,可以让不同智能体分别负责客户需求、竞争对手动态和本地法规,最后汇总智能体在所有分支完成后整合发现。

并行能够缩短耗时、提升覆盖度,但也会产生重复与冲突,需要由汇总环节来解决。

§ 13

Sequential multi-agent architecture diagram: work passes from the goal through a research agent, a draft agent, and a review agent to the final output

顺序多智能体架构示意图:工作从目标出发,依次经过研究智能体、草稿智能体和审查智能体,最终输出成果

§ 14

Parallel multi-agent architecture diagram: an orchestrator assigns product, market, and risk agents independent subproblems, then a synthesis step combines their results

并行多智能体架构示意图:编排者为产品、市场和风险智能体分配独立子问题,然后由汇总步骤合并结果

§ 15

A router sends each request to the agent with the right tools. For example, a customer service router can direct an invoice question to a billing agent. Login problems go to an account-access agent, while product errors go to technical support.

Uncertain classifications need a fallback. Low-confidence requests can go to a general agent or a person.

A hierarchical architecture places a manager above workers. The manager decomposes the goal and checks worker results.

This works for changing dependencies, but the manager can become a bottleneck. Structured worker summaries reduce its context load.

路由架构把每个请求发送到具备相应工具的智能体。例如,客服路由器可以把发票问题转给账务智能体,登录问题转给账户访问智能体,产品故障则转给技术支持。

不确定的分类需要兜底机制,低置信度的请求可以交给通用智能体或人工处理。

层级架构则在工人之上设立一个管理者:管理者负责拆解目标,并检查工人的结果。

这种模式适合依赖关系不断变化的任务,但管理者可能成为瓶颈。使用结构化的工人摘要可以减轻其上下文负担。

§ 16

Router architecture diagram: a router sends billing, access, and technical requests to the matching specialized agent

路由架构示意图:路由器将账务、访问和技术类请求发送给对应的专职智能体

§ 17

Hierarchical architecture diagram: a manager agent decomposes the goal, coordinates Worker 1 and Worker 2, and integrates their results

层级架构示意图:管理者智能体拆解目标,协调工人 1 和工人 2,并整合它们的结果

§ 18

A network or swarm architecture allows several specialists to share findings while the task develops. For example, an incident-response system can connect agents that inspect application logs and recent deployments. Other agents examine security alerts or service dependencies. They update shared state until the system identifies a likely cause and proposes a response.

Network designs need message schemas and conflict rules. They also need strong termination controls. A swarm should address genuine scale rather than serve as a default label for multi-agent work.

网络或群体架构允许多个专家在任务推进过程中共享发现。例如,事件响应系统可以把检查应用日志和近期部署的智能体连在一起,另一些智能体查看安全告警或服务依赖。它们不断更新共享状态,直到系统识别出可能的原因并提出应对方案。

网络设计需要消息模式和冲突规则,也必须有强力的终止控制。群体智能应该用于解决真正的规模化问题,而不是给多智能体工作随便贴上的默认标签。

§ 19

Network or swarm architecture diagram: agents A, B, C, and D exchange findings around a shared state

网络或群体架构示意图:智能体 A、B、C、D 围绕共享状态交换发现

§ 20

A generator–critic pattern separates creation from evaluation. The generator produces a candidate. The critic checks defined criteria and requests a revision or accepts the result.

This pattern suits outputs with a clear rubric. For example, a critic can check a report for source support and required sections. Hybrid architectures combine patterns when needed. Each addition should solve an observed problem, not merely make the diagram look sophisticated.

生成器–评论家模式把“创作”和“评估”分开:生成器产出候选结果,评论家对照既定标准检查,要求修改或接受结果。

这种模式非常适合有明确评分标准的输出,例如评论家可以检查一份报告是否引用了来源、是否包含规定章节。混合架构则是在需要时组合多种模式。每增加一种模式,都应该解决一个实际观察到的问题,而不是为了让架构图看起来更复杂。

§ 21

Generator–critic architecture diagram: the generator produces a candidate, the critic evaluates it, and a failed check loops back as a revise request until the output passes

生成器–评论家架构示意图:生成器产出候选结果,评论家进行评估,未通过的检查会以修改请求形式循环回去,直到输出通过

§ 22

The right agent AI architecture follows the task, not a trend. Start with the workflow’s dependency structure and risk. Then estimate whether specialization or parallel execution creates enough value to justify more coordination.

Map the task as a dependency graph. If one actor can complete each step using local context, use a single agent. If each stage depends on a validated earlier output, consider sequential agents. If several branches are independent, parallel agents may help.

Use a router when requests fall into stable categories with distinct tools. Use a hierarchy when the system must create and supervise a changing plan. Reserve network or swarm designs for broad work where decentralized exploration has a clear benefit.

The key test is whether a handoff changes the required expertise or permission set. If it does not, another agent may only create overhead.

Pattern Best fit Main advantage Main trade-off Typical trigger
Single agent Bounded workflow with shared context Simple state and tracing Context can become overloaded One owner can complete the task
Sequential agents Clear stage dependencies Specialized handoffs Errors can cascade Each stage needs a distinct role
Parallel agents Independent work branches Lower elapsed time Synthesis and duplication cost Branches do not block each other
Router Stable request categories Narrow tools and prompts Misrouting risk Categories need different permissions
Hierarchical Dynamic plan with supervised workers Central task control Manager bottleneck Dependencies change during execution
Network or swarm Broad exploration at scale Flexible coverage Hard coordination and termination Many useful branches can run together
Generator–critic Output with testable criteria Focused quality control Revision loops add cost A clear evaluation rubric exists

正确的智能体 AI 架构跟着任务走,而不是跟着潮流走。先从工作流的依赖结构和风险入手,再评估专业化分工或并行执行能否带来足够价值,从而值得增加协调成本。

把任务映射为一张依赖图:如果一个执行者能依靠本地上下文完成每一步,就用单智能体;如果每个阶段都依赖经校验的上一阶段输出,考虑顺序智能体;如果有多个相互独立的分支,并行智能体可能有帮助。

当请求属于稳定类别、且各类别需要不同工具时,使用路由;当系统必须创建并监督一个不断变化的计划时,使用层级架构;把网络或群体设计留给那些分布式探索有明确优势的宽泛工作。

关键的判断是:一次交接是否改变了所需的专业能力或权限集。如果没有,再多一个智能体可能只是制造开销。

模式 最佳适用场景 主要优势 主要权衡 典型触发条件
单智能体 有共享上下文的受限工作流 状态简单、易于追踪 上下文可能过载 一个所有者即可完成
顺序智能体 清晰的阶段依赖 专业化交接 错误会级联 每个阶段需要不同角色
并行智能体 相互独立的分支 缩短耗时 汇总与重复成本 分支互不阻塞
路由 稳定的请求类别 工具和提示词更聚焦 误路由风险 不同类别需要不同权限
层级 动态计划与受监督的工人 中央任务控制 管理者瓶颈 依赖在执行中变化
网络或群体 大规模广泛探索 覆盖灵活 协调与终止困难 大量有用分支可同时运行
生成器–评论家 有可测试标准的输出 聚焦的质量控制 修订循环增加成本 存在明确评估标准
§ 23

A production system needs a few controls that prototypes can often ignore.

Expect tools to fail and make retries safe. Trace each run so operators can see the active plan and tool results. Every workflow also needs a clear stopping rule, such as reaching the success criteria or hitting a fixed budget.

生产系统需要一些原型常常忽略的控制手段。

要预期工具会失败,并让重试变得安全;为每次运行留痕,让运维者能看到当前计划和工具结果;每个工作流还要有清晰的停止规则,例如达成成功标准或达到固定预算。

§ 24

Give each agent only the permissions required for its role. Validate tool arguments outside the prompt, and treat retrieved content as untrusted data. Require human approval before an agent takes a sensitive or irreversible action.

只为每个智能体授予其角色所需的权限;在提示词之外校验工具参数,并把检索到的内容视为不可信数据;在智能体执行敏感或不可逆操作前,要求人工审批。

§ 25

Keep only relevant information in the active context. Store long-term memory deliberately, with clear access rules. In multi-agent systems, use version checks or an event log so agents do not silently overwrite one another’s work.

只把相关信息保留在活动上下文中;长期记忆要刻意存储,并配以清晰的访问规则;在多智能体系统中,使用版本检查或事件日志,避免智能体之间静默覆盖彼此的工作。

§ 26

Evaluate the complete workflow on representative tasks. Track successful outcomes rather than model responses alone. Compare that quality with total latency and cost to confirm that each added agent provides measurable value.

在代表性任务上评估完整工作流;追踪成功的成果,而不是只看模型响应;把质量与总延迟、总成本放在一起比较,确认每增加一个智能体都带来了可衡量的价值。

§ 27

Adding multiple agents before proving that one agent is insufficient.

Giving agents more context or tool access than they need.

Using parallel execution for tasks with strict dependencies.

Leaving shared state without ownership or conflict rules.

Omitting clear success criteria and stopping conditions.

在证明单个智能体不够用之前,就引入多个智能体;

给智能体超出需要的上下文或工具权限;

对存在严格依赖的任务使用并行执行;

让共享状态缺乏归属者或冲突规则;

省略清晰的成功标准和停止条件。

§ 28

A custom architecture offers detailed control, but it also requires orchestration and evaluation work. Kimi Agent provides a general agent experience for users who want to complete multi-step knowledge-work tasks without implementing that stack themselves.

Kimi Agent can interpret a goal and plan the required work. It then carries out the task within the product experience. This provides a direct way to use agentic workflows without first designing a planner or tool loop.

Kimi Agent is equipped with different features. For example, it can generate websites and create PPT presentations. These capabilities help users turn a broad request into a structured deliverable through one product experience.

Kimi supports multimodal reasoning and file-based workflows. It can work with PDF and Word documents. Excel and PPT files are supported as well. Kimi also handles images and TXT files, while video provides another input format. This allows Kimi Agent to process source material that extends beyond plain chat text.

Kimi Agent Swarm provides a separate multi-agent capability for tasks that benefit from broad parallel execution. It can coordinate many specialized work units for large-scale search or batch tasks. Long-form work with independent research paths can also benefit from this approach.

自定义架构能带来精细的控制,但同时也要求你投入编排和评估工作。对于想完成多步知识型任务、却不想自己搭建那一整套技术栈的用户,Kimi Agent 提供了一种通用的智能体体验。

Kimi Agent 能够解读目标并规划所需工作,然后在产品体验内执行任务。这为使用智能体工作流提供了一条直接路径,无需先设计规划器或工具循环。

Kimi Agent 集成了多种能力,例如它可以生成网站、创建 PPT 演示文稿。这些能力帮助用户通过同一个产品体验,把宽泛的需求变成结构化的交付物。

Kimi 支持多模态推理和基于文件的工作流:可以处理 PDF、Word 文档,也支持 Excel 和 PPT 文件;还能处理图片和 TXT 文件,视频则提供了另一种输入格式。这让 Kimi Agent 能够处理远超纯聊天文本的素材。

Kimi Agent Swarm 提供独立的多智能体能力,适用于能从广泛并行执行中获益的任务。它可以协调大量专业化工作单元,应对大规模搜索或批处理任务;拥有独立研究路径的长篇工作也能从中受益。

§ 29

Agentic AI architectures turn model responses into controlled workflows. The strongest design is usually the simplest one that can meet the task’s dependency and risk requirements. Start with a single agent and define its tools. Set explicit stop conditions, then measure real failures. Add routing or multi-agent coordination only when it solves a specific bottleneck. If you want agentic task execution without building the orchestration layer, Kimi Agent provides a practical place to start.

智能体 AI 架构把模型响应变成受控的工作流。最强的设计,往往是能够满足任务依赖与风险需求的最简单设计。从一个智能体开始,定义它的工具;设定明确的停止条件,再度量真实失败。只有当路由或多智能体协调能解决某个具体瓶颈时,才去添加它。如果你想获得智能体式任务执行、又不想构建编排层,Kimi Agent 是一个务实的起点。

打开原文 ↗