Class FunctionTool
java.lang.Object
com.google.adk.tools.BaseTool
com.google.adk.tools.FunctionTool
- Direct Known Subclasses:
LongRunningFunctionTool
FunctionTool implements a customized function calling tool.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionTool
static FunctionTool
Optional
<com.google.genai.types.FunctionDeclaration> Gets theFunctionDeclaration
representation of this tool.runAsync
(Map<String, Object> args, ToolContext toolContext) Calls a tool.Methods inherited from class com.google.adk.tools.BaseTool
description, longRunning, name, processLlmRequest
-
Constructor Details
-
FunctionTool
-
-
Method Details
-
create
-
create
-
declaration
Description copied from class:BaseTool
Gets theFunctionDeclaration
representation of this tool.- Overrides:
declaration
in classBaseTool
-
runAsync
-