memory var sort

This commit is contained in:
JzoNg
2025-09-20 18:37:41 +08:00
parent 77b7bf9d47
commit f6623423dd
10 changed files with 186 additions and 98 deletions

View File

@ -31,6 +31,8 @@ export const useWorkflowVariables = () => {
filterVar,
hideEnv,
hideChatVar,
conversationVariablesFirst,
memoryVarSortFn,
}: {
parentNode?: Node | null
beforeNodes: Node[]
@ -38,6 +40,8 @@ export const useWorkflowVariables = () => {
filterVar: (payload: Var, selector: ValueSelector) => boolean
hideEnv?: boolean
hideChatVar?: boolean
conversationVariablesFirst?: boolean
memoryVarSortFn?: (a: string, b: string) => number
}): NodeOutPutVar[] => {
const {
conversationVariables,
@ -61,6 +65,8 @@ export const useWorkflowVariables = () => {
dataSourceList: dataSourceList ?? [],
},
schemaTypeDefinitions,
conversationVariablesFirst,
memoryVarSortFn,
})
}, [t, workflowStore, schemaTypeDefinitions, buildInTools])