Class AgentTool
java.lang.Object
com.google.adk.tools.BaseTool
com.google.adk.tools.AgentTool
- Direct Known Subclasses:
GoogleSearchAgentTool, VertexAiSearchAgentTool
AgentTool implements a tool that allows an agent to call another agent.
-
Nested Class Summary
Nested classes/interfaces inherited from class BaseTool
BaseTool.ToolArgsConfig, BaseTool.ToolConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AgentToolstatic AgentToolOptional<com.google.genai.types.FunctionDeclaration> Gets theFunctionDeclarationrepresentation of this tool.static BaseToolfromConfig(BaseTool.ToolArgsConfig args, String configAbsPath) runAsync(Map<String, Object> args, ToolContext toolContext) Calls a tool.Methods inherited from class BaseTool
customMetadata, description, fromConfig, longRunning, name, processLlmRequest, setCustomMetadata
-
Constructor Details
-
AgentTool
-
-
Method Details
-
fromConfig
public static BaseTool fromConfig(BaseTool.ToolArgsConfig args, String configAbsPath) throws ConfigAgentUtils.ConfigurationException -
create
-
create
-
declaration
Description copied from class:BaseToolGets theFunctionDeclarationrepresentation of this tool.- Overrides:
declarationin classBaseTool
-
runAsync
-