Skip to main content

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_config can include values such as host, org_id, and project_id.
  • Operation-specific arguments are passed through add_args, get_args, search_args, or delete_args depending on the selected template.
  • Mem0ManagedDeleteAll uses only the configured delete_args scope; it does not derive scope from packet identity.
🧱 OSS Templates
  • OSS templates use the self-hosted Mem0 backend through Memory.
  • memory_config is used to configure the local backend.
  • The same operation families are available: add, get, search, delete, and reset.
  • Mem0OSSDeleteAll uses only the configured delete_args scope; it does not derive scope from packet identity.

[!TIP] Use CLI command sinapsis info --all-template-names to 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

sinapsis_mem0-0.2.1.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sinapsis_mem0-0.2.1-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file sinapsis_mem0-0.2.1.tar.gz.

File metadata

  • Download URL: sinapsis_mem0-0.2.1.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.16

File hashes

Hashes for sinapsis_mem0-0.2.1.tar.gz
Algorithm Hash digest
SHA256 015ea82e9fa5a7279f46ce12f44de0dd0a0c760ff15202f3de305402b6a9e8af
MD5 f174b98bce644ee599a728cea5cb35c6
BLAKE2b-256 3fb3519e18999f2cd6f88daa3806db8ff72900914a2d12c4fc35707de632fa21

See more details on using hashes here.

File details

Details for the file sinapsis_mem0-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sinapsis_mem0-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dce3a58096d189202a16f9a2af3b70265b97d9c11bbaefcdc55c24f2018d3982
MD5 890620805591d6f6d78628dca296e5ae
BLAKE2b-256 434250843e16fae86cb60a9ac7fd0e040a4bb3fc2aefc6b55f74ea6bce0d07b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page