From b3cd81952625fe287816c610cd2b37453d81d77b Mon Sep 17 00:00:00 2001 From: Ladislav Martincik Date: Mon, 18 Nov 2024 12:25:14 +0100 Subject: [PATCH] Register memory managers if passed to runtime --- packages/core/src/runtime.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/core/src/runtime.ts b/packages/core/src/runtime.ts index 730cf08af8..373d079812 100644 --- a/packages/core/src/runtime.ts +++ b/packages/core/src/runtime.ts @@ -252,6 +252,10 @@ export class AgentRuntime implements IAgentRuntime { tableName: "fragments", }); + (opts.managers ?? []).forEach((manager: IMemoryManager) => { + this.registerMemoryManager(manager); + }); + (opts.services ?? []).forEach((service: Service) => { this.registerService(service); });