File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1189,8 +1189,14 @@ export class AgentRuntime implements IAgentRuntime {
1189
1189
id : userId ,
1190
1190
name : name || this . character . name || "Unknown User" ,
1191
1191
username : userName || this . character . username || "Unknown" ,
1192
- email : email || this . character . email || userId , // Temporary
1193
- details : this . character || { summary : "" } ,
1192
+ // TODO: We might not need these account pieces
1193
+ email : email || this . character . email || userId ,
1194
+ // When invoke ensureUserExists and saving account.details
1195
+ // Performing a complete JSON.stringify on character will cause a TypeError: Converting circular structure to JSON error in some more complex plugins.
1196
+ details : this . character ? Object . assign ( { } , this . character , {
1197
+ source,
1198
+ plugins : this . character ?. plugins ?. map ( ( plugin ) => plugin . name ) ,
1199
+ } ) : { summary : "" } ,
1194
1200
} ) ;
1195
1201
elizaLogger . success ( `User ${ userName } created successfully.` ) ;
1196
1202
}
You can’t perform that action at this time.
0 commit comments