refactor: 将 InteractiveBasicType 中的属性设为可选,简化数据结构
This commit is contained in:
@@ -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,而不是起始工作流的入口
|
||||
|
||||
@@ -42,10 +42,7 @@ export const dispatchFormInput = async (props: Props): Promise<FormInputResponse
|
||||
params: {
|
||||
description,
|
||||
inputForm: userInputForms
|
||||
},
|
||||
entryNodeIds: [],
|
||||
memoryEdges: [],
|
||||
nodeOutputs: []
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -40,10 +40,7 @@ export const dispatchUserSelect = async (props: Props): Promise<UserSelectRespon
|
||||
params: {
|
||||
description,
|
||||
userSelectOptions
|
||||
},
|
||||
entryNodeIds: [],
|
||||
memoryEdges: [],
|
||||
nodeOutputs: []
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user