Sakshi SDK — register AI agents, witness their decisions, enforce their autonomy envelopes
Project description
sakshi-sdk
Register your AI agents and witness their decisions. Python SDK for the Sakshi governance platform.
pip install sakshi-sdk # imports as `sakshi`
from sakshi import SakshiClient
sakshi = SakshiClient("https://console.example.bank", api_key="...")
agent_id = sakshi.register(
"loan-decision-agent",
owner_name="Priya Sharma",
owner_email="priya@example.bank",
autonomy_tier="L2",
blast_radius={"customer_facing": True, "spend_limit_inr": 500_000},
)
with sakshi.witness(
agent_id,
context={"application_id": "4471", "retrieved": chunks},
model={"provider": "openai", "model": "gpt-5.2", "version": "2026-05"},
client_ref="app-4471", # idempotency key
) as w:
w.step("plan", goal="assess repayment capacity")
w.tool("bureau_pull", output=bureau_response)
w.human("async_review", "arun@example.bank", verdict="approved")
w.action(decision="approve", limit_inr=200_000)
Properties you can rely on:
- Fail-open by default — if the platform is unreachable, your agent keeps
running; records are buffered, retried, and dropped with a warning as the
last resort. Governance must never take production down. Use
fail_open=Falsefor synchronous capture that raises. - Failures are evidence — an exception inside a
witnessblock is captured as the decision outcome and re-raised. - PII-safe by design — Aadhaar/PAN/mobile and other Indian identifiers are detected and tokenized server-side at ingest, before storage or hashing.
register()is always synchronous: an unregistered agent should not run (RBI draft MRM guidance, para 21).
Call sakshi.flush() before shutdown in batch jobs; long-running services can
rely on the atexit hook.
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 sakshi_sdk-0.1.0.tar.gz.
File metadata
- Download URL: sakshi_sdk-0.1.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6841a5656f155c732c3075bf58e91d6965b3bc7fd1771b7dd86fc9615e7b35cb
|
|
| MD5 |
3a56558ba90b86c28cb6e4a07349ce14
|
|
| BLAKE2b-256 |
fdefde4c9eff8846aac82ecc03bc1bb7f8fea5f7d24cbb10f308d05bee5002f9
|
File details
Details for the file sakshi_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sakshi_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f3d661aaf7102bc1228ddec226a0864acebacf65a23cf6835d9ad71730e33f3
|
|
| MD5 |
dd8029c748c759a43bd6d7644e9834fd
|
|
| BLAKE2b-256 |
77edab6ce6969a60f380df7290f4f99949704ef9661688b384fb1fb99480aa61
|