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§

source

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

source

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

source

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

source

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

source

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

source

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

Implementors§