Trait BackendResolver
Source pub trait BackendResolver: Send + Sync {
// Required methods
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
tool_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Option<Arc<dyn ToolBackend>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_tool_schemas<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<ToolSchema>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn requires_approval(&self, tool_name: &str) -> Option<bool>;
}