pub trait ClientElicitationHandler: Send + Sync {
// Required method
fn handle_elicitation_request<'life0, 'async_trait>(
&'life0 self,
request: ElicitationRequest,
) -> Pin<Box<dyn Future<Output = MCPResult<ElicitationResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: '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 = MCPResult<ElicitationResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_elicitation_request<'life0, 'async_trait>(
&'life0 self,
request: ElicitationRequest,
) -> Pin<Box<dyn Future<Output = MCPResult<ElicitationResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle an elicitation request from the server This method should present the request to the user and return their response