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()Constructs the list of tools for this agent based on theLlmAgent.tools()field.io.reactivex.rxjava3.core.Flowable<BaseTool> LlmAgent.canonicalTools(ReadonlyContext context) Constructs the list of tools for this agent based on theLlmAgent.tools()field.io.reactivex.rxjava3.core.Flowable<BaseTool> LlmAgent.canonicalTools(Optional<ReadonlyContext> context) Deprecated.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) Callbacks.OnToolErrorCallback.call(InvocationContext invocationContext, BaseTool baseTool, Map<String, Object> input, ToolContext toolContext, Exception error) Async callback when tool call fails.Callbacks.OnToolErrorCallbackSync.call(InvocationContext invocationContext, BaseTool baseTool, Map<String, Object> input, ToolContext toolContext, Exception error) -
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) Handles standard, non-streaming function calls.static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCalls(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools, Map<String, ToolConfirmation> toolConfirmations) Handles standard, non-streaming function calls with tool confirmations.static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCallsLive(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools) Handles function calls in a live/streaming context, supporting background execution and stream termination.static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCallsLive(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools, Map<String, ToolConfirmation> toolConfirmations) Handles function calls in a live/streaming context with tool confirmations, supporting background execution and stream termination. -
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.BuilderLlmRequest.Builder.appendTools(List<BaseTool> tools) -
Uses of BaseTool in com.google.adk.models.springai
Method parameters in com.google.adk.models.springai with type arguments of type BaseToolModifier and TypeMethodDescriptionList<org.springframework.ai.tool.ToolCallback> ToolConverter.convertToSpringAiTools(Map<String, BaseTool> tools) Converts ADK tools to Spring AI ToolCallback format for tool calling.ToolConverter.createToolRegistry(Map<String, BaseTool> tools) Creates a tool registry from ADK tools for internal tracking. -
Uses of BaseTool in com.google.adk.plugins
Methods in com.google.adk.plugins with parameters of type BaseToolModifier and TypeMethodDescriptionLoggingPlugin.afterToolCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext, Map<String, Object> result) Plugin.afterToolCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext, Map<String, Object> result) Callback executed after a tool has been called.PluginManager.afterToolCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext, Map<String, Object> result) LoggingPlugin.beforeToolCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext) Plugin.beforeToolCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext) Callback executed before a tool is called.PluginManager.beforeToolCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext) ReplayPlugin.beforeToolCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext) LoggingPlugin.onToolErrorCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext, Throwable error) Plugin.onToolErrorCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext, Throwable error) Callback executed when a tool call encounters an error.PluginManager.onToolErrorCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext, Throwable error) PluginManager.runAfterToolCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext, Map<String, Object> result) PluginManager.runBeforeToolCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext) PluginManager.runOnToolErrorCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext, Throwable error) -
Uses of BaseTool in com.google.adk.tools
Subclasses of BaseTool in com.google.adk.toolsModifier and TypeClassDescriptionclassAgentTool implements a tool that allows an agent to call another agent.final classA built-in code execution tool that is automatically invoked by Gemini 2 models.final classA tool that injects (few-shot) examples into the outgoing LLM request as system instructions.classFunctionTool implements a customized function calling tool.classA built-in tool that is automatically invoked by Gemini 2 models to retrieve search results from Google Maps.classA tool that wraps a sub-agent that only uses google_search tool.final classA built-in tool that is automatically invoked by Gemini 2 and 3 models to retrieve search results from Google Search.final classA tool that loads artifacts and adds them to the session.classA tool that loads memory for the current user.classA function tool that returns the result asynchronously.final classA built-in tool that is automatically invoked by Gemini 2 and 3 models to retrieve information from the given URLs.classA tool that wraps a sub-agent that only uses vertex_ai_search tool.classA built-in tool using Vertex AI Search.Methods in com.google.adk.tools that return BaseToolModifier and TypeMethodDescriptionstatic BaseToolAgentTool.fromConfig(BaseTool.ToolArgsConfig args, String configAbsPath) static BaseToolBaseTool.fromConfig(BaseTool.ToolConfig config, String configAbsPath) Creates a tool instance from a config.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 booleanBaseToolset.isToolSelected(BaseTool tool, Object toolFilter, ReadonlyContext readonlyContext) Checks if a tool should be selected based on a filter.default booleanBaseToolset.isToolSelected(BaseTool tool, Optional<Object> toolFilter, Optional<ReadonlyContext> readonlyContext) Deprecated.booleanNamedToolPredicate.test(BaseTool tool, Optional<ReadonlyContext> readonlyContext) default booleanToolPredicate.test(BaseTool tool, ReadonlyContext readonlyContext) Decides if the given tool is selected.booleanToolPredicate.test(BaseTool tool, Optional<ReadonlyContext> readonlyContext) Deprecated.UseToolPredicate.test(BaseTool, ReadonlyContext)instead. -
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.computeruse
Subclasses of BaseTool in com.google.adk.tools.computeruseModifier and TypeClassDescriptionclassA tool that wraps computer control functions for use with LLMs.Methods in com.google.adk.tools.computeruse that return types with arguments of type BaseToolModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Flowable<BaseTool> ComputerUseToolset.getTools(ReadonlyContext readonlyContext) -
Uses of BaseTool in com.google.adk.tools.mcp
Subclasses of BaseTool in com.google.adk.tools.mcpModifier and TypeClassDescriptionclassBase class for MCP tools.final classInitializes a MCP tool.final classInitializes 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> McpAsyncToolset.getTools(ReadonlyContext readonlyContext) io.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.ToolConversionUtils.adkToMcpToolType(BaseTool tool) -
Uses of BaseTool in com.google.adk.tools.retrieval
Subclasses of BaseTool in com.google.adk.tools.retrievalModifier and TypeClassDescriptionclassBase class for retrieval tools.classA retrieval tool that fetches context from Vertex AI RAG. -
Uses of BaseTool in com.google.adk.utils
Methods in com.google.adk.utils that return types with arguments of type BaseToolModifier and TypeMethodDescriptionAdkComponentProvider.getToolClasses()Returns a list of tool classes to register.CoreAdkComponentProvider.getToolClasses()AdditionalAdkComponentProvider.getToolInstances()Returns tool instances forGoogleSearchToolandGoogleMapsTool.AdkComponentProvider.getToolInstances()Returns a map of tool instances to register, with tool name as key.CoreAdkComponentProvider.getToolInstances()ComponentRegistry.resolveToolClass(String toolClassName) Resolves the tool class based on the tool class name from the configuration.ComponentRegistry.resolveToolInstance(String name)
LlmAgent.canonicalTools(ReadonlyContext)instead.