Skip to content

Commit 529f977

Browse files
authored
Merge pull request #602 from bmgalego/fix-getMemoriesByRoomIds
fix: add Memory Manager getMemoriesByRoomIds missing tableName param
2 parents d6b20c9 + db18081 commit 529f977

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/core/src/memory.ts

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ export class MemoryManager implements IMemoryManager {
194194

195195
async getMemoriesByRoomIds(params: { roomIds: UUID[] }): Promise<Memory[]> {
196196
return await this.runtime.databaseAdapter.getMemoriesByRoomIds({
197+
tableName: this.tableName,
197198
agentId: this.runtime.agentId,
198199
roomIds: params.roomIds,
199200
});

packages/core/src/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,7 @@ export interface IDatabaseAdapter {
725725
getMemoryById(id: UUID): Promise<Memory | null>;
726726

727727
getMemoriesByRoomIds(params: {
728+
tableName: string;
728729
agentId: UUID;
729730
roomIds: UUID[];
730731
}): Promise<Memory[]>;

0 commit comments

Comments
 (0)