Skip to main content

Python client for the Oracle verifiable-memory REST API

Project description

oracle-sdk

Python client for Oracle — 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 oracle-sdk
# optional extras:
pip install "oracle-sdk[sign]"       # faster Ed25519 via `cryptography`
pip install "oracle-sdk[langchain]"  # LangChain retriever adapter

Quickstart

from oracle_sdk import OracleClient

o = OracleClient("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 = OracleClient("https://oracle.example.com", api_key="oracle_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 = OracleClient(url, api_key="oracle_sk_…", signing_key=my_seed)
o.set_authorship_key(o.authorship_public_hex)

LangChain

from oracle_sdk.langchain import oracle_retriever
retriever = oracle_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

oracle_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.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: oracle_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 oracle_sdk-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 2ff5e35cfe08225d8a630e89f543683650a92bee9afcffaf016482713c37f4f3
MD5 5d0a22083999ea23fdc4b4bb261c180c
BLAKE2b-256 a3221990f3de991b2469d341ee48b662b34268882211659435576a6ded2870eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oracle_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 oracle_sdk-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7fb3f53a5d1d023192881cc1972f93875bab3b5c7b25c309eb1b3bb45c8790f
MD5 ea9e046205762c85ec94d2a0e7758bc8
BLAKE2b-256 6dd774713b9af60abfbb7929d08017294763ae2c62f17808fe53b8b954f115ca

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