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) Handles standard, non-streaming function calls.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. -
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.plugins
Methods in com.google.adk.plugins with parameters of type BaseToolModifier and TypeMethodDescriptionBasePlugin.afterToolCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext, Map<String, Object> result) Callback executed after a tool has been called.LoggingPlugin.afterToolCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext, Map<String, Object> result) BasePlugin.beforeToolCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext) Callback executed before a tool is called.LoggingPlugin.beforeToolCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext) BasePlugin.onToolErrorCallback(BaseTool tool, Map<String, Object> toolArgs, ToolContext toolContext, Throwable error) Callback executed when a tool call encounters an error.LoggingPlugin.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.final classA built-in tool that is automatically invoked by Gemini 2 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.Methods in com.google.adk.tools that return BaseToolModifier and TypeMethodDescriptionstatic 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, 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).booleanNamedToolPredicate.test(BaseTool tool, Optional<ReadonlyContext> readonlyContext) booleanToolPredicate.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 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 TypeMethodDescriptionComponentRegistry.resolveToolClass(String toolClassName) Resolves the tool class based on the tool class name from the configuration.ComponentRegistry.resolveToolInstance(String name)