Skip to main content

Causalor SDK — deterministic, proof-backed governance for AI agents (in-process CAE).

Project description

Causalor SDK

Standard Python SDK for the hosted or self-hosted Causalor control plane.

Install

pip install causalor-sdk

For release steps and trusted publishing setup, see SDK_RELEASE.md.

For a local pre-PyPI install and a live test-agent run against the deployed Azure control plane:

bash scripts/sdk/install-local.sh
export CAUSALOR_TEST_API_URL=http://<bridge-host>:9001
export CAUSALOR_TEST_API_KEY=<api-key>
bash scripts/sdk/run-test-agent.sh

Quick Start

from causalor import Causalor

sdk = Causalor.init({
    "apiUrl": "https://api.causalor.io",
    "apiKey": "cal_xxx",
    "agentId": "agent-123",
    "tenantId": "default",
})

sdk.sendEvent({
    "user_id": "u1",
    "semantic_type": "ACTION",
    "content": "Approved loan for 185000",
})

Standard Methods

  • init({ apiUrl, apiKey, agentId, tenantId? })
  • sendEvent(event)
  • sendEvents(events[])
  • getRepair(userId)
  • ackRepair(userId, repairId, success, feedback?)
  • registerAgent(metadata)
  • startSession(userId, metadata?)
  • heartbeat(sessionId, metadata?)
  • endSession(sessionId, outcome?)
  • preCommit(action, state, policyId?)

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

causalor-0.2.0.tar.gz (57.4 kB view details)

Uploaded Source

Built Distribution

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

causalor-0.2.0-py3-none-any.whl (59.9 kB view details)

Uploaded Python 3

File details

Details for the file causalor-0.2.0.tar.gz.

File metadata

  • Download URL: causalor-0.2.0.tar.gz
  • Upload date:
  • Size: 57.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for causalor-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e9ba6bb72eac534fcbfd55fabedc0b4d317089fd9ded0944cd226fa5755e5464
MD5 062a98aad743d49816fc91a92b8e90fa
BLAKE2b-256 914689e8abb577faffc76120e925e444d28fb4fff5faae949cc081067e9c9b28

See more details on using hashes here.

File details

Details for the file causalor-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: causalor-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 59.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for causalor-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ca879e99f71343e550e4e764d720b267239fa6cd7fb846ff4d658ac3f9a2d38
MD5 b915b90a1a27025a6263665d04051b5b
BLAKE2b-256 2076f7e6c418506a0c2758cc1871f33881cdc6d4c91fc865f38663d1f7e752c2

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