Skip to main content

Drop-in tamper-evident audit callbacks for LangChain, LangGraph, CrewAI, AutoGen, PydanticAI. Streams events into the Ujex hash-chained audit ledger (IETF draft-sharif-agent-audit-trail-00).

Project description

ujex-compliance-callback (Python)

Drop-in tamper-evident audit callbacks for AI agent frameworks. Streams events into a Ujex hash-chained ledger that satisfies IETF draft-sharif-agent-audit-trail-00 (AAT) and ISO/IEC 42005:2025 evidence requirements.

Resolves LangChain RFC #35691.

Install

pip install ujex-compliance-callback

LangChain / LangGraph

from langchain_openai import ChatOpenAI
from ujex_compliance_callback import UjexComplianceClient, UjexLangChainCallback

client = UjexComplianceClient(
    endpoint="https://us-central1-axy-ujex.cloudfunctions.net",
    device_key=os.environ["UJEX_DEVICE_KEY"],
    agent_id="my-agent",
    agent_version="1.4.2",
)
handler = UjexLangChainCallback(client)

llm = ChatOpenAI(callbacks=[handler])

CrewAI

from crewai.events import event_bus
from ujex_compliance_callback import UjexComplianceClient, UjexCrewAICallback

cb = UjexCrewAICallback(UjexComplianceClient(...))
event_bus.on("agent_execution_started", cb.on_agent_execution_started)
event_bus.on("tool_usage_started",     cb.on_tool_usage_started)
event_bus.on("tool_usage_finished",    cb.on_tool_usage_finished)

Verify the chain offline

pip install ujex-audit-chain
python -m ujex_audit_chain verify bundle.zip   # also accepts an extracted dir or records.jsonl

License

Apache-2.0.

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

ujex_compliance_callback-0.1.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

ujex_compliance_callback-0.1.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file ujex_compliance_callback-0.1.1.tar.gz.

File metadata

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

File hashes

Hashes for ujex_compliance_callback-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dfe04d0f66eb5b79d1d8b17e58afdeb3b5ad62d7f66835845c4f7ad8806fb466
MD5 4c1a71f9ac75d4dddf1b50b37d93e35d
BLAKE2b-256 cc0cdfef31ec5fc97c397c268279090c588dfecdb9e631e74261021c82f90f3e

See more details on using hashes here.

File details

Details for the file ujex_compliance_callback-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ujex_compliance_callback-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a26130db39d8c83ce0ea960db73577d946fbddc1f9381a7030e1409e9ee093f0
MD5 cee01591d256c936b316e1af76b713b9
BLAKE2b-256 b3283b69282dae2eb75a429adc4b1fba7b0aedb402b00c3040448d38905a374e

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