Object AgenticToolSupport
-
- All Implemented Interfaces:
public class AgenticToolSupportShared support utilities for agentic tool implementations.
-
-
Field Summary
Fields Modifier and Type Field Description public final static AgenticToolSupportINSTANCE
-
Method Summary
Modifier and Type Method Description final Pair<AgentProcess, Tool.Result>getAgentProcessOrError(String toolName, Logger logger)Get the current AgentProcess or return an error result. final AgenticExecutionResultexecute(AgenticExecutionConfig config, AgentProcess agentProcess)Execute the agentic tool loop with the given configuration. final Tool.ResultcreateResult(String output, List<Object> artifacts)Convert artifacts to a Tool.Result. -
-
Method Detail
-
getAgentProcessOrError
final Pair<AgentProcess, Tool.Result> getAgentProcessOrError(String toolName, Logger logger)
Get the current AgentProcess or return an error result.
-
execute
final AgenticExecutionResult execute(AgenticExecutionConfig config, AgentProcess agentProcess)
Execute the agentic tool loop with the given configuration.
-
createResult
final Tool.Result createResult(String output, List<Object> artifacts)
Convert artifacts to a Tool.Result.
-
-
-
-