pub trait ToolRouterProvider: Send + Sync {
// Required method
fn get_tool_router<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Arc<ToolRouter>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Trait for types that can provide a ToolRouter.
Required Methods§
Sourcefn get_tool_router<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Arc<ToolRouter>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_tool_router<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Arc<ToolRouter>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get or build a tool router.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".