Commit graph

110 commits

Author SHA1 Message Date
MaheshtheDev
a00a751e10 pkg(tools): Expose raw search results in MemoryPromptData for prompt templates (#787)
Expose raw search results in `MemoryPromptData` so prompt templates can traverse, filter, and selectively include results based on metadata (e.g. score, source).

##### Usage example

```typescript
const promptTemplate = (data: MemoryPromptData) => {
  const relevant = data.searchResults.filter(
    (r) => (r.metadata?.score as number) > 0.7
  )
  return `${data.userMemories}\n${relevant.map(r => r.memory).join('\n')}`
}
```
2026-03-19 00:38:53 +00:00
MaheshtheDev
c534008001 feat: delete connection without removing the documents (#778)
- Deleting Connection without removing documents
- Updating the Docs with new param
2026-03-17 23:21:36 +00:00
MaheshtheDev
6ce7357ffb docs: clarify metadata-only PATCH does not reindex (#784)
Updates docs to match the new behavior where metadata-only PATCH updates do not trigger reindexing:

- **update-delete-memories/overview.mdx** — Distinguishes content changes (reindex) vs metadata-only (no reindex), adds a note about `accepted`-style updates
- **document-operations.mdx** — Clarifies that only content changes trigger reprocessing
- **add-memories.mdx** and **add-memories/overview.mdx** — Add notes on metadata-only behavior
- **memory-api/ingesting.mdx** — Splits update behavior into content vs metadata-only
- **memory-api/creation/adding-memories.mdx** — Adds note for the “Adding Additional Metadata to Files” flow
2026-03-17 20:48:52 +00:00
Dhravya
984297b62d
Add Supermemory integration for Microsoft Agent Framework (#775)
## Summary

This PR introduces comprehensive Supermemory integration for the Microsoft Agent Framework, providing three complementary approaches to add persistent memory capabilities to agents: middleware for automatic memory injection, context providers for session-based memory management, and tools for explicit memory operations.

## Key Changes

- **SupermemoryChatMiddleware**: Automatic memory injection middleware that fetches relevant memories from Supermemory before LLM calls and optionally saves conversations. Supports three modes:
  - `"profile"`: Injects all static and dynamic profile memories
  - `"query"`: Searches for memories relevant to the current user message
  - `"full"`: Combines both profile and query modes

- **SupermemoryContextProvider**: Idiomatic context provider following the Agent Framework pattern (similar to built-in Mem0 integration). Integrates with the session pipeline via `before_run()` and `after_run()` hooks for automatic memory retrieval and storage.

- **SupermemoryTools**: FunctionTool-compatible tools that agents can use for explicit memory operations:
  - `search_memories()`: Search for specific memories
  - `add_memory()`: Add new memories
  - `get_profile()`: Retrieve user profile

- **Utility Functions**: Helper functions for:
  - Memory deduplication across static, dynamic, and search result sources
  - Profile-to-markdown conversion for LLM consumption
  - Message extraction and conversation formatting
  - Logging with configurable verbosity

- **Exception Hierarchy**: Custom exceptions for better error handling:
  - `SupermemoryConfigurationError`: Missing/invalid configuration
  - `SupermemoryAPIError`: API request failures
  - `SupermemoryNetworkError`: Network connectivity issues
  - `SupermemoryMemoryOperationError`: Memory operation failures

- **Comprehensive Documentation**: README with quick start examples, configuration options, and API reference for all three integration approaches.

- **Test Suite**: Unit tests covering middleware, context provider, tools, and utility functions with proper mocking and error scenarios.

## Implementation Details

- Supports both async (aiohttp) and sync (requests) HTTP clients with automatic fallback
- Handles multiple message formats (dict, objects with attributes, content arrays)
- Configurable memory storage with optional conversation grouping via `conversation_id`
- Environment variable fallback for API key configuration (`SUPERMEMORY_API_KEY`)
- Background task management for non-blocking memory operations in middleware
- Proper async/sync compatibility for the Supermemory SDK

https://claude.ai/code/session_012idB5y6UGK3zmeFULgTc4z
2026-03-10 01:49:45 +00:00
Viasocket Interns
48845bb072
feat: adding viaSocket integration page (#757)
Co-authored-by: vishalparmarr <vishalbusiness3108@gmail.com>
2026-03-02 11:37:42 -08:00
Dhravya
bd69e2f061
docs: add scoped key deletion endpoint to auth docs (#756)
Documents the new DELETE /v3/auth/scoped-key/:keyId endpoint
for disabling container-scoped API keys.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 01:06:12 +00:00
Prasanna721
cda3bca0d0 docs: add FAQ section to OpenClaw integration page (#746)
docs: add FAQ section to OpenClaw integration page

 Added FAQ section below Manual Configuration with 5 questions covering installation, custom container tags for Twitter
  bookmarks, work/personal memory separation, non-technical setup via agent, and per-channel session memory separation with
  feature request CTA.
2026-02-18 06:02:41 +00:00
Prasanna721
e40176088a docs: update OpenClaw integration docs v2 (#743)
### docs: OpenClaw integration v2 documentation

Restructure OpenClaw docs for Openclaw v2
2026-02-17 06:20:48 +00:00
Dhravya Shah
8b976015b6 direct add memory support 2026-02-09 18:32:24 -08:00
Dhravya Shah
7b6793ecf8
Update authentication docs with code examples and API endpoint 2026-02-08 10:37:50 -08:00
Dhravya Shah
bf82efe2bf
docs: add authentication page (#727)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 22:12:46 -07:00
Prasanna
1ad3c8b492
trigger: Mintlify build (#725) 2026-02-04 14:56:37 -07:00
Prasanna721
f9506d6a24 fix: mintlify build\ (#724)
Testing mintlify build
2026-02-04 20:36:56 +00:00
Prasanna721
9a0f366ff6 docs: add entity context documentation and fix MDX parsing (#723)
Add entity context documentation to customization and add-memories pages, remove nav icons from Developer Platform, fix install.md parsing error

 Changes:
  - Remove icons from Developer Platform subheadings (Getting Started, Concepts, Using supermemory, Connectors and sync, Migration Guides)
  - Add Entity Context section to customization page with usage example and accordion for advanced API
  - Add entityContext parameter to add-memories Parameters table and examples accordion
  - Fix MDX parsing error in install.md (wrap curly braces in backticks)
2026-02-03 22:53:21 +00:00
nexxeln
16da766fde langgraph integration (#719) 2026-02-03 01:00:59 +00:00
nexxeln
60d6192f5d docs: add OpenAI Agents SDK (#721)
Add documentation for using Supermemory with OpenAI Agents SDK
and CrewAI. Both pages cover user profiles, memory storage,
search, and include practical examples.
2026-02-03 00:51:55 +00:00
Shoubhit Dash
eb0cc9d9d3
docs: add CrewAI integration page (#720)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Dhravya Shah <dhravyashah@gmail.com>
2026-02-02 17:50:35 -07:00
nexxeln
0bf8adb9a6 docs: add Agno integration page (#722) 2026-02-03 00:45:46 +00:00
nexxeln
9553434c9a mastra integration (#717)
adds withSupermemory wrapper and input/output processors for
mastra agents:

- input processor fetches and injects memories into system prompt
before llm calls
- output processor saves conversations to supermemory after
responses
- supports profile, query, and full memory search modes
- includes custom prompt templates and requestcontext support

const agent = new Agent(withSupermemory(
{ id: "my-assistant", model: openai("gpt-4o"), instructions:
"..." },
"user-123",
{ mode: "full", addMemory: "always", threadId: "conv-456" }
))

includes docs as well

this pr also reworks how the tools package works into shared modules
2026-02-03 00:43:08 +00:00
nexxeln
b7e6eb65b9 langchain integration (#718)
adds documentation for using supermemory alongside langchain. no new package
2026-01-31 04:08:10 +00:00
Dhravya Shah
e7642ffc86 fix: docs 2026-01-30 17:32:02 -07:00
Prasanna721
a2a0a266eb docs: add Claude Code integration page (#716)
### update Claude Code docs in integration page

 - Add apps/docs/integrations/claude-code.mdx — documentation for Claude Code Supermemory plugin
  - Add apps/docs/images/claude-code-icon.svg — custom sidebar icon
  - Add apps/docs/images/claude-code-supermemory.png — hero image
  - Update apps/docs/docs.json — add claude-code to Plugins navigation group

### validation
<img width="3046" height="1536" alt="Screenshot 2026-01-29 at 12 50 06 PM" src="https://github.com/user-attachments/assets/5180f237-f886-47a5-a0b3-7436cebd610a" />
2026-01-29 21:02:38 +00:00
Prasanna721
efd6c133e6 docs: add ClawdBot integration page (#714)
Clawdbot docs

Changes:
  - Added integrations/clawdbot.mdx — ClawdBot Supermemory Plugin documentation page with shrimp icon
  - Added "Plugins" group to the bottom of the Integrations sidebar in docs.json
  - Page covers: API key setup (zsh/bash/PowerShell), plugin install, how it works (auto-recall/auto-capture), features (AI
  tools, slash commands, CLI), manual configuration, and advanced options
2026-01-27 22:18:18 +00:00
MaheshtheDev
0d82ac3238 docs: gmail connector (#690) 2026-01-22 07:52:15 +00:00
Prasanna721
0a8c5fa049 Re - feat(pipecat-sdk): add speech-to-speech model support (Gemini Live) (#683)
#### RE-RAISING Pipecat live speech PR

### Added native speech-to-speech model support

### Summary:
  - Speech-to-speech support - Auto-detect audio frames and inject memories to system prompt for native audio models (Gemini Live, etc.)
  - Fix memory bloating - Replace memories each turn using XML tags instead of accumulating
  - Add temporal context - Show recency on search results ([2d ago], [15 Jan])
  - New inject_mode param - auto (default), system, or user

### Docs update
  - Update the docs for native speech-2-speech models
2026-01-21 03:58:26 +00:00
MaheshtheDev
1423bd7004 feat: mobile responsive, lint formats, toast, render issue fix (#688)
- Mobile responsive
- new toast design
- web document render issue fix
- posthog analytics
- ui improvements
2026-01-21 03:11:53 +00:00
Dhravya Shah
87b361c26b
docs changes (#678)
Some checks failed
Publish AI SDK / publish (push) Has been cancelled
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 16:55:32 -08:00
MaheshtheDev
b1b37ddc4e fix: mintlify build (#677) 2026-01-17 00:45:52 +00:00
MaheshtheDev
e41c431b3a docs: override install md file (#675) 2026-01-17 00:24:18 +00:00
Prasanna721
ced23c7ea2 pipecat-sdk (#669)
### Changes

 - New documentation page: apps/docs/voice-realtime/pipecat.mdx
  - Installation guide for supermemory-pipecat package
  - Configuration with SupermemoryPipecatService and InputParams
  - Pipeline integration guide
  - How it works (Memory Retrieval, Context Enhancement)
  - Memory modes table (profile, query, full)
  - Configuration options with InputParams
  - Complete FastAPI voice agent example
 - Updated docs.json:
  - Added new "Voice & Realtime" group under SDKs tab with mic icon
  - Removed external npm/pypi link pages from SDK sidebar

### Files Changed

 apps/docs/voice-realtime/pipecat.mdx  (new)
 apps/docs/docs.json                   (modified)

### Navigation

SDKs → Voice & Realtime → Pipecat

#
2026-01-13 05:44:44 +00:00
Dhravya
aa308f3e91 Document MCP context prompt feature (#661)
Added documentation for the new `context` prompt in the Supermemory MCP server that enables automatic user profile injection into AI conversations. Updated the MCP overview page with detailed parameter documentation and usage guidance, and added a changelog entry for December 30, 2025.

**Files changed:**
- `apps/docs/supermemory-mcp/mcp.mdx` - Added Prompts section with `context` prompt documentation
- `apps/docs/changelog/developer-platform.mdx` - Added December 30, 2025 changelog entry

Generated from [fix: prompt injection with mcp](https://github.com/supermemoryai/supermemory/pull/638) @MaheshtheDev
2026-01-12 21:51:51 +00:00
nexxeln
4850856920 docs: add S3 connector documentation (#657)
Add comprehensive documentation for the S3 connector including:
- Quick setup with TypeScript, Python, and cURL examples
- S3-compatible services support (MinIO, DigitalOcean Spaces, R2)
- Prefix filtering and dynamic container tag extraction
- Connection management and sync behavior
- IAM permissions and security best practices
2026-01-09 03:13:13 +00:00
Dhravya
2dfadd344b Document promptTemplate feature for AI SDK (#660)
Added comprehensive documentation for the new `promptTemplate` option in the AI SDK, which allows developers to customize how memories are formatted and injected into system prompts. This includes examples for XML-based prompting (Claude), custom branding, and the `MemoryPromptData` interface.

## Files Changed
- `apps/docs/ai-sdk/user-profiles.mdx` - Added "Custom Prompt Templates" section with examples and interface documentation
- `apps/docs/ai-sdk/overview.mdx` - Updated User Profiles section to mention customization capabilities

Generated from [feat: allow prompt template for @supermemory/tools package](https://github.com/supermemoryai/supermemory/pull/655) @MaheshtheDev
2026-01-09 02:40:04 +00:00
Dhravya Shah
ca8eb295db
Add threshold parameter to profile API docs (#659)
Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
2026-01-08 18:36:48 -08:00
MaheshtheDev
bc8a739a03 fix: mcp docs navigation link (#656) 2026-01-07 03:39:42 +00:00
Dhravya Shah
bc02650451 add vibe coding instructions for setup 2026-01-03 18:20:47 -08:00
MaheshtheDev
0e3ea4eed2 docs: update with MCP 4.0 setup and instructions (#641) 2026-01-02 21:20:36 +00:00
Dhravya Shah
85b97b789d icon in overview 2025-12-24 11:22:38 -08:00
Dhravya Shah
77f52df0f8 fix: small changes 2025-12-24 11:02:18 -08:00
Prasanna
7e79e227d3
docs: added MemoryBench documentation (#630) 2025-12-24 11:01:26 -08:00
MaheshtheDev
ea9fa65169 fix(docs): delete connections sdk snippet (#629) 2025-12-24 01:44:53 +00:00
MaheshtheDev
b8e98c7dba add(docs): migration guide from zep to supermemory (#612)
Some checks failed
Publish AI SDK / publish (push) Has been cancelled
add docs for Migration Guide from zep to supermemory
2025-12-20 00:47:52 +00:00
Mahesh Sanikommu
1dd602c52b
feat(docs): v4 hybrid search parameter and examples (#621) 2025-12-18 17:52:20 -08:00
Dhravya Shah
ff35a6bffc fix: change support email to the one on slack 2025-12-18 17:50:37 -08:00
nexxeln
c42248ff35 add the addMemory option docs (#616) 2025-12-14 01:19:52 +00:00
MaheshtheDev
1028c33e58 add(docs): connections configure, fetch resources (#611) 2025-12-07 19:02:52 +00:00
MaheshtheDev
89d056e6ba Update X social links from supermemoryai to supermemory (#607)
we recently got new x/twitter handle and update the references for the links
2025-12-07 03:44:11 +00:00
nexxeln
16979f8bee github connector docs (#594) 2025-12-04 19:00:39 +00:00
nexxeln
1b9b3012e3 add docs for graph package (#603) 2025-12-04 18:56:40 +00:00
Dhravya Shah
cf822ff633 Merge branch 'main' of https://github.com/supermemoryai/supermemory 2025-11-27 09:53:16 -07:00