Skip to content

Commit

Permalink
Register memory managers if passed to runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
martincik committed Nov 18, 2024
1 parent 1dde740 commit b3cd819
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit b3cd819

Please sign in to comment.