跳转到内容

Decision Guide:Workflow vs Agent(工作流 vs 智能体)

知识库位置:FDE Knowledge Base/03 Engineering/Decision Guides/Workflow-vs-Agent.md

这是 AI 系统设计中最容易被过度复杂化的问题之一。

路径预先定义。

A
↓
B
↓
C
↓
D

适合:

  • Invoice processing(发票处理)
  • Approval workflow(审批流)
  • Fixed document pipeline(固定文档流水线)
  • Known business process(已知业务流程)

下一步需要动态决定。

Goal(目标)
↓
Observe(观测)
↓
Decide(决策)
↓
Act(行动)
↓
Observe(观测)

适合:

  • 多工具动态选择
  • 非固定路径
  • 信息探索
  • Open-ended task execution(开放式任务执行)

Prefer Workflow When(倾向工作流的场景)

Section titled “Prefer Workflow When(倾向工作流的场景)”

流程:

  • 已知
  • 稳定
  • 高风险
  • 需要严格审计
  • 需要 Predictability(可预测性)

Prefer Agent When(倾向智能体的场景)

Section titled “Prefer Agent When(倾向智能体的场景)”

任务:

  • 路径不固定
  • 工具选择依赖 Context(上下文)
  • 用户目标开放
  • 需要多步动态推理

常见最佳实践:

Workflow(工作流)
↓
Agent Step(智能体步骤)
↓
Workflow(工作流)

也就是说:

在可控 Workflow 中局部使用 Agent。

优先:

Deterministic where possible(能确定则确定)
Agentic where necessary(必要时才智能体化)