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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file causalor_sdk-0.2.0.tar.gz.
File metadata
- Download URL: causalor_sdk-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9840369b5141620e4afe65a42b99f535566a771edba15d4daccf79ced54ff878
|
|
| MD5 |
cb00994dbc885d804832daa72d032beb
|
|
| BLAKE2b-256 |
e2249579b8f4a4277574bb03a5ca47081132d37f0ff342529162cd073dde762f
|
File details
Details for the file causalor_sdk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: causalor_sdk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 60.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47241ac1a89a554b3e4768f079831173ebf3e923c6aff385efb8cd3ed278f19e
|
|
| MD5 |
aa30035733cf337db9ab1af1dbb66bc1
|
|
| BLAKE2b-256 |
f90572f61758e3e7b8c0c6cdc0e985160e687aac7add53c0dea94c64ba01faca
|