Class ToolInvocationCommandHandler

java.lang.Object
com.agentforge4j.runtime.tool.ToolInvocationCommandHandler
All Implemented Interfaces:
CommandHandler<ToolInvocationCommand>

public final class ToolInvocationCommandHandler extends Object implements CommandHandler<ToolInvocationCommand>
Dispatches a ToolInvocationCommand through the ToolExecutionService chokepoint. On an allowed, executed call it writes the result into context via the shared ToolResultApplier and continues; on approval-pending it suspends the run in WorkflowStatus.AWAITING_TOOL_APPROVAL; on a policy denial or a failure (after the service's retries) it suspends in WorkflowStatus.AWAITING_TOOL_DECISION for an operator continue/retry decision (the service has already persisted the pending row and audited the outcome).