From 3aa64f1f0e5ffe7ee45a8ca3115852e5a65d382d Mon Sep 17 00:00:00 2001 From: cfdaily Date: Thu, 4 Jun 2026 20:02:48 +0800 Subject: [PATCH] =?UTF-8?q?#12=20D3=E4=BF=AE=E6=AD=A3:=20Pipeline=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B@mention=E5=8F=AA=E5=81=9A=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E4=B8=8D=E6=94=B9=E5=8F=98=E6=89=A7=E8=A1=8C=E8=80=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/design/12-pipeline-design.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/design/12-pipeline-design.md b/docs/design/12-pipeline-design.md index 4b90566..7791a45 100644 --- a/docs/design/12-pipeline-design.md +++ b/docs/design/12-pipeline-design.md @@ -25,10 +25,10 @@ - Agent 必须走 Pipeline 定义的所有步骤,不能跳过 - 没有"可偏离"的中间地带 -**D3: @mention 优先级高于 Pipeline 默认路由** -- Pipeline 定义了默认执行者(如 coding → zhangfei-dev) -- 但 description 里的 @mention 优先级更高 -- 指定 Pipeline + @zhaoyun-data → 按 coding Pipeline 的流程执行,但执行者是 zhaoyun-data +**D3: @mention 在 Pipeline 模式下只做通知,不改变执行者** +- Pipeline 模式(强工作流):执行者由 Pipeline 决定(coding → zhangfei-dev),@mention 只是在黑板 comment 通知该 Agent,不改变执行者 +- 自由模式:@mention 决定执行者(和现有逻辑一致) +- 理由:强工作流意味着流程和角色都是确定的,让数据专家走 coding 流程不合理 **D4: task_type 默认值改为 None** - API 层 `task_type=body.get("task_type", None)` 而非默认 "coding" @@ -97,7 +97,7 @@ Mode B: Agent 声明式交接 路径3: 生命周期流转 路径4: 有 assignee → 直接给 路径5(新增): task_type 有值 → 查 Pipeline → 用 Pipeline 的 default_agent - - 如果 description 有 @mention → @mention 覆盖 default_agent + - @mention 不覆盖执行者(Pipeline 模式下 @mention 只做通知) - mode = "deterministic" 模糊场景: delegate 庞统 → 广播 ```