Skip to main content

Fact0 SDK - audit log and execution telemetry for AI agents

Project description

fact0

Python SDK for Fact0 - tamper-evident audit logs and execution telemetry for AI agents.

pip install fact0-sdk
import fact0

client = fact0.Client(api_key="alk_live_...")

client.audit.log(
    actor={"id": "user_123", "type": "human"},
    action="document.delete",
    resource={"id": "doc_456", "type": "document"},
    outcome="success",
)

with client.telemetry.execution(agent_id="bot-1") as ex:
    with ex.span("tool.search", span_type="TOOL_CALL") as span:
        span.complete(output={"hits": 3})

Docs: docs.fact0.io

Legacy imports

import fact0  # deprecated shim → fact0
import auditlog    # deprecated shim → fact0.audit

Both emit DeprecationWarning on import.

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

fact0_sdk-1.0.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

fact0_sdk-1.0.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file fact0_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: fact0_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for fact0_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a4f0df6301722563004cc6abe75d6a689f94dc0de50645b5a79e39f1842385a2
MD5 0668ce73a9e9c6b6ca149d78b9fba8aa
BLAKE2b-256 bee79ef9c0f1c396764ba6635686f69f05149c896ec3d963f4b8fca4f12e09e5

See more details on using hashes here.

File details

Details for the file fact0_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fact0_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for fact0_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 473adaa7c69126f47841c07887bdb67121a92476dbb88cbbaebea844820b6eca
MD5 a2115b7ac736ebf9a815575ef0a33fb2
BLAKE2b-256 25b571d32053f89a69378550affb719c2e662273971cc86d703c37dd52d4d713

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