orka.cli.types module

CLI Type Definitions

This module contains type definitions used throughout the OrKa CLI system. These types provide structure and validation for orchestration events and data.

class orka.cli.types.EventPayload[source]

Bases: TypedDict

📊 Event payload structure - standardized data format for orchestration events.

Purpose: Provides consistent structure for all events flowing through OrKa workflows, enabling reliable monitoring, debugging, and analytics across complex AI systems.

Fields: - message: Human-readable description of what happened - status: Machine-readable status for automated processing - data: Rich structured data for detailed analysis and debugging

message: str
status: str
data: Dict[str, Any] | None
class orka.cli.types.Event[source]

Bases: TypedDict

🎯 Complete event record - comprehensive tracking of orchestration activities.

Purpose: Captures complete context for every action in your AI workflow, providing full traceability and enabling sophisticated monitoring and debugging.

Event Lifecycle: 1. Creation: Agent generates event with rich context 2. Processing: Event flows through orchestration pipeline 3. Storage: Event persisted to memory for future analysis 4. Analysis: Event used for monitoring, debugging, and optimization

Fields: - agent_id: Which agent generated this event - event_type: What type of action occurred - timestamp: Precise timing for performance analysis - payload: Rich event data with status and context - run_id: Links events across a single workflow execution - step: Sequential ordering within the workflow

agent_id: str
event_type: str
timestamp: str
payload: EventPayload
run_id: str | None
step: int | None