aboutsummaryrefslogtreecommitdiff
path: root/packages/tools/package.json
diff options
context:
space:
mode:
authorsohamd22 <[email protected]>2025-10-11 03:45:06 +0000
committersohamd22 <[email protected]>2025-10-11 03:45:06 +0000
commit91a2aa5fdb9a5308eb0f2bffc35aebcf186f18db (patch)
tree214b180e73bc7e75195289a076160212d496668c /packages/tools/package.json
parentMerge pull request #475 from Mikethebot44/feature/add-memory-dialog-ux (diff)
downloadsupermemory-91a2aa5fdb9a5308eb0f2bffc35aebcf186f18db.tar.xz
supermemory-91a2aa5fdb9a5308eb0f2bffc35aebcf186f18db.zip
create memory adding option in vercel sdk (#484)
### TL;DR Added support for automatically saving user messages to Supermemory. ### What changed? - Added a new `addMemory` option to `wrapVercelLanguageModel` that accepts either "always" or "never" (defaults to "never") - Implemented the `addMemoryTool` function to save user messages to Supermemory - Modified the middleware to check the `addMemory` setting and save the last user message when appropriate - Initialized the Supermemory client in the middleware to enable memory storage ### How to test? 1. Set the `SUPERMEMORY_API_KEY` environment variable 2. Use the `wrapVercelLanguageModel` function with the new `addMemory: "always"` option 3. Send a user message through the model 4. Verify that the message is saved to Supermemory with the specified container tag ### Why make this change? This change enables automatic memory creation from user messages, which improves the system's ability to build a knowledge base without requiring explicit memory creation calls. This is particularly useful for applications that want to automatically capture and store user interactions for future reference.
Diffstat (limited to 'packages/tools/package.json')
-rw-r--r--packages/tools/package.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/tools/package.json b/packages/tools/package.json
index b96bf9cc..536d7c1c 100644
--- a/packages/tools/package.json
+++ b/packages/tools/package.json
@@ -1,7 +1,7 @@
{
"name": "@supermemory/tools",
"type": "module",
- "version": "1.2.0",
+ "version": "1.2.13",
"description": "Memory tools for AI SDK and OpenAI function calling with supermemory",
"scripts": {
"build": "tsdown",