mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 21:00:58 +03:00
Feature/Add dedicated agent memory nodes (#3649)
add dedicated agent memory nodes
This commit is contained in:
@@ -98,7 +98,8 @@ export const buildAgentGraph = async (
|
||||
|
||||
/*** Get Memory Node for Chat History ***/
|
||||
let chatHistory: IMessage[] = []
|
||||
const memoryNode = nodes.find((node) => node.data.name === 'agentMemory')
|
||||
const agentMemoryList = ['agentMemory', 'sqliteAgentMemory', 'postgresAgentMemory', 'mySQLAgentMemory']
|
||||
const memoryNode = nodes.find((node) => agentMemoryList.includes(node.data.name))
|
||||
if (memoryNode) {
|
||||
chatHistory = await getSessionChatHistory(
|
||||
chatflowid,
|
||||
|
||||
Reference in New Issue
Block a user