feat: add history parameter to PostWorkflowDebugProps and update related components

This commit is contained in:
sd0ric4
2025-03-26 15:53:08 +08:00
parent 5ec7bbf3d3
commit 51fa72717e
7 changed files with 337 additions and 192 deletions

View File

@@ -65,6 +65,7 @@ export type ModuleDispatchProps<T> = ChatDispatchProps & {
runtimeNodes: RuntimeNodeItemType[];
runtimeEdges: RuntimeEdgeItemType[];
params: T;
realmode: 'chat' | 'debug' | 'test';
};
export type SystemVariablesType = {

View File

@@ -581,7 +581,8 @@ export async function dispatchWorkFlow(data: Props): Promise<DispatchFlowRespons
runtimeNodes,
runtimeEdges,
params,
mode: props.mode === 'debug' ? 'test' : props.mode
mode: props.mode === 'debug' ? 'test' : props.mode,
realmode: props.mode
};
// run module