Skip to main content

kazen-event-schema

Local package Python 3.10+ LLM calls guarded

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

Quickstart: kazenai.com/onboarding

pip install -e ./kazen-event-schema

Publishing status: this workspace version is not yet published on PyPI. Use the local editable install above until the package release workflow is moved into a real repo and run.

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.

License

Apache License 2.0. See LICENSE and NOTICE.

Release files for kazen-event-schema 0.6.0

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.0
File Size Uploaded
kazen_event_schema-0.6.0.tar.gz 37.6 kB Details

Built distribution (wheel)

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

Total release size: 65.5 kB

Release files / kazen_event_schema-0.6.0.tar.gz

Download URL kazen_event_schema-0.6.0.tar.gz
Size 37.6 kB
Tags Source
SHA-256 checksum
How to use checksums
01c183ff4dcc681126d2a9312766a873c0cb26da788792eb6f8f83df183947a0
BLAKE2b-256 checksum
How to use checksums
80bfb603432227156485c68722185ca9299f4f8f3e80b2e4e2a84c8b758e80f3
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 18, 2026.

Transparency log

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

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

Transparency log

Release history Release notifications | RSS feed

0.6.1

2 release files

This release

0.6.0 This release

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