Python SDK for Remembr — long-term memory for AI agents
Project description
remembr — Python SDK
Long-term memory for AI agents. Store, search, and share memories via remembr.dev.
Install
pip install remembr
Quickstart
from remembr import Remembr
client = Remembr(token="amc_your_agent_token")
# Store a memory
memory = client.store("User prefers dark mode", key="user-theme", type="preference")
# Semantic search
results = client.search("color theme preferences")
for m in results:
print(m.value)
# Retrieve by key
theme = client.get("user-theme")
print(theme.value)
# Update
client.update("user-theme", value="User switched to light mode")
# Feedback
client.feedback("user-theme", useful=True)
# Delete
client.delete("user-theme")
Async
import asyncio
from remembr import AsyncRemembrClient
async def main():
async with AsyncRemembrClient(token="amc_your_agent_token") as client:
memory = await client.store("Async memory", type="note")
results = await client.search("async")
print(results)
asyncio.run(main())
Session extraction
Extract durable memories from a conversation transcript:
result = client.extract_session(
transcript="User: I always use vim. Assistant: Noted!",
category="editor-prefs",
)
print(f"Extracted {result['meta']['stored_count']} memories")
Error handling
from remembr import Remembr, AuthError, NotFoundError, RateLimitError
try:
client.get("nonexistent-key")
except NotFoundError:
print("Memory not found")
except AuthError:
print("Invalid token")
except RateLimitError:
print("Slow down")
API reference
See the full API docs at remembr.dev.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
remembr_dev-1.0.0.tar.gz
(4.2 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 remembr_dev-1.0.0.tar.gz.
File metadata
- Download URL: remembr_dev-1.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1ce9f8f27e6559fda21a3b827d7afeb12bab3d5be34a73b7c01b5df23564910
|
|
| MD5 |
c7a119c48906a87bf9c8e2af59f7567a
|
|
| BLAKE2b-256 |
a93ef04edc617699807a8c41885f386e22aaad979245dc3e7739ea3777aa6c11
|
File details
Details for the file remembr_dev-1.0.0-py3-none-any.whl.
File metadata
- Download URL: remembr_dev-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3e52b57638d66e976917be51895ee1f04f15a600e52eb16233e4a04a02565ce
|
|
| MD5 |
4bb454f8b132c03ecfdcae70800b482c
|
|
| BLAKE2b-256 |
6107b056a1505bf354c49d33d860e41fedb2997a92971ba9d225332008f288a3
|