Skip to main content

EventSubscriberFn

Type Alias EventSubscriberFn 

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

Consume runtime lifecycle events after they are emitted.

Event subscribers are invoked for scope, tool, LLM, and mark events after the runtime has built the final event payload.

Aliased Typeยง

pub struct EventSubscriberFn { /* private fields */ }