Module agentforge4j.runtime
Package com.agentforge4j.runtime.tool
package com.agentforge4j.runtime.tool
-
ClassesClassDescription
ToolCatalogthat delegates to theToolProviderResolver, so the advertised catalog and the resolver can never drift.DefaultToolExecutionService: the single chokepoint for tool invocation.In-memoryMutableIntegrationRepository(OSS default).In-memoryPendingToolInvocationStore(OSS default).The single OSSToolProviderResolver: it merges two tool sources into one capability index at construction (tool-load) time — the activeIntegrationDefinitions of anIntegrationRepository, each materialized into aToolProvidervia aToolProviderFactory; and pre-builtToolProviderinstances supplied directly — for example configuration-backed MCP providers supplied by the embedding application, or providers passed towithToolProviders.Secure-by-default OSSToolPolicy: allows in-process tools (the embedder's own registered code) and denies remote-network and local-process tools, which require an explicit trust decision (ToolPolicy.allowAll()or a custom policy).Dispatches aToolInvocationCommandthrough theToolExecutionServicechokepoint.The single routine that applies a successfulToolResulttoWorkflowState, used identically by the inline ALLOW path (ToolInvocationCommandHandler) and the approved-resume path (DefaultWorkflowRuntime#continueAfterToolApproval) so both produce the same state shape.