Uses of Class
com.google.adk.tools.ToolContext
Packages that use ToolContext
Package
Description
-
Uses of ToolContext in com.example
Methods in com.example with parameters of type ToolContext -
Uses of ToolContext in com.example.a2a_basic
Methods in com.example.a2a_basic with parameters of type ToolContext -
Uses of ToolContext in com.example.helloworld
Methods in com.example.helloworld with parameters of type ToolContext -
Uses of ToolContext in com.google.adk.agents
Methods in com.google.adk.agents with parameters of type ToolContextModifier 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 ToolContext in com.google.adk.flows.llmflows
Methods in com.google.adk.flows.llmflows with parameters of type ToolContextModifier and TypeMethodDescriptionstatic voidAgentTransfer.legacyTransferToAgent(String agentName, ToolContext toolContext) Backwards compatible transferToAgent that uses camel-case naming instead of the ADK's snake_case convention.static voidAgentTransfer.transferToAgent(String agentName, ToolContext toolContext) -
Uses of ToolContext in com.google.adk.plugins
Methods in com.google.adk.plugins with parameters of type ToolContextModifier 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 ToolContext in com.google.adk.tools
Methods in com.google.adk.tools that return ToolContextMethods in com.google.adk.tools with parameters of type ToolContextModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.CompletableLoadArtifactsTool.appendArtifactsToLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext) FunctionTool.callLive(Map<String, Object> args, ToolContext toolContext, InvocationContext invocationContext) static voidExitLoopTool.exitLoop(ToolContext toolContext) Exit theLoopAgentexecution.static io.reactivex.rxjava3.core.Single<LoadMemoryResponse> LoadMemoryTool.loadMemory(String query, ToolContext toolContext) Loads the memory for the current user.io.reactivex.rxjava3.core.CompletableBaseTool.processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext) Processes the outgoingLlmRequest.Builder.io.reactivex.rxjava3.core.CompletableBuiltInCodeExecutionTool.processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext) io.reactivex.rxjava3.core.CompletableExampleTool.processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext) io.reactivex.rxjava3.core.CompletableGoogleMapsTool.processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext) io.reactivex.rxjava3.core.CompletableGoogleSearchTool.processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext) io.reactivex.rxjava3.core.CompletableLoadArtifactsTool.processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext) io.reactivex.rxjava3.core.CompletableLoadMemoryTool.processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext) io.reactivex.rxjava3.core.CompletableUrlContextTool.processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext) io.reactivex.rxjava3.core.CompletableVertexAiSearchTool.processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext) AgentTool.runAsync(Map<String, Object> args, ToolContext toolContext) BaseTool.runAsync(Map<String, Object> args, ToolContext toolContext) Calls a tool.FunctionTool.runAsync(Map<String, Object> args, ToolContext toolContext) LoadArtifactsTool.runAsync(Map<String, Object> args, ToolContext toolContext) -
Uses of ToolContext in com.google.adk.tools.applicationintegrationtoolset
Methods in com.google.adk.tools.applicationintegrationtoolset with parameters of type ToolContext -
Uses of ToolContext in com.google.adk.tools.computeruse
Methods in com.google.adk.tools.computeruse with parameters of type ToolContextModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.CompletableComputerUseToolset.processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext) Adds computer use configuration to the LLM request.ComputerUseTool.runAsync(Map<String, Object> args, ToolContext toolContext) -
Uses of ToolContext in com.google.adk.tools.mcp
Methods in com.google.adk.tools.mcp with parameters of type ToolContext -
Uses of ToolContext in com.google.adk.tools.retrieval
Methods in com.google.adk.tools.retrieval with parameters of type ToolContextModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.CompletableVertexAiRagRetrieval.processLlmRequest(LlmRequest.Builder llmRequestBuilder, ToolContext toolContext) VertexAiRagRetrieval.runAsync(Map<String, Object> args, ToolContext toolContext)