Skip to main content

dispatch_http

Function dispatch_http 

Source
pub fn dispatch_http(entry: &ToolEntry, argument: &str) -> ToolResult
Expand description

Execute an HTTP tool call.

  • entry: the tool’s registry entry (must have provider == “http”)
  • argument: the argument string from the use_tool step

Returns a ToolResult with the HTTP response body on success, or an error description on failure.