Skip to content

Commit

Permalink
Save repsonse with elaborate
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Mar 9, 2024
1 parent aa2a8da commit 40af4ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bgent",
"version": "0.0.42",
"version": "0.0.43",
"private": false,
"description": "bgent. because agent was taken.",
"type": "module",
Expand Down
8 changes: 8 additions & 0 deletions src/lib/actions/elaborate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ export default {
);
}

await runtime.messageManager.createMemory({
user_ids: user_ids!,
user_id: agentId!,
content: responseContent,
room_id,
embedding: embeddingZeroVector,
});

return responseContent;
}

Expand Down

0 comments on commit 40af4ba

Please sign in to comment.