pub trait CallbackHandler: Send + Sync {
// Required method
fn on_event<'life0, 'async_trait>(
&'life0 self,
event: RunEvent,
) -> Pin<Box<dyn Future<Output = Result<(), SynapseError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Handler for lifecycle events during agent execution. Receives RunEvent notifications at each stage.