Class DefaultToolExecutionService

java.lang.Object
com.agentforge4j.runtime.tool.DefaultToolExecutionService
All Implemented Interfaces:
ToolExecutionService

public final class DefaultToolExecutionService extends Object implements ToolExecutionService
Default ToolExecutionService: the single chokepoint for tool invocation. It emits audit events, resolves the capability, validates arguments, evaluates policy, and invokes the provider under an authoritative hard timeout that the service owns regardless of provider behaviour. On approval it persists a PendingToolInvocation and resumes later via resume(java.lang.String, java.lang.String, com.agentforge4j.core.spi.tool.ApprovalDecision), never re-invoking the LLM.