mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
memory var sort
This commit is contained in:
@ -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])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user