pub async fn run_tool_call(
scope: &ToolCallScope<'_>,
call: ToolCall,
hooks: &dyn AgentHooks,
updates: UpdateSink,
) -> ToolCallOutcomeExpand description
Runs one call outside the loop’s batches, as pi’s runToolCall does: it
prepares and validates the call, passes it through the hooks and executes
it in scope.
Failures come back as error results. Emits no events: updates receives
the tool’s partial results.