refactor(workflow): update output schema handling in tool and data source nodes for improved integration with plugin info

This commit is contained in:
twwu
2025-08-26 16:48:18 +08:00
parent 1f5fd13359
commit bdcd9ad9cb
19 changed files with 219 additions and 105 deletions

View File

@ -35,6 +35,11 @@ export const useWorkflowVariables = () => {
conversationVariables,
environmentVariables,
ragPipelineVariables,
buildInTools,
customTools,
workflowTools,
mcpTools,
dataSourceList,
} = workflowStore.getState()
return toNodeAvailableVars({
parentNode,
@ -45,6 +50,13 @@ export const useWorkflowVariables = () => {
conversationVariables: (isChatMode && !hideChatVar) ? conversationVariables : [],
ragVariables: ragPipelineVariables,
filterVar,
allPluginInfoList: {
buildInTools,
customTools,
workflowTools,
mcpTools,
dataSourceList: dataSourceList ?? [],
},
})
}, [t, workflowStore])
@ -69,6 +81,11 @@ export const useWorkflowVariables = () => {
conversationVariables,
environmentVariables,
ragPipelineVariables,
buildInTools,
customTools,
workflowTools,
mcpTools,
dataSourceList,
} = workflowStore.getState()
return getVarType({
parentNode,
@ -81,6 +98,13 @@ export const useWorkflowVariables = () => {
environmentVariables,
conversationVariables,
ragVariables: ragPipelineVariables,
allPluginInfoList: {
buildInTools,
customTools,
workflowTools,
mcpTools,
dataSourceList: dataSourceList ?? [],
},
})
}, [workflowStore])