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.2. 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.

Metadata

Release files for kazen-event-schema 0.6.2

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.2
File Size Uploaded
kazen_event_schema-0.6.2.tar.gz 37.9 kB Details

Built distribution (wheel)

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

Total release size: 65.9 kB

Release files / kazen_event_schema-0.6.2.tar.gz

Download URL kazen_event_schema-0.6.2.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4981061e06486ff1cb09a5ce1a1ead8586428698c789666a6807ed1155fe4740
BLAKE2b-256 checksum
How to use checksums
a537c8e1319ac758dc736858dbccae633c8af2dcb7433ba245f9ae9d9a344c9d
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 28, 2026.

Transparency log

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

Download URL kazen_event_schema-0.6.2-py3-none-any.whl
Size 27.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d333c966eb761ac1b56fbb60022d4430e238365cd8a64b841263a4483dad41d
BLAKE2b-256 checksum
How to use checksums
ce708be64b9068a46cd8b661b56ffcdd76b411b7a4d068b94a783b819005ec68
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 28, 2026.

Transparency log

Release history Release notifications | RSS feed

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

This release

0.6.2 This release

2 release files

0.6.1

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