Skip to main content

Persistent memory for AI agents. Thin client for relay.goldhold.ai.

Project description

GoldHold Python SDK

Persistent memory for AI agents. Install, connect, remember.

pip install goldhold

Quickstart

from goldhold import GoldHold

gh = GoldHold(api_key="your-key")

# Store a memory
gh.store("User prefers dark mode", "Stated explicitly on March 9", type="FACT")

# Search memories
results = gh.search("user preferences")

# Compound turn -- search + store in one call
resp = gh.turn(
    search={"query": "project status"},
    store={"subject": "Deploy complete", "body": "v2 shipped", "type": "DECISION"},
)

# Session resume
auto = gh.auto(context_budget=2000)

# Check status
status = gh.status()
print(f"{status.namespace}: {status.total_vectors} vectors")

Setup

GoldHold.setup()  # interactive -- prints signup URL, saves key to ~/.goldhold/config.json

Or set GOLDHOLD_API_KEY in your environment.

API

Method What it does
store(subject, body, type, confidence) Store a memory packet
search(query, limit, filters) Semantic search
turn(search, store, send, compact) Compound: search + store + send in one call
auto(context_budget) Session resume with capability card
batch(operations) Multiple operations in one request
close(session_summary) Graceful session close
status() Namespace info, vector count, agent trust
setup() Interactive CLI setup

Tiers

Lite (free) Vault Pro ($9/mo)
Vectors 1,000 Unlimited
Agents 1 Unlimited
Namespaces 1 Unlimited
Tasks 10 Unlimited
Messages 50/month Unlimited

Sign up at goldhold.ai/account.

Error Handling

from goldhold.exceptions import AuthError, RateLimitError, VectorLimitError

try:
    gh.store("test", "test")
except VectorLimitError:
    print("Upgrade to Vault Pro for unlimited vectors")
except AuthError:
    print("Bad API key")
except RateLimitError:
    print("Slow down")

Patent Pending. All Auto Tunes LLC. U.S. Patent Application #63/988,484.

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

goldhold-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

goldhold-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for goldhold-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b9d469a24c0b9a678017c20167fd4b071ee8470adeb08c3e7ae4dbc0ee25e280
MD5 97a7048258e98ed2bd016e0405ea8f8b
BLAKE2b-256 962145099382687d288f9891f98426ea942d88a1ae0aef8d02bf1eb0d50026ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: goldhold-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for goldhold-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c472ac316c95d0eb8dbce99d30a5b964996944a20c1fc230fdaaa4fdda04969
MD5 875ac720cf1c7879ac2d1798dd8000ea
BLAKE2b-256 0b28c2fed36ee41623e5388473f172046df241c8e792c5bcc86524961618abf4

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