From 948d6e644b28171fa6976430654e50c4431f4807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=9D=E5=B0=98?= <237809796@qq.com> Date: Tue, 30 Jun 2026 22:01:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84:=20=E5=88=A0=E9=99=A4=20coor?= =?UTF-8?q?dinator.rs=20=E9=9B=B6=E8=B0=83=E7=94=A8=E7=A9=BA=E5=A3=B3?= =?UTF-8?q?=E5=8D=A0=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除 crates/df-ai/src/coordinator.rs(零调用的 deprecated 空壳) - lib.rs 移除 pub mod coordinator 声明 - 消除编译 deprecated 警告 - 多 Agent 协作未来从 planner.rs 的 Plan DAG 执行器重新实现 --- crates/df-ai/src/coordinator.rs | 31 ------------------------------- crates/df-ai/src/lib.rs | 3 ++- 2 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 crates/df-ai/src/coordinator.rs diff --git a/crates/df-ai/src/coordinator.rs b/crates/df-ai/src/coordinator.rs deleted file mode 100644 index e6e255f..0000000 --- a/crates/df-ai/src/coordinator.rs +++ /dev/null @@ -1,31 +0,0 @@ -//! Agent 协调器 — 管理多 Agent 协作 -//! -//! ⚠ B 路线占位:当前单链 ReAct 够用,多 Agent 协作待 B 路线立项。有意保留空壳,勿删。 - -/// Agent 协调器 -/// -/// TODO: 实现多 Agent 协作逻辑 -#[deprecated(note = "B 路线占位,勿用于生产")] -pub struct AgentCoordinator; - -impl AgentCoordinator { - /// 创建协调器 - pub fn new() -> Self { - Self - } - - /// 启动 Agent 协作任务 - /// - /// TODO: 实现 Agent 间消息传递和任务分配 - pub async fn run(&self, _task: &str) -> anyhow::Result { - tracing::info!("AgentCoordinator: 协调任务开始"); - // TODO: 实现多 Agent 协作 - Ok("TODO: Agent 协作结果".to_string()) - } -} - -impl Default for AgentCoordinator { - fn default() -> Self { - Self::new() - } -} diff --git a/crates/df-ai/src/lib.rs b/crates/df-ai/src/lib.rs index b3610f9..12fe2ef 100644 --- a/crates/df-ai/src/lib.rs +++ b/crates/df-ai/src/lib.rs @@ -5,7 +5,8 @@ pub mod anthropic_compat; pub mod anthropic_helpers; pub mod context; pub mod context_helpers; -pub mod coordinator; +// coordinator 模块已删除(B 路线空壳占位,零调用)。 +// 多 Agent 协作未来从 planner.rs 的 Plan DAG 执行器重新实现。 // 会话意图识别层(纯函数,不接入 agentic loop)。依据 docs/02-架构设计/构想审查/ // 意图识别层论证-2026-06-19.md。提供 recognize / tool_subset_for / suggested_model_tier。 // 待 Phase B+C 完成 + 模型模态管理落地后再接入 agentic loop。