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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sls_memory-0.1.1.tar.gz | 10.6 kB | Without provenance | Details for sls_memory-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sls_memory-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for sls_memory-0.1.1-py3-none-any.whl |
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
|
Security for sls-memory 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.