Skip to main content

kazen-event-schema

PyPI Python 3.10+ License

Canonical KazenEvent schema shared across KazenAI services (orchestrator, FinOps, AgentLens, kazenai).

Install: PyPI · kazen-event-schema · Products: kazenai.com

python -m pip install kazen-event-schema

Published on PyPI as kazen-event-schema 0.6.1. Editable pip install -e ./kazen-event-schema remains available for workspace contributors.

Canonical event types

  • Model invocation: use model.call (not llm.call; legacy llm.call is normalized at ingest).
  • Human gates: gate.decision, human_gate, human.gate
  • FinOps: finops.trajectory, finops.circuit_breaker.opened, finops.pause, finops.resumed
  • Run lifecycle: run.started, run.completed, run.failed
from kazen_event_schema import KazenEvent, normalize_event_type, is_model_call

assert normalize_event_type("llm.call") == "model.call"
assert is_model_call("model.call")
Field Required Purpose
schema_version yes 1.0, 1.1, or 1.2
event_id yes UUID; idempotent ingest
ts_ms yes Unix ms timestamp
event_type yes Dotted lowercase (e.g. model.call)
org_id yes Tenant
workspace_id / project_id yes Workspace scope (alias: project_id → workspace)
run_id recommended Correlates all steps in a run
step_id recommended Step within run
parent_step_id optional Multi-agent tree
agent_role recommended planner, coder, brain, etc.
tokens / tokens_used optional Token count (synced if one set)
cost_usd optional Step cost
gate_decision optional proceed, rejected, retry_plan, …
gate_latency_s optional Human gate wait time
payload optional Tool names, model id, I/O refs

Service ports

See ../PORTS.md when working from a full KazenAI workspace checkout.

License

Apache License 2.0. See LICENSE and NOTICE.

Release files for kazen-event-schema 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kazen-event-schema 0.6.1
File Size Uploaded
kazen_event_schema-0.6.1.tar.gz 37.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kazen-event-schema 0.6.1
File Interpreter ABI Platform
kazen_event_schema-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 65.2 kB

Release files / kazen_event_schema-0.6.1.tar.gz

Download URL kazen_event_schema-0.6.1.tar.gz
Size 37.5 kB
Tags Source
SHA-256 checksum
How to use checksums
47e7bba26d9e2984320f269c9ca2e130fa1f066b582c6cda3842bd4bd5ceeee3
BLAKE2b-256 checksum
How to use checksums
75307bb6edc1dd162c2b394ee46b9c36f093d529314bc4fe55bd43e1050fc971
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / kazen_event_schema-0.6.1-py3-none-any.whl

Download URL kazen_event_schema-0.6.1-py3-none-any.whl
Size 27.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e49ae1e186143be23cacca937d451167be2b7f1983b8676a14a86893c2e40bb
BLAKE2b-256 checksum
How to use checksums
98936ccacfda7aec4ebbbb913c084bfd803e9a872ff530a084d81ec8cffe88f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files

0.6.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page