create_structured_tool

Function create_structured_tool 

Source
pub fn create_structured_tool<F>(
    name: impl Into<String>,
    description: impl Into<String>,
    args_schema: ArgsSchema,
    func: F,
) -> StructuredTool
where F: Fn(HashMap<String, Value>) -> Result<Value> + Send + Sync + 'static,
Expand description

Create a structured tool from a function.

This is useful for tools that take multiple typed arguments.