Skip to main content

OnStreamEvent

Type Alias OnStreamEvent 

Source
pub type OnStreamEvent = Arc<dyn Fn(&StreamEvent) + Send + Sync>;
Expand description

Callback invoked for every raw provider StreamEvent.

This gives SDK consumers direct access to the low-level streaming protocol before events are wrapped into AgentEvent::MessageUpdate.

Aliased Typeยง

pub struct OnStreamEvent { /* private fields */ }