Skip to main content

Module events

Module events 

Source
Expand description

Event types for the managed agent runtime.

Defines UserEvent (client → agent) and SessionEvent (agent → client), conforming to CANON §3.4 wire shapes. Both enums are #[non_exhaustive] for forward-compatible additive evolution.

Enums§

ConfirmationResult
Result of a tool confirmation request.
SessionEvent
Agent-to-client event. Each carries a monotonic seq per session.
StopReason
Why a turn ended. Included in status.idle events.
UserEvent
Client-to-agent event. Discriminated by type field for wire serialization.