refactor: 优化类型定义
This commit is contained in:
@@ -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,而不是起始工作流的入口
|
||||||
@@ -41,7 +41,12 @@ type InteractiveBasicType = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
type UserSelectInteractive = InteractiveBasicType & {
|
type InteractiveNodeType = {
|
||||||
|
entryNodeIds?: string[];
|
||||||
|
memoryEdges?: RuntimeEdgeItemType[];
|
||||||
|
nodeOutputs?: NodeOutputItemType[];
|
||||||
|
};
|
||||||
|
type UserSelectInteractive = InteractiveNodeType & {
|
||||||
type: 'userSelect';
|
type: 'userSelect';
|
||||||
params: {
|
params: {
|
||||||
description: string;
|
description: string;
|
||||||
@@ -50,7 +55,7 @@ type UserSelectInteractive = InteractiveBasicType & {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
type UserInputInteractive = InteractiveBasicType & {
|
type UserInputInteractive = InteractiveNodeType & {
|
||||||
type: 'userInput';
|
type: 'userInput';
|
||||||
params: {
|
params: {
|
||||||
description: string;
|
description: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user