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_sdk-0.1.0.tar.gz (55.6 kB view details)

Uploaded Source

Built Distribution

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

causalor_sdk-0.1.0-py3-none-any.whl (58.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for causalor_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3f34ac4c61bf098825e662daead68839fec32ea5fa64db1d0e7c25e94c5a285c
MD5 a1dd11e5da9e7d64a767f6e98502d73a
BLAKE2b-256 8ea113737da2ef766435bdaf962927366f112a5b347a0e4df12efff5fadfe636

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for causalor_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f439e4731a4a88222edcdd37eff8f54212a1a8d6b2720f0fe62063fe58d18718
MD5 cc58dac3899dcb3bde0f62072dd0bf80
BLAKE2b-256 b84e2f271b149f5315ae70c62bbe8dd5f3d07ec9c5a8a2c64d4cfd5dfccc64b4

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