Function call_tool

Source
fn call_tool(
    name: &str,
    args: Value,
    tx: &Sender<ToolCall>,
    ctx: &Context,
) -> Result<Value, String>
Expand description

Forward one tool call to the UI thread and wait for the reply.