Skip to main content

Decision Audit Engine — Python SDK for AI agent audit trails

Project description

DAE Client — Python SDK for Decision Audit Engine

Log, query, and verify AI agent decisions with cryptographic audit trails.

from dae_client import DAE

# Auto-configure from env vars (DAE_API_URL, DAE_API_KEY)
client = DAE.from_env()

# Log a decision
client.log("my-agent",
    input={"query": "approve loan"},
    output={"decision": "approved", "amount": 50000},
    confidence=0.95,
)

# Check system health
print(client.health())

# Verify hash chain integrity
print(client.verify())

# Get CSD early-warning diagnosis
print(client.csd("my-agent"))

# Or use the decorator
@client.log_decorator(agent_id="my-agent")
def critical_func(x):
    return x * 2

Installation

pip install dae-client

Features

  • Full API coverage: health, log, query, csd, kdi, verify, audit, pii
  • Auto-retry (3x) + circuit breaker
  • Decorator for zero-friction agent logging
  • Typed response dataclasses with all fields
  • from_env() for zero-config setup

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

dae_client-0.1.2.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

dae_client-0.1.2-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file dae_client-0.1.2.tar.gz.

File metadata

  • Download URL: dae_client-0.1.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for dae_client-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8f4df814cad2fcfc8f3b36cc9a5e2dc5d7a59aa7ad936c7836ebd1b65b6bf046
MD5 44f99bb152d721a6aad4b4e5f09b232a
BLAKE2b-256 d8ffe77cf1fcafefe7d81e6e36f289e5affa78f0e24dadede0e80337d9bda672

See more details on using hashes here.

File details

Details for the file dae_client-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: dae_client-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for dae_client-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7d82c127487e7dc55fcbf9a2ab812fcf082b8e2561039c47af96f3619b59c93f
MD5 54d975c6a332da1e4a241984c667242a
BLAKE2b-256 56aa394cc06b30e8378eccbf8ae16573d5f557ae7da17471526469904e803661

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