pub trait ClientElicitationHandler: Send + Sync {
// Required method
fn handle_elicitation_request<'life0, 'async_trait>(
&'life0 self,
request: ElicitationRequest,
) -> Pin<Box<dyn Future<Output = Result<ElicitationResponse, MCPError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Client-side elicitation handler trait
Required Methods§
Sourcefn handle_elicitation_request<'life0, 'async_trait>(
&'life0 self,
request: ElicitationRequest,
) -> Pin<Box<dyn Future<Output = Result<ElicitationResponse, MCPError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn handle_elicitation_request<'life0, 'async_trait>(
&'life0 self,
request: ElicitationRequest,
) -> Pin<Box<dyn Future<Output = Result<ElicitationResponse, MCPError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Handle an elicitation request from the server This method should present the request to the user and return their response