Skip to main content

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

Metadata

Release files for sls-memory 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sls-memory 0.1.1
File Size Uploaded
sls_memory-0.1.1.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sls-memory 0.1.1
File Interpreter ABI Platform
sls_memory-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.5 kB

Release files / sls_memory-0.1.1.tar.gz

Download URL sls_memory-0.1.1.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c1a149d4f604e071173fca1a5f20fba170d445312c99111e63efcc8a5163d610
BLAKE2b-256 checksum
How to use checksums
dc8b5d4cfb43a6d4d1a75957ffd5a20d43fe57662e5aaec2c6019afcaf41a48c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / sls_memory-0.1.1-py3-none-any.whl

Download URL sls_memory-0.1.1-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20d44bc8feeadb6ad2e977f247c425f641e6a1fab8830f74ada117ce463513ab
BLAKE2b-256 checksum
How to use checksums
cdddc1a8476aecd50cdc3fcc5b1061c8175095c0e150cd105e74b9ff7e84df33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page