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.0.tar.gz (1.8 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.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dae_client-0.1.0.tar.gz
  • Upload date:
  • Size: 1.8 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.0.tar.gz
Algorithm Hash digest
SHA256 654354e9fab30f5f3cac733f00d7add5f9c0a5300ab427850a1f955fe0a0a506
MD5 765a94e91fa7b7158a875a6f3499e35f
BLAKE2b-256 56895b6ed58a8d608699e0bfc45ff2817011e2910d119151548eb4b14a621000

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dae_client-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0aaec4633f8aacc24b1a9504f4496958f2049b3113dda7405fb8caa49ee7d39
MD5 ccd91c3b7481a2a283382b8cfacebedc
BLAKE2b-256 969b4dc221d1bf7ec2d6fb792a0369d5b93f7ebafe906335656af3aaf1630420

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