Skip to main content

A mem0-compatible memory SDK powered by Alibaba Cloud SLS

Project description

SLS Memory SDK

阿里云 SLS Memory 客户端 SDK。

安装

pip install sls-memory

快速开始

from sls_memory import Config, SLSMemoryClient

# 初始化客户端
config = Config(
    access_key_id="your_access_key_id",
    access_key_secret="your_access_key_secret",
    endpoint="cn-hangzhou.log.aliyuncs.com"
)
client = SLSMemoryClient(
    config, 
    project="my-project", 
    memory_store="my-store"
)

# 添加记忆
client.add("我喜欢打网球", user_id="user123")

# 搜索记忆
results = client.search("网球", user_id="user123")
print(results)

主要功能

  • ✅ 兼容 mem0 SDK 接口
  • ✅ 支持同步和异步客户端
  • ✅ 支持记忆的增删改查
  • ✅ 支持语义搜索和过滤
  • ✅ 支持 Memory Store 管理

文档

详细使用文档请查看 usage.md

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

sls_memory-0.1.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

sls_memory-0.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file sls_memory-0.1.0.tar.gz.

File metadata

  • Download URL: sls_memory-0.1.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for sls_memory-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d10dc5cce5086596e713446db916917b0ad9d3d3b3a5635b30dd9481591c8fab
MD5 792de054cc46337dc1e06599ca6f185f
BLAKE2b-256 861a31c14eb1f90431288d9b4150a2ce9970d9932acc0f027978077185a4f7a2

See more details on using hashes here.

File details

Details for the file sls_memory-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sls_memory-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for sls_memory-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f659ce8de3ba1a5f703bf4d5423326ce10081af262e7b98ae3f9864b9d8cd91e
MD5 91b8c84dabad9cd746d22583f73c2b9f
BLAKE2b-256 d03b75f5254e476bd3ff166cd90a7b982c588c4f332d788f4a4f1e749dd84595

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