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.

§Parameters

  • First argument: Runtime event that was just emitted.

§Returns

().

Aliased Type§

pub struct EventSubscriberFn { /* private fields */ }