Skip to main content

hmg

Version License Python

Python SDK for the HMG agent memory system.

Install

pip install hmg-sdk

Quick Start

from hmg import HMGClient

client = HMGClient(base_url="http://localhost:8080")

# Store a decision
client.memorize(
    content="We chose PostgreSQL for the main database",
    source="architecture-review",
    modality="text",
)

# Recall it later
result = client.recall(query="database choice")
for atom in result.atoms:
    print(f"[{atom.score:.2f}] {atom.text}")

# Correct when it changes
client.correct(
    atom_id=atom.id,
    action="replace",
    reason="Migrated to CockroachDB",
    new_content="We migrated to CockroachDB for horizontal scale",
)

API Surface

Method Description
client.memorize(...) Store a memory atom
client.recall(...) Recall memories by query
client.correct(...) Correct a memory atom
client.govern(...) Govern a memory atom's visibility
client.handoff(...) Store a cross-session handoff
client.agent_brief(...) Get session-start context
client.history(...) Get correction/governance history
client.stats() Get memory store statistics

Requirements

  • Python 3.9+
  • HMG daemon running (hmg daemon start)

License

Apache-2.0

Metadata

Release files for hmg-sdk 1.6.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hmg-sdk 1.6.6
File Size Uploaded Provenance
hmg_sdk-1.6.6.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hmg-sdk 1.6.6
File Interpreter ABI Platform
hmg_sdk-1.6.6-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / hmg_sdk-1.6.6.tar.gz

Download URL hmg_sdk-1.6.6.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8c264e3fd0a5bfb95a002053981084fe2af49899d108ee7c006b8b87c40dfe93
BLAKE2b-256 checksum
How to use checksums
afc4de841d2efbaed6b76ee06ef66423d2f4fbd48930c016eae06fc3baf57641
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / hmg_sdk-1.6.6-py3-none-any.whl

Download URL hmg_sdk-1.6.6-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02dd0d4e872786143adefccca2666939d952929888d1c4b99e7b82d7e68fd67a
BLAKE2b-256 checksum
How to use checksums
dac96fed491cb537f3c7fc9b18a19dd61031a8dad2e98b89dffb4a72542c972f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Security for hmg-sdk 1.6.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page