Skip to content

Commit

Permalink
Merge pull request #602 from bmgalego/fix-getMemoriesByRoomIds
Browse files Browse the repository at this point in the history
fix: add Memory Manager getMemoriesByRoomIds missing tableName param
  • Loading branch information
shakkernerd authored Nov 26, 2024
2 parents d6b20c9 + db18081 commit 529f977
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export class MemoryManager implements IMemoryManager {

async getMemoriesByRoomIds(params: { roomIds: UUID[] }): Promise<Memory[]> {
return await this.runtime.databaseAdapter.getMemoriesByRoomIds({
tableName: this.tableName,
agentId: this.runtime.agentId,
roomIds: params.roomIds,
});
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ export interface IDatabaseAdapter {
getMemoryById(id: UUID): Promise<Memory | null>;

getMemoriesByRoomIds(params: {
tableName: string;
agentId: UUID;
roomIds: UUID[];
}): Promise<Memory[]>;
Expand Down

0 comments on commit 529f977

Please sign in to comment.