ToolInvoker typedef
Invokes a registry tool by canonical name ("$namespace.$toolName").
The kernel hands one of these to StatefulAgent.runStream so every tool
call made by the delegated loop passes through the kernel's
AgentHook.beforeToolCall/AgentHook.afterToolCall policy chain
(FR-010).
Implementation
typedef ToolInvoker =
Future<Object?> Function(String canonicalName, Map<String, Object?> args);