Skip to main content

Module event_channel

Module event_channel 

Source
Expand description

Bidirectional HTTP event channel for the agent session.

The channel runs an embedded HTTP server that provides two endpoints:

  • POST /inject — External callers push events into the agent context. The event payload is injected as a system message into the conversation.
  • GET /events — External callers subscribe to the agent’s TurnEvent stream via Server-Sent Events (SSE).

Topics use glob patterns for subscription matching (e.g. "github.*", "ci.*", "*").

Structs§

EventChannel
A running bidirectional HTTP event channel.
EventChannelConfig
Top-level configuration for the embedded HTTP event channel.
ExternalEvent
An event pushed from outside into the agent session.
Subscription
A single topic subscription pattern.