Official Python SDK for MemoryLayer
Project description
memorylayer
Official Python SDK for MemoryLayer - Add memory capabilities to your AI applications.
Installation
pip install memorylayer
Quick Start
from memorylayer import MemoryLayerClient, CreateMemoryRequest
import os
client = MemoryLayerClient(
api_key=os.environ['MEMORYLAYER_API_KEY']
)
# Add a memory
memory = client.memories.add(CreateMemoryRequest(
content='User prefers dark mode',
metadata={'category': 'preferences'},
project_id='proj_abc123'
))
# Search memories
results = client.search.search(
query='user preferences',
project_id='proj_abc123'
)
print(results)
Async Support
from memorylayer import AsyncMemoryLayerClient
async_client = AsyncMemoryLayerClient(
api_key=os.environ['MEMORYLAYER_API_KEY']
)
# Use async methods
memory = await async_client.memories.add(...)
Documentation
For full documentation, visit https://docs.memorylayer.com
License
MIT
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
memorylayerai-0.1.0.tar.gz
(8.3 kB
view details)
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 memorylayerai-0.1.0.tar.gz.
File metadata
- Download URL: memorylayerai-0.1.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08fa8d95198523a24a4d703239ce51b4c679b0726b6b5ba14e8db8b37fb6a8ef
|
|
| MD5 |
ef65cbca086f3f1dc7e4ab8fe85a5d1d
|
|
| BLAKE2b-256 |
a9d7f103604a2d61b694576642117c79bbc7c9492f01c3438c7802126721b53c
|
File details
Details for the file memorylayerai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: memorylayerai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3585a7c1fbe1baf8aa3b4494184b9778bf70bdf5b7d5503d05e6c687f82db524
|
|
| MD5 |
622898b7375b511af03c3120e7cbe572
|
|
| BLAKE2b-256 |
8f10c9876c55d533a649781532674c623cdceb6dc5980e57bb7193abfc694735
|