Skip to main content

Python client for the Acta verifiable-memory REST API

Project description

acta-sdk

Python client for Acta — verifiable, structured, portable agent memory built on a signed, per-tenant ledger. Stdlib-only (no required runtime dependencies); optional Ed25519 signing and a LangChain retriever.

Install

pip install acta-sdk
# optional extras:
pip install "acta-sdk[sign]"       # faster Ed25519 via `cryptography`
pip install "acta-sdk[langchain]"  # LangChain retriever adapter

Quickstart

from acta_sdk import ActaClient

o = ActaClient("http://127.0.0.1:8088", tenant="t1")
o.write_intent(owner="u1", goal="keep acme renewal on track",
               scope=["business"], priority=95)

bundle = o.read_context(task="draft acme renewal email", scope=["business"])
# bundle carries a state_root + aea_id — proof of exactly what context was used

With authentication enabled on the server, pass the account API key (the tenant is then taken from the key):

o = ActaClient("https://acta.example.com", api_key="acta_sk_…")

Signed writes (client-held trust root)

Construct with a signing key so each write is Ed25519-signed by your key, and bind it to your account so the server enforces it:

o = ActaClient(url, api_key="acta_sk_…", signing_key=my_seed)
o.set_authorship_key(o.authorship_public_hex)

LangChain

from acta_sdk.langchain import acta_retriever
retriever = acta_retriever(o, scope=["business"])
docs = retriever.invoke("draft the acme renewal email")
# each Document carries the bundle's aea_id + state_root, so retrieval stays auditable

License

MIT OR Apache-2.0

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

acta_sdk-1.0.0rc1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

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

acta_sdk-1.0.0rc1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file acta_sdk-1.0.0rc1.tar.gz.

File metadata

  • Download URL: acta_sdk-1.0.0rc1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for acta_sdk-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 740d0db5d8e2f72c798e937d98a06478f719669d9bd53ef596cc1e84f78f83c7
MD5 36cc38960a55d20e930e1fec9694f15b
BLAKE2b-256 91289cf6b4cbf0230369fe006201f44a2aa47aaf8f6cd1784bd9c1bac8a4d9c4

See more details on using hashes here.

File details

Details for the file acta_sdk-1.0.0rc1-py3-none-any.whl.

File metadata

  • Download URL: acta_sdk-1.0.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for acta_sdk-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 1eee3203f35d64dffbe30b5f1d0c1df9af20c333f48d2b396dcf6ed359dc924c
MD5 47562e57ee8d5290bcb9f8edaa66a4eb
BLAKE2b-256 c26bf8a9b23138060319d505fd93235ae28fee8f6c15fcdb53217ada6cd3764a

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