refactor: 将 InteractiveBasicType 中的属性设为可选,简化数据结构

This commit is contained in:
sd0ric4
2025-03-27 14:03:04 +08:00
parent 70524804b1
commit bafea1c3f2
3 changed files with 5 additions and 11 deletions

View File

@@ -30,9 +30,9 @@ export type UserInputFormItemType = {
}; };
type InteractiveBasicType = { type InteractiveBasicType = {
entryNodeIds: string[]; entryNodeIds?: string[];
memoryEdges: RuntimeEdgeItemType[]; memoryEdges?: RuntimeEdgeItemType[];
nodeOutputs: NodeOutputItemType[]; nodeOutputs?: NodeOutputItemType[];
toolParams?: { toolParams?: {
entryNodeIds: string[]; // 记录工具中,交互节点的 Id而不是起始工作流的入口 entryNodeIds: string[]; // 记录工具中,交互节点的 Id而不是起始工作流的入口

View File

@@ -42,10 +42,7 @@ export const dispatchFormInput = async (props: Props): Promise<FormInputResponse
params: { params: {
description, description,
inputForm: userInputForms inputForm: userInputForms
}, }
entryNodeIds: [],
memoryEdges: [],
nodeOutputs: []
} }
}; };
} }

View File

@@ -40,10 +40,7 @@ export const dispatchUserSelect = async (props: Props): Promise<UserSelectRespon
params: { params: {
description, description,
userSelectOptions userSelectOptions
}, }
entryNodeIds: [],
memoryEdges: [],
nodeOutputs: []
} }
}; };
} }