pub trait AsyncToolRunner: Send + Sync {
// Required method
fn block_on_tool<R: ToolOutput>(
&self,
future: Pin<Box<dyn Future<Output = ToolResult<R>> + Send>>,
) -> ToolResult<R>;
}Expand description
Host-provided runner for async typed handlers while core execution remains sync.
Required Methods§
Sourcefn block_on_tool<R: ToolOutput>(
&self,
future: Pin<Box<dyn Future<Output = ToolResult<R>> + Send>>,
) -> ToolResult<R>
fn block_on_tool<R: ToolOutput>( &self, future: Pin<Box<dyn Future<Output = ToolResult<R>> + Send>>, ) -> ToolResult<R>
Drives an async typed tool future to completion.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".