pub async fn dispatch_tool_invocations_with_hooks(
tools: &ToolRegistry,
invocations: &[ToolInvocation],
hooks: &[&dyn ToolDispatchHook],
) -> Result<Vec<ToolInvocationResult>, KernelError>Expand description
Dispatch normalized tool invocations with policy/accounting hooks.
Hooks run in the order provided. A skip result still triggers every hook’s
ToolDispatchHook::after_invocation callback so audit hooks can record
synthetic outcomes. A terminate action stops dispatch before the tool is
invoked and returns KernelError::ToolDispatchTerminated.