Skip to main content

dispatch

Function dispatch 

Source
pub fn dispatch(tool_name: &str, argument: &str) -> Option<ToolResult>
Expand description

Dispatch a tool call by name. Returns None if the tool is not a native executor AND is not a declared-but-unimplemented stdlib tool (those legacy names still fall through to the LLM — see dispatch_or_reject for the stricter contract the runtime uses at real call sites).