Skip to main content

dispatch_tool_invocations

Function dispatch_tool_invocations 

Source
pub async fn dispatch_tool_invocations(
    tools: &ToolRegistry,
    invocations: &[ToolInvocation],
) -> Result<Vec<ToolInvocationResult>, KernelError>
Expand description

Dispatch normalized tool invocations sequentially through a ToolRegistry.

Sequential dispatch preserves model-emitted call order and avoids adding a runtime-specific concurrency policy to the kernel. Callers that know their tools are independent can still dispatch invocations concurrently by using ToolInvocation::dispatch directly.