Sinapsis templates for Mem0 memory management.
Project description
Sinapsis Mem0
Sinapsis templates for managed and self-hosted Mem0 memory workflows.
🐍 Installation • 🚀 Features • 📚 Usage example • 📙 Documentation • 🔍 License
The sinapsis-mem0 package adds persistent memory workflows to Sinapsis agents through both the managed Mem0 platform and the open-source self-hosted backend.
🐍 Installation
Install using your preferred package manager. We strongly recommend using uv.
uv pip install sinapsis-mem0 --extra-index-url https://pypi.sinapsis.tech
Or with raw pip:
pip install sinapsis-mem0 --extra-index-url https://pypi.sinapsis.tech
[!IMPORTANT] Managed Mem0 templates require an API key:
export MEM0_API_KEY="your-api-key"
🚀 Features
Templates Supported
- Managed Mem0 templates:
Mem0ManagedAdd,Mem0ManagedGetAll,Mem0ManagedGetMemory,Mem0ManagedSearch,Mem0ManagedDeleteAll,Mem0ManagedDeleteMemory,Mem0ManagedReset - OSS Mem0 templates:
Mem0OSSAdd,Mem0OSSGetAll,Mem0OSSGetMemory,Mem0OSSSearch,Mem0OSSDeleteAll,Mem0OSSDeleteMemory,Mem0OSSReset
🌍 Managed Templates
- Managed templates use the Mem0 platform through
MemoryClient. memory_configcan include values such ashost,org_id, andproject_id.- Operation-specific arguments are passed through
add_args,get_args,search_args, ordelete_argsdepending on the selected template. Mem0ManagedDeleteAlluses only the configureddelete_argsscope; it does not derive scope from packet identity.
🧱 OSS Templates
- OSS templates use the self-hosted Mem0 backend through
Memory. memory_configis used to configure the local backend.- The same operation families are available: add, get, search, delete, and reset.
Mem0OSSDeleteAlluses only the configureddelete_argsscope; it does not derive scope from packet identity.
[!TIP] Use CLI command
sinapsis info --all-template-namesto show a list with all the available Template names installed with Sinapsis Mem0.
📚 Usage example
The following agent retrieves all memories for the given user_id and run_id from the managed Mem0 platform.
Config
agent:
name: mem0_managed_get_all_memories
description: Retrieves all scoped memories from managed Mem0.
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: Mem0ManagedGetAll
class_name: Mem0ManagedGetAll
template_input: InputTemplate
attributes:
get_args:
user_id: Sarah
run_id: conv_1234
📙 Documentation
Documentation for this and other sinapsis packages is available on the sinapsis website
Tutorials for different projects within sinapsis are available at sinapsis tutorials page
🔍 License
This project is licensed under the AGPLv3 license, which encourages open collaboration and sharing. For more details, please refer to the LICENSE file.
For commercial use, please refer to our official Sinapsis website for information on obtaining a commercial license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sinapsis_mem0-0.2.0.tar.gz.
File metadata
- Download URL: sinapsis_mem0-0.2.0.tar.gz
- Upload date:
- Size: 25.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f51d0b73a087c5a030896231100ca1674d45329acbe185174f2d803efe252e46
|
|
| MD5 |
3c7aebc8855e91442a2788b3b7c43656
|
|
| BLAKE2b-256 |
a97f376b34d4aac3fa03032daaae763ab8e793b744de1b3c37acb2e8ca508896
|
File details
Details for the file sinapsis_mem0-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sinapsis_mem0-0.2.0-py3-none-any.whl
- Upload date:
- Size: 36.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3c0c89a128b7f129099e5880d9e0f36763892aa9c748d2d5a5a64d9ef87f99f
|
|
| MD5 |
9c9ebff667d1ed770b614abea7215bc6
|
|
| BLAKE2b-256 |
642d2928f691f3354cb48443750e71c15ccf2c08c4de82503ac558183c0ed1fd
|