aboutsummaryrefslogtreecommitdiff
path: root/packages/tools/src/vercel/memory-prompt.ts
Commit message (Collapse)AuthorAgeFilesLines
* fix(tools): multi step agent prompt caching (#685)01-19-fix_tools_multi_step_agent_prompt_cachingMaheshtheDev2026-01-201-26/+118
|
* feat: allow prompt template for @supermemory/tools package (#655)01-06-feat_allow_prompt_template_for_supermemory_tools_packageMaheshtheDev2026-01-071-27/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | ## Add customizable prompt templates for memory injection **Changes:** - Add `promptTemplate` option to `withSupermemory()` for full control over injected memory format (XML, custom branding, etc.) - New `MemoryPromptData` interface with `userMemories` and `generalSearchMemories` fields - Exclude `system` messages from persistence to avoid storing injected prompts - Add JSDoc comments to all public interfaces for better DevEx **Usage:** ```typescript const customPrompt = (data: MemoryPromptData) => ` <user_memories> ${data.userMemories} ${data.generalSearchMemories} </user_memories> `.trim() const model = withSupermemory(openai("gpt-4"), "user-123", { promptTemplate: customPrompt, }) ```
* fix(tools): pass apiKey to profile search instead of using process.env (#634)Arnab Mondal2025-12-301-25/+28
|
* conditionalDhravya Shah2025-12-231-4/+8
|
* feat(@supermemory/tools): vercel ai sdk compatbile with v5 and v6 (#628)12-23-feat_supermemory_tools_vercel_ai_sdk_compatbile_with_v5_and_v6MaheshtheDev2025-12-241-16/+20
|
* bump packageDhravya Shah2025-12-231-2/+2
|
* fix: deduplicate memories after returned to save tokensDhravya Shah2025-12-221-3/+33
|
* Support for conversations in SDKs (#618)12-15-support_for_conversationsDhravya2025-12-201-1/+10
|
* feat(@supermemory/tools): capture assitant responses with filtered memory (#539)MaheshtheDev2025-10-281-0/+119
### Added streaming support to the Supermemory middleware and improved memory handling in the AI SDK integration. ### What changed? - Refactored the middleware architecture to support both streaming and non-streaming responses - Extracted memory prompt functionality into a separate module (`memory-prompt.ts`) - Added memory saving capability for streaming responses - Improved the formatting of memory content with a "User Supermemories:" prefix - Added utility function to filter out supermemories from content - Created a new streaming example in the test app with a dedicated route and page - Updated version from 1.3.0 to 1.3.1 in package.json - Simplified installation instructions in [README.m](http://README.md)d