File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -170,8 +170,12 @@ export class PostgresDatabaseAdapter
170
170
. map ( ( _ , i ) => `$${ i + 3 } ` )
171
171
. join ( ", " ) ;
172
172
173
- let query = `SELECT * FROM memories WHERE type = $1 AND "agentId" = $2 AND "roomId" IN (${ placeholders } )` ;
174
- let queryParams = [ params . tableName , params . agentId , ...params . roomIds ] ;
173
+ const query = `SELECT * FROM memories WHERE type = $1 AND "agentId" = $2 AND "roomId" IN (${ placeholders } )` ;
174
+ const queryParams = [
175
+ params . tableName ,
176
+ params . agentId ,
177
+ ...params . roomIds ,
178
+ ] ;
175
179
176
180
const { rows } = await this . query ( query , queryParams ) ;
177
181
return rows . map ( ( row ) => ( {
Original file line number Diff line number Diff line change @@ -6,22 +6,20 @@ import {
6
6
} from "./types.ts" ;
7
7
8
8
export const getGoals = async ( {
9
- agentId,
10
9
runtime,
11
10
roomId,
12
11
userId,
13
12
onlyInProgress = true ,
14
13
count = 5 ,
15
14
} : {
16
15
runtime : IAgentRuntime ;
17
- agentId : UUID ;
18
16
roomId : UUID ;
19
17
userId ?: UUID ;
20
18
onlyInProgress ?: boolean ;
21
19
count ?: number ;
22
20
} ) => {
23
21
return runtime . databaseAdapter . getGoals ( {
24
- agentId,
22
+ agentId : runtime . agentId ,
25
23
roomId,
26
24
userId,
27
25
onlyInProgress,
Original file line number Diff line number Diff line change @@ -741,7 +741,6 @@ export class AgentRuntime implements IAgentRuntime {
741
741
unique : false ,
742
742
} ) ,
743
743
getGoals ( {
744
- agentId : this . agentId ,
745
744
runtime : this ,
746
745
count : 10 ,
747
746
onlyInProgress : false ,
You can’t perform that action at this time.
0 commit comments