From c5b0993feeb488581d2763274ed8d3ec786ce6ad Mon Sep 17 00:00:00 2001 From: dingyi Date: Wed, 18 Dec 2024 03:27:05 +0800 Subject: [PATCH] fix(plugin-common): ensure memory is saved after processing - Add await vectorStore.save() to ensure memory is saved after processing --- packages/plugin-common/src/plugins/memory.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/plugin-common/src/plugins/memory.ts b/packages/plugin-common/src/plugins/memory.ts index d9655ef9..585ecb89 100644 --- a/packages/plugin-common/src/plugins/memory.ts +++ b/packages/plugin-common/src/plugins/memory.ts @@ -122,6 +122,8 @@ export class MemorySaveTool extends Tool { } ]) + await vectorStore.save() + return 'Memory saved successfully.' }