Enterprise-grade agent memory management solution with region governance.
Project description
Agent Memory Hub
Enterprise-grade agent memory management solution with region governance.
agent-memory-hub provides a standardized, secure, and compliant way for AI agents to store and recall memories. It enforces region residency requirements (data sovereignty) and provides a clean abstraction over storage backends, defaulting to Google Cloud.
Features
- Session-based Memory: Isolate memory by agent and session ID.
- Region Governance: Enforce data residency (e.g.,
us-central1,europe-west1). - Backend Agnostic: Adapter pattern supports multiple backends (Default: Google ADK/GCS).
- Enterprise Security: No hardcoded secrets, strictly typed, and compliance-ready.
Installation
pip install agent-memory-hub
Quick Start
from agent_memory_hub import MemoryClient
# Initialize the client with strict region requirements
memory = MemoryClient(
agent_id="travel_agent",
session_id="sess_001",
region="asia-south1",
region_restricted=True
)
# Store a memory (will fail if backend is not in asia-south1)
memory.write("User prefers vegetarian food", "episodic")
# Recall memory
print(memory.recall("episodic"))
Region Governance
This SDK is designed for global deployments where data sovereignty is critical.
When region_restricted=True is set, the SDK performs a handshake with the control plane to verify that the underlying storage is physically located in the requested region before writing any data.
GCP Prerequisites
By default, this package uses Google Cloud Storage as the backing store.
- Authentication: Ensure
GOOGLE_APPLICATION_CREDENTIALSis set or you are authenticated viagcloud auth application-default login. - Permissions: The service account requires
storage.objects.createandstorage.objects.getpermissions on the target bucket. - Buckets: Buckets should be named following the convention
memory-hub-{region}-{environment}(e.g.,memory-hub-asia-south1-prod).
Security & Compliance
- No Secrets: This library does not handle secrets directly. Use IAM roles.
- Dependency Pinning: All dependencies are pinned to secure versions.
- Audit: Compatible with
pip-auditandbandit.
Roadmap & Contributing
We have a detailed feature roadmap including Observability, AWS support, and Vector Search. Check out ROADMAP.md to see what's planned and how you can contribute!
See SECURITY.md for vulnerability disclosure.
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
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 agent_memory_hub-0.2.0.tar.gz.
File metadata
- Download URL: agent_memory_hub-0.2.0.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e00d14ff1c24522cc02a7d515505d9fbbe88dcf6196c236f626e9e0cef8e09c5
|
|
| MD5 |
c9516abddb7bb2cdd8e90b3e06b9b131
|
|
| BLAKE2b-256 |
674eac465792c94283da2942e31372c52a5d8ef655306dbb3080a9412173872b
|
File details
Details for the file agent_memory_hub-0.2.0-py3-none-any.whl.
File metadata
- Download URL: agent_memory_hub-0.2.0-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2be9bda9ba1ce6e5785ae944a4bfe2006ebd1674a8da04d392aa1e2fd5adcb2
|
|
| MD5 |
f62195da9f8c2b8293ce8a6d730edb86
|
|
| BLAKE2b-256 |
6e03f76b179e7a86223787855d08d5a9b2789aff992c4bb4a0b5ce0aa59056a9
|