Skip to main content

ToolCallable

Type Alias ToolCallable 

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

A callable tool function: takes JSON arguments, returns a string.

Aliased Typeยง

pub struct ToolCallable(/* private fields */);