Skip to main content

WebToolHandler

Type Alias WebToolHandler 

Source
pub type WebToolHandler = Arc<dyn Fn(String, Map<String, Value>) -> BoxFuture<'static, Result<String>> + Send + Sync>;
Expand description

What a host runs for a web-tool-call: the tool’s name and parameters in, its result out.

Aliased Type§

pub struct WebToolHandler { /* private fields */ }