Python SDK for Mnemoverse Memory API — persistent memory for AI agents
Project description
Mnemoverse Python SDK
Persistent memory for AI agents. Not vector search — statistical learning.
Installation
pip install mnemoverse
Quick Start
from mnemoverse import MnemoClient
client = MnemoClient(api_key="mk_live_YOUR_KEY")
# Store a memory
result = client.write(
"Retry with exponential backoff fixed the timeout issue",
concepts=["retry", "backoff", "timeout"]
)
# Query — Hebbian associations expand "timeout" → "retry", "backoff"
memories = client.read("how to handle timeouts?")
# Report outcome — the system learns what works
client.feedback(
atom_ids=[item.atom_id for item in memories.items],
outcome=1.0,
query_concepts=memories.query_concepts
)
Async Client
from mnemoverse import AsyncMnemoClient
async with AsyncMnemoClient(api_key="mk_live_YOUR_KEY") as client:
result = await client.write("async memory", concepts=["async"])
memories = await client.read("what about async?")
Features
- Circuit breaker — 5 failures → open → 30s half-open → probe
- Retry with backoff — 3 attempts, rate-limit-aware
- Sync + async —
MnemoClientfor scripts,AsyncMnemoClientfor FastAPI - Type-safe — Pydantic models, full type hints
Methods
| Method | Description |
|---|---|
write(content, concepts, domain, metadata) |
Store a memory |
write_batch(items) |
Store up to 500 memories |
read(query, top_k, domain) |
Query with Hebbian expansion |
feedback(atom_ids, outcome) |
Report success/failure |
stats() |
Memory statistics |
health() |
API health check |
Documentation
License
MIT
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
mnemoverse-0.1.0.tar.gz
(7.6 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 mnemoverse-0.1.0.tar.gz.
File metadata
- Download URL: mnemoverse-0.1.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ba99be9e4d3c4874d8950ecaf8c0d11e1b4706326201f5e8bc0912404616d21
|
|
| MD5 |
646b8532870d55e1518f0d593c7b7330
|
|
| BLAKE2b-256 |
b131e3ed2dbdb9626b0e6cb9723f58e9b43e389fda56df979d8294974c3790f5
|
File details
Details for the file mnemoverse-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mnemoverse-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
840f671a928f7979653d17c11868ed74c079e6b27d800bcc5bc435c668e417cd
|
|
| MD5 |
dc80f0fdb98bde98440ae723bf4c9cf2
|
|
| BLAKE2b-256 |
06cf274181c2a564bc3087594c085b464e768a85b90a5e9ba9fe3d421877b829
|