Skip to main content

McpSamplingProvider

Trait McpSamplingProvider 

Source
pub trait McpSamplingProvider: Send + Sync {
    // Required method
    fn create_message<'life0, 'life1, 'async_trait>(
        &'life0 self,
        server_id: &'life1 str,
        request: CreateMessageRequestParams,
    ) -> Pin<Box<dyn Future<Output = Result<CreateMessageResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Product-owned model service for server-initiated MCP sampling.

Required Methods§

Source

fn create_message<'life0, 'life1, 'async_trait>( &'life0 self, server_id: &'life1 str, request: CreateMessageRequestParams, ) -> Pin<Box<dyn Future<Output = Result<CreateMessageResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§