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
ConstructorsModifierConstructorDescriptionprotectedFunctionTool(Object instance, Method func, boolean isLongRunning) -
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionToolstatic FunctionToolstatic FunctionToolstatic FunctionToolOptional<com.google.genai.types.FunctionDeclaration> Gets theFunctionDeclarationrepresentation 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
-
create
-
create
-
declaration
Description copied from class:BaseToolGets theFunctionDeclarationrepresentation of this tool.- Overrides:
declarationin classBaseTool
-
runAsync
-