Skip to main content

QuestionHandler

Trait QuestionHandler 

Source
pub trait QuestionHandler: Send + Sync {
    // Required method
    fn ask_question<'life0, 'async_trait>(
        &'life0 self,
        request: QuestionRequest,
    ) -> Pin<Box<dyn Future<Output = QuestionResponse> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Host bridge for asking preference or clarification questions.

Required Methods§

Source

fn ask_question<'life0, 'async_trait>( &'life0 self, request: QuestionRequest, ) -> Pin<Box<dyn Future<Output = QuestionResponse> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Ask a structured question and return a bounded answer.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§