aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMaheshtheDev <[email protected]>2026-01-07 03:48:16 +0000
committerMaheshtheDev <[email protected]>2026-01-07 03:48:16 +0000
commit68d4d95c1dd26bc6bd46c09c1b4041064d69f41b (patch)
treeed812311f511370f7d0c08b5f8ddb290acfcad50 /apps
parentfix: mcp docs navigation link (#656) (diff)
downloadsupermemory-68d4d95c1dd26bc6bd46c09c1b4041064d69f41b.tar.xz
supermemory-68d4d95c1dd26bc6bd46c09c1b4041064d69f41b.zip
feat: allow prompt template for @supermemory/tools package (#655)01-06-feat_allow_prompt_template_for_supermemory_tools_package
## 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, }) ```
Diffstat (limited to 'apps')
0 files changed, 0 insertions, 0 deletions