Skip to main content

ToolHandler

Type Alias ToolHandler 

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

Handler signature: takes (state, params) and returns a tool result.

Aliased Typeยง

pub struct ToolHandler { /* private fields */ }