Skip to main content

Module event_protocol

Module event_protocol 

Source
Expand description

Versioned wire protocol for AgentEvent.

AgentEvent is the runtime enum. EventEnvelopeV1 is its stable, language-neutral representation. SDKs consume the envelope instead of maintaining their own event-name matches, so a new runtime event cannot be silently projected as unknown.

Structs§

AgentEventProjectionV1
SDK-facing projection of an envelope.
AgentEventTypeV1
Canonical event type names for event envelope version 1.
EventEnvelopeV1
Stable, versioned event representation shared by every SDK.

Enums§

EventProtocolError
Errors produced while converting a runtime event to the stable wire shape.

Constants§

AGENT_EVENT_TYPES_V1
Complete, ordered set of event type names supported by envelope v1.
EVENT_ENVELOPE_V1_VERSION
Wire version carried by EventEnvelopeV1.

Functions§

run_event_envelope_v1
Convert a persisted run event into the same v1 envelope used by live SDK streams, attaching replay position and correlation metadata.