From e4298c4894318a30af2eec40f3a8095c482c840c Mon Sep 17 00:00:00 2001 From: sd0ric4 <1286518974@qq.com> Date: Thu, 27 Mar 2025 14:14:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/system/interactive/type.d.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/global/core/workflow/template/system/interactive/type.d.ts b/packages/global/core/workflow/template/system/interactive/type.d.ts index 2cebed769..e48b29ccb 100644 --- a/packages/global/core/workflow/template/system/interactive/type.d.ts +++ b/packages/global/core/workflow/template/system/interactive/type.d.ts @@ -30,9 +30,9 @@ export type UserInputFormItemType = { }; type InteractiveBasicType = { - entryNodeIds?: string[]; - memoryEdges?: RuntimeEdgeItemType[]; - nodeOutputs?: NodeOutputItemType[]; + entryNodeIds: string[]; + memoryEdges: RuntimeEdgeItemType[]; + nodeOutputs: NodeOutputItemType[]; toolParams?: { entryNodeIds: string[]; // 记录工具中,交互节点的 Id,而不是起始工作流的入口 @@ -41,7 +41,12 @@ type InteractiveBasicType = { }; }; -type UserSelectInteractive = InteractiveBasicType & { +type InteractiveNodeType = { + entryNodeIds?: string[]; + memoryEdges?: RuntimeEdgeItemType[]; + nodeOutputs?: NodeOutputItemType[]; +}; +type UserSelectInteractive = InteractiveNodeType & { type: 'userSelect'; params: { description: string; @@ -50,7 +55,7 @@ type UserSelectInteractive = InteractiveBasicType & { }; }; -type UserInputInteractive = InteractiveBasicType & { +type UserInputInteractive = InteractiveNodeType & { type: 'userInput'; params: { description: string;