Trait sapiens::RuntimeObserver
source · pub trait RuntimeObserver: Send {
// Provided methods
fn on_task<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_task: &'life1 str
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn on_start<'life0, 'async_trait>(
&'life0 mut self,
_context: ContextDump
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_model_update<'life0, 'async_trait>(
&'life0 mut self,
_event: ModelNotification
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_message<'life0, 'async_trait>(
&'life0 mut self,
_event: MessageNotification
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_invocation_result<'life0, 'async_trait>(
&'life0 mut self,
_event: InvocationResultNotification
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn on_termination<'life0, 'async_trait>(
&'life0 mut self,
_event: TerminationNotification
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Observer for the step progresses
Provided Methods§
sourcefn on_task<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_task: &'life1 str
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_task<'life0, 'life1, 'async_trait>( &'life0 mut self, _task: &'life1 str ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Called when the task is submitted
sourcefn on_start<'life0, 'async_trait>(
&'life0 mut self,
_context: ContextDump
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_start<'life0, 'async_trait>( &'life0 mut self, _context: ContextDump ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Called on start
sourcefn on_model_update<'life0, 'async_trait>(
&'life0 mut self,
_event: ModelNotification
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_model_update<'life0, 'async_trait>( &'life0 mut self, _event: ModelNotification ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Called when the model returns something
sourcefn on_message<'life0, 'async_trait>(
&'life0 mut self,
_event: MessageNotification
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_message<'life0, 'async_trait>( &'life0 mut self, _event: MessageNotification ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Called when the scheduler has selected a message
sourcefn on_invocation_result<'life0, 'async_trait>(
&'life0 mut self,
_event: InvocationResultNotification
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_invocation_result<'life0, 'async_trait>( &'life0 mut self, _event: InvocationResultNotification ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Called when the tool invocation was successful
sourcefn on_termination<'life0, 'async_trait>(
&'life0 mut self,
_event: TerminationNotification
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_termination<'life0, 'async_trait>( &'life0 mut self, _event: TerminationNotification ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Called when the task is done