From 95f4752d9e7d8facce0d00fa5ac793730e15b973 Mon Sep 17 00:00:00 2001 From: Blizzard Date: Tue, 23 Jun 2026 14:29:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(desktop):=20Agent=20=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=8A=A0=E3=80=8C=E8=87=AA=E4=B8=BB=E5=B7=A5=E5=85=B7=20(ReAct?= =?UTF-8?q?)=E3=80=8D=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 前端补上 Phase B 的 UI 接缝:agent 节点 nodeCatalog 增 autonomous checkbox (默认 false)。勾选 → exportDsl 带 config.autonomous=true → dispatcher 走 ReAct 自主调工具。此前能力在后端但画布点不到。 Co-Authored-By: Claude Opus 4.8 (1M context) --- sundynix-desktop/frontend/src/studio/nodeCatalog.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sundynix-desktop/frontend/src/studio/nodeCatalog.ts b/sundynix-desktop/frontend/src/studio/nodeCatalog.ts index f28edac..800a988 100644 --- a/sundynix-desktop/frontend/src/studio/nodeCatalog.ts +++ b/sundynix-desktop/frontend/src/studio/nodeCatalog.ts @@ -58,8 +58,9 @@ export const NODE_KINDS: Record = { { key: "model", label: "模型", type: "select", options: ["占位 Pool", "ollama:qwen", "vllm:custom"], required: true }, { key: "system", label: "系统提示词", type: "textarea", placeholder: "你是…" }, { key: "temperature", label: "温度", type: "number" }, + { key: "autonomous", label: "自主工具 (ReAct)", type: "checkbox" }, ], - defaults: { model: "占位 Pool", system: "", temperature: 0.7 }, + defaults: { model: "占位 Pool", system: "", temperature: 0.7, autonomous: false }, }, tool: { kind: "tool",