Skip to main content

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.

  1. Authentication: Ensure GOOGLE_APPLICATION_CREDENTIALS is set or you are authenticated via gcloud auth application-default login.
  2. Permissions: The service account requires storage.objects.create and storage.objects.get permissions on the target bucket.
  3. 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-audit and bandit.

See SECURITY.md for vulnerability disclosure.

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

agent_memory_hub-0.1.0.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agent_memory_hub-0.1.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file agent_memory_hub-0.1.0.tar.gz.

File metadata

  • Download URL: agent_memory_hub-0.1.0.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agent_memory_hub-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c64952ff4e4d29352cb5b5552f0a373214d8ab2f587625e1084b8cdfc8197dfc
MD5 6636945a63f4627c32bd695599f5ed23
BLAKE2b-256 2b6a6a625997420084d620c94d29c546ec3529fd1cfa8f5c5430f1b9765d9bb4

See more details on using hashes here.

File details

Details for the file agent_memory_hub-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_memory_hub-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ec95594b85b6f26d4c7805cad6a6191fd6f2b02b300495442b2be1fe50f25b8
MD5 948aee50c2638b4b0cb31bb32231be2c
BLAKE2b-256 cd53d9d14eaa4ab6ef887a16fe1fcbccb4555f51aa0437b5ce7bead7fa58faab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page