Skip to main content

ElicitationHandler

Trait ElicitationHandler 

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

Handles MCP -32042 UrlElicitationRequired by asking the host.

Required Methods§

Source

fn elicit<'life0, 'async_trait>( &'life0 self, request: ElicitationRequest, ) -> Pin<Box<dyn Future<Output = Option<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§