pub async fn dispatch_tool_invocations_with_hooks_bounded(
tools: &ToolRegistry,
invocations: &[ToolInvocation],
hooks: &[&dyn ToolDispatchHook],
config: &ToolResultEnvelopeConfig,
) -> Result<Vec<BoundedToolInvocationResult>, KernelError>Expand description
Dispatch normalized tool invocations with hooks and bound every result.
Hooks observe the raw ToolInvocationResult before bounding so accounting
and audit layers can decide whether they need full output. The returned
value is the bounded, model-visible projection.