From 40af4baefb7c687b6e63dbe9e73cf61b8a104980 Mon Sep 17 00:00:00 2001 From: moon Date: Sat, 9 Mar 2024 04:58:09 -0800 Subject: [PATCH] Save repsonse with elaborate --- package.json | 2 +- src/lib/actions/elaborate.ts | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 97c9c6a..c354302 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bgent", - "version": "0.0.42", + "version": "0.0.43", "private": false, "description": "bgent. because agent was taken.", "type": "module", diff --git a/src/lib/actions/elaborate.ts b/src/lib/actions/elaborate.ts index e542b88..e917369 100644 --- a/src/lib/actions/elaborate.ts +++ b/src/lib/actions/elaborate.ts @@ -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; }