Uses of Class
com.google.adk.tools.ToolContext
Packages that use ToolContext
Package
Description
-
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) -
Uses of ToolContext in com.google.adk.flows.llmflows
Methods in com.google.adk.flows.llmflows with parameters of type ToolContextModifier and TypeMethodDescriptionstatic voidAgentTransfer.transferToAgent(String agentName, ToolContext toolContext) Marks the target agent for transfer using the tool context. -
Uses of ToolContext in com.google.adk.plugins
Methods in com.google.adk.plugins with parameters of type ToolContextModifier 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 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.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) 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.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)