create_simple_tool

Function create_simple_tool 

Source
pub fn create_simple_tool(
    name: impl Into<String>,
    description: impl Into<String>,
    return_value: Value,
) -> ToolFn<Box<dyn Fn(Value, Arc<ToolContext>) -> Pin<Box<dyn Future<Output = Result<Value>> + Send>> + Send + Sync>>
Expand description

创建一个简单的工具,只返回固定值