Uses of Class
com.google.adk.tools.BaseTool
Packages that use BaseTool
Package
Description
-
Uses of BaseTool in com.google.adk.agents
Methods in com.google.adk.agents that return types with arguments of type BaseToolModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Flowable
<BaseTool> LlmAgent.canonicalTools()
Overload of canonicalTools that defaults to an empty context.io.reactivex.rxjava3.core.Flowable
<BaseTool> LlmAgent.canonicalTools
(ReadonlyContext context) Convenience overload of canonicalTools that accepts a non-optional ReadonlyContext.io.reactivex.rxjava3.core.Flowable
<BaseTool> LlmAgent.canonicalTools
(Optional<ReadonlyContext> context) Constructs the list of tools for this agent based on theLlmAgent.tools()
field.LlmAgent.tools()
Methods in com.google.adk.agents with parameters of type BaseToolModifier and TypeMethodDescriptionCallbacks.AfterToolCallback.call
(InvocationContext invocationContext, BaseTool baseTool, Map<String, Object> input, ToolContext toolContext, Object response) Async callback after tool runs.Callbacks.AfterToolCallbackSync.call
(InvocationContext invocationContext, BaseTool baseTool, Map<String, Object> input, ToolContext toolContext, Object response) Callbacks.BeforeToolCallback.call
(InvocationContext invocationContext, BaseTool baseTool, Map<String, Object> input, ToolContext toolContext) Async callback before tool runs.Callbacks.BeforeToolCallbackSync.call
(InvocationContext invocationContext, BaseTool baseTool, Map<String, Object> input, ToolContext toolContext) -
Uses of BaseTool in com.google.adk.flows.llmflows
Method parameters in com.google.adk.flows.llmflows with type arguments of type BaseToolModifier and TypeMethodDescriptionFunctions.getLongRunningFunctionCalls
(List<com.google.genai.types.FunctionCall> functionCalls, Map<String, BaseTool> tools) static io.reactivex.rxjava3.core.Maybe
<Event> Functions.handleFunctionCalls
(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools) -
Uses of BaseTool in com.google.adk.models
Methods in com.google.adk.models that return types with arguments of type BaseToolModifier and TypeMethodDescriptionLlmRequest.tools()
Returns a map of tools available to the LLM.Method parameters in com.google.adk.models with type arguments of type BaseToolModifier and TypeMethodDescriptionfinal LlmRequest.Builder
LlmRequest.Builder.appendTools
(List<BaseTool> tools) -
Uses of BaseTool in com.google.adk.tools
Subclasses of BaseTool in com.google.adk.toolsModifier and TypeClassDescriptionclass
AgentTool implements a tool that allows an agent to call another agent.final class
A built-in code execution tool that is automatically invoked by Gemini 2 models.class
FunctionTool implements a customized function calling tool.final class
A built-in tool that is automatically invoked by Gemini 2 models to retrieve search results from Google Search.final class
A tool that loads artifacts and adds them to the session.class
A function tool that returns the result asynchronously.Methods in com.google.adk.tools that return types with arguments of type BaseToolModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Flowable
<BaseTool> BaseToolset.getTools
(ReadonlyContext readonlyContext) Return all tools in the toolset based on the provided context.Methods in com.google.adk.tools with parameters of type BaseToolModifier and TypeMethodDescriptiondefault boolean
BaseToolset.isToolSelected
(BaseTool tool, Optional<Object> toolFilter, Optional<ReadonlyContext> readonlyContext) Helper method to be used by implementers that returns true if the given tool is in the provided list of tools of if testing against the given ToolPredicate returns true (otherwise false).boolean
ToolPredicate.test
(BaseTool tool, Optional<ReadonlyContext> readonlyContext) Decides if the given tool is selected. -
Uses of BaseTool in com.google.adk.tools.applicationintegrationtoolset
Subclasses of BaseTool in com.google.adk.tools.applicationintegrationtoolsetMethods in com.google.adk.tools.applicationintegrationtoolset that return types with arguments of type BaseToolModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Flowable
<BaseTool> ApplicationIntegrationToolset.getTools
(@Nullable ReadonlyContext readonlyContext) -
Uses of BaseTool in com.google.adk.tools.mcp
Subclasses of BaseTool in com.google.adk.tools.mcpModifier and TypeClassDescriptionfinal class
Initializes a MCP tool.final class
Initializes a MCP tool.Methods in com.google.adk.tools.mcp that return types with arguments of type BaseToolModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Flowable
<BaseTool> McpToolset.getTools
(ReadonlyContext readonlyContext) Methods in com.google.adk.tools.mcp with parameters of type BaseToolModifier and TypeMethodDescriptionio.modelcontextprotocol.spec.McpSchema.Tool
ConversionUtils.adkToMcpToolType
(BaseTool tool) -
Uses of BaseTool in com.google.adk.tools.retrieval
Subclasses of BaseTool in com.google.adk.tools.retrievalModifier and TypeClassDescriptionclass
Base class for retrieval tools.class
A retrieval tool that fetches context from Vertex AI RAG.