Skip to main content

ToolFunc

Type Alias ToolFunc 

Source
pub type ToolFunc = Arc<dyn Fn(Value) -> Pin<Box<dyn Future<Output = Result<Value, PeError>> + Send>> + Send + Sync>;
Expand description

Type alias for the async function signature used by FunctionTool.

Aliased Type§

pub struct ToolFunc { /* private fields */ }