跳到主要内容Skip to main content

提示链Prompt Chaining

Prompt Chaining

  • 智能体Agents
  • 第三段 · 用深Stage 3 · Going Deeper
  • 引用核验 2026-11-09refs checked 2026-11-09
解决什么问题What problem it solves

把一件事拆成固定的几步,每步的输出喂给下一步。Split a job into fixed steps, feeding each output into the next.

这是什么What it is

Anthropic 的定义:把任务分解成一系列步骤,上一步的输出作为下一步的输入。

官方指出它以延迟换准确性:准确性比延迟重要时更适用。

Anthropic's definition: decompose a task into a sequence of steps, passing each output to the next.

Each step is testable on its own; the cost is a longer chain and more latency.

为什么需要知道Why it matters

比「一句话让模型做完所有事」更可控。很多 Agent 其实就是提示链。More controllable than asking for everything at once. Many "agents" are really chains.

别名Chinese aliases

链式提示 · 步骤链

出处Sources
  • Anthropic《Building effective agents》Anthropic, Building effective agents ↗
用这个术语做任务Use this term in a task

别停在定义:去任务手册看按什么顺序做、验收什么;或者按你手头的任务,筛 3 个工具候选。Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

任务手册 →Task handbooks → · 按任务筛 3 个候选 →Filter three candidates →