We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 829d2b1 commit c6968ffCopy full SHA for c6968ff
packages/server/src/utils/buildChatflow.ts
@@ -156,9 +156,9 @@ const getChatHistory = async ({
156
157
if (isAgentFlow) {
158
const startNode = nodes.find((node) => node.data.name === 'seqStart')
159
- if (!startNode?.data?.inputs?.memory) return []
+ if (!startNode?.data?.inputs?.agentMemory) return prependMessages
160
161
- const memoryNodeId = startNode.data.inputs.memory.split('.')[0].replace('{{', '')
+ const memoryNodeId = startNode.data.inputs.agentMemory.split('.')[0].replace('{{', '')
162
const memoryNode = nodes.find((node) => node.data.id === memoryNodeId)
163
164
if (memoryNode) {
0 commit comments