Python client for enn-memory - Long-term memory system for AI agents
Project description
enmem-client
Python client for enn-memory - Long-term memory system for AI agents.
Installation
pip install enmem-client
Quick Start
from enmem_client import Enmem
# Initialize client
client = Enmem(base_url="http://localhost:8888")
# Store a memory
client.retain(
bank_id="my-bank",
content="User prefers Python programming"
)
# Search memories
results = client.recall(
bank_id="my-bank",
query="What does the user like?"
)
for r in results.results:
print(r.text)
# Generate contextual answer
answer = client.reflect(
bank_id="my-bank",
query="What are the user's interests?"
)
print(answer.text)
Documentation
Full documentation: https://github.com/enn-memory/ennmem-docs
Features
- Retain: Store memories with automatic fact extraction
- Recall: Search memories using semantic similarity
- Reflect: Generate contextual responses using memories and mental models
- Mental Models: Create living documents that auto-refresh
- Directives: Set hard rules for reflect operations
- Bank Management: Create and configure memory banks
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
enmem_client-0.4.22.tar.gz
(173.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
enmem_client-0.4.22-py3-none-any.whl
(202.7 kB
view details)
File details
Details for the file enmem_client-0.4.22.tar.gz.
File metadata
- Download URL: enmem_client-0.4.22.tar.gz
- Upload date:
- Size: 173.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db2110bcdf16fd9644185584df0dd1c1e26609f40c45028f493dd9b3b273177b
|
|
| MD5 |
89e711f4d0f93371a18afc0c0066dabd
|
|
| BLAKE2b-256 |
8648dd6b74de21fcddee7fb1c4d96b80a82a7889679ae6f9d6a8fa8da61919c5
|
File details
Details for the file enmem_client-0.4.22-py3-none-any.whl.
File metadata
- Download URL: enmem_client-0.4.22-py3-none-any.whl
- Upload date:
- Size: 202.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77a37aa2988819538ef950eeea82ad6d57350e8d319c335d6f8affcb8359b832
|
|
| MD5 |
b896a0f088c23d629732e3fc2d2c5f78
|
|
| BLAKE2b-256 |
bcb0a15b5558b9c03a8188a223c5f22e95e728a9b97e58ed3d091cba23deda89
|