pub trait MultiRoundToolHandler: Send + Sync {
// Required method
fn call<'life0, 'async_trait>(
&'life0 self,
call: MultiRoundToolCall,
) -> Pin<Box<dyn Future<Output = McpResult<OperationResult<ToolResult>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Handler for tools that may require MCP 2026 multi-round-trip input.
A handler returns OperationResult::Complete when execution is finished,
or OperationResult::InputRequired with client input requests and/or
opaque request state. The SDK rejects an input-required result on a legacy
connection.
Required Methods§
fn call<'life0, 'async_trait>(
&'life0 self,
call: MultiRoundToolCall,
) -> Pin<Box<dyn Future<Output = McpResult<OperationResult<ToolResult>>> + 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".