Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractMcpTool<T> - Class in com.google.adk.tools.mcp
-
Base class for MCP tools.
- AbstractMcpTool(McpSchema.Tool, T, McpSessionManager, ObjectMapper) - Constructor for class com.google.adk.tools.mcp.AbstractMcpTool
- actionRequest(String) - Static method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- actionResponse(String) - Static method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- actions() - Method in class com.google.adk.events.Event
- actions() - Method in class com.google.adk.tools.ToolContext
- actions(EventActions) - Method in class com.google.adk.events.Event.Builder
- actions(EventActions) - Method in class com.google.adk.tools.ToolContext.Builder
- ActionSchema() - Constructor for class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient.ActionSchema
- ActiveStreamingTool - Class in com.google.adk.agents
-
Manages streaming tool related resources during invocation.
- ActiveStreamingTool() - Constructor for class com.google.adk.agents.ActiveStreamingTool
- ActiveStreamingTool(LiveRequestQueue) - Constructor for class com.google.adk.agents.ActiveStreamingTool
- ActiveStreamingTool(Disposable) - Constructor for class com.google.adk.agents.ActiveStreamingTool
- ActiveStreamingTool(Disposable, LiveRequestQueue) - Constructor for class com.google.adk.agents.ActiveStreamingTool
- activeStreamingTools() - Method in class com.google.adk.agents.InvocationContext
- addExample(Example) - Method in class com.google.adk.tools.ExampleTool.Builder
- addInputFiles(List<CodeExecutionUtils.File>) - Method in class com.google.adk.codeexecutors.CodeExecutorContext
-
Adds the input files to the code executor context.
- addProcessedFileNames(List<String>) - Method in class com.google.adk.codeexecutors.CodeExecutorContext
-
Adds the processed file name to the session state.
- addSessionToMemory(Session) - Method in interface com.google.adk.memory.BaseMemoryService
-
Adds a session to the memory service.
- addSessionToMemory(Session) - Method in class com.google.adk.memory.InMemoryMemoryService
- adkToMcpToolType(BaseTool) - Method in class com.google.adk.tools.mcp.ConversionUtils
- afterAgentCallback() - Method in class com.google.adk.agents.BaseAgent
- afterAgentCallback(BaseAgent, CallbackContext) - Method in class com.google.adk.plugins.BasePlugin
-
Callback executed after an agent's primary logic has completed.
- afterAgentCallback(BaseAgent, CallbackContext) - Method in class com.google.adk.plugins.LoggingPlugin
- afterAgentCallback(Callbacks.AfterAgentCallback) - Method in class com.google.adk.agents.LlmAgent.Builder
- afterAgentCallback(Callbacks.AfterAgentCallback) - Method in class com.google.adk.agents.LoopAgent.Builder
- afterAgentCallback(Callbacks.AfterAgentCallback) - Method in class com.google.adk.agents.ParallelAgent.Builder
- afterAgentCallback(Callbacks.AfterAgentCallback) - Method in class com.google.adk.agents.SequentialAgent.Builder
- afterAgentCallback(List<Callbacks.AfterAgentCallbackBase>) - Method in class com.google.adk.agents.LlmAgent.Builder
- afterAgentCallback(List<Callbacks.AfterAgentCallbackBase>) - Method in class com.google.adk.agents.LoopAgent.Builder
- afterAgentCallback(List<Callbacks.AfterAgentCallbackBase>) - Method in class com.google.adk.agents.ParallelAgent.Builder
- afterAgentCallback(List<Callbacks.AfterAgentCallbackBase>) - Method in class com.google.adk.agents.SequentialAgent.Builder
- afterAgentCallbacks() - Method in class com.google.adk.agents.LlmAgentConfig
- afterAgentCallbackSync(Callbacks.AfterAgentCallbackSync) - Method in class com.google.adk.agents.LlmAgent.Builder
- afterModelCallback() - Method in class com.google.adk.agents.LlmAgent
- afterModelCallback(CallbackContext, LlmResponse) - Method in class com.google.adk.plugins.BasePlugin
-
Callback executed after a response is received from the model.
- afterModelCallback(CallbackContext, LlmResponse) - Method in class com.google.adk.plugins.LoggingPlugin
- afterModelCallback(Callbacks.AfterModelCallback) - Method in class com.google.adk.agents.LlmAgent.Builder
- afterModelCallback(List<Callbacks.AfterModelCallbackBase>) - Method in class com.google.adk.agents.LlmAgent.Builder
- afterModelCallbacks() - Method in class com.google.adk.agents.LlmAgentConfig
- afterModelCallbackSync(Callbacks.AfterModelCallbackSync) - Method in class com.google.adk.agents.LlmAgent.Builder
- afterRunCallback(InvocationContext) - Method in class com.google.adk.plugins.BasePlugin
-
Callback executed after an ADK runner run has completed.
- afterRunCallback(InvocationContext) - Method in class com.google.adk.plugins.LoggingPlugin
- afterTimestamp() - Method in class com.google.adk.sessions.GetSessionConfig
- afterTimestamp(Instant) - Method in class com.google.adk.sessions.GetSessionConfig.Builder
- afterToolCallback() - Method in class com.google.adk.agents.LlmAgent
- afterToolCallback(Callbacks.AfterToolCallback) - Method in class com.google.adk.agents.LlmAgent.Builder
- afterToolCallback(BaseTool, Map<String, Object>, ToolContext, Map<String, Object>) - Method in class com.google.adk.plugins.BasePlugin
-
Callback executed after a tool has been called.
- afterToolCallback(BaseTool, Map<String, Object>, ToolContext, Map<String, Object>) - Method in class com.google.adk.plugins.LoggingPlugin
- afterToolCallback(List<Callbacks.AfterToolCallbackBase>) - Method in class com.google.adk.agents.LlmAgent.Builder
- afterToolCallbacks() - Method in class com.google.adk.agents.LlmAgentConfig
- afterToolCallbackSync(Callbacks.AfterToolCallbackSync) - Method in class com.google.adk.agents.LlmAgent.Builder
- agent() - Method in class com.google.adk.agents.InvocationContext
- agent() - Method in class com.google.adk.runner.Runner
- agent(BaseAgent) - Method in class com.google.adk.agents.InvocationContext
- agentClass() - Method in class com.google.adk.agents.BaseAgentConfig
- agentName() - Method in class com.google.adk.agents.ReadonlyContext
-
Returns the name of the agent currently running.
- AgentRefConfig() - Constructor for class com.google.adk.agents.BaseAgentConfig.AgentRefConfig
- AgentRefConfig(String) - Constructor for class com.google.adk.agents.BaseAgentConfig.AgentRefConfig
-
Constructor for config-based agent reference.
- AgentTool - Class in com.google.adk.tools
-
AgentTool implements a tool that allows an agent to call another agent.
- AgentTool(BaseAgent, boolean) - Constructor for class com.google.adk.tools.AgentTool
- AgentTransfer - Class in com.google.adk.flows.llmflows
-
RequestProcessorthat handles agent transfer for LLM flow. - AgentTransfer() - Constructor for class com.google.adk.flows.llmflows.AgentTransfer
- Annotations - Class in com.google.adk.tools
-
Annotations for tools.
- Annotations.Schema - Annotation Interface in com.google.adk.tools
-
The annotation for binding the 'Schema' input.
- apiClient(Client) - Method in class com.google.adk.models.Gemini.Builder
-
Sets the explicit
Clientinstance for making API calls. - apiKey() - Method in class com.google.adk.sessions.HttpApiClient
-
Returns the API key for Google AI APIs.
- apiKey(String) - Method in class com.google.adk.models.Gemini.Builder
-
Sets the Google Gemini API key.
- ApiResponse - Class in com.google.adk.sessions
-
The API response contains a response to a call to the GenAI APIs.
- ApiResponse() - Constructor for class com.google.adk.sessions.ApiResponse
- APP_PREFIX - Static variable in class com.google.adk.sessions.State
- appendArtifactsToLlmRequest(LlmRequest.Builder, ToolContext) - Method in class com.google.adk.tools.LoadArtifactsTool
- appendEvent(Session, Event) - Method in interface com.google.adk.sessions.BaseSessionService
-
Appends an event to an in-memory session object and updates the session's state based on the event's state delta, if applicable.
- appendEvent(Session, Event) - Method in class com.google.adk.sessions.InMemorySessionService
- appendEvent(Session, Event) - Method in class com.google.adk.sessions.VertexAiSessionService
- appendInstructions(List<String>) - Method in class com.google.adk.models.LlmRequest.Builder
- appendTools(List<BaseTool>) - Method in class com.google.adk.models.LlmRequest.Builder
- ApplicationIntegrationToolset - Class in com.google.adk.tools.applicationintegrationtoolset
-
Application Integration Toolset
- ApplicationIntegrationToolset(String, String, String, List<String>, String, Map<String, List<String>>, List<String>, String, String, String) - Constructor for class com.google.adk.tools.applicationintegrationtoolset.ApplicationIntegrationToolset
-
ApplicationIntegrationToolset generates tools from a given Application Integration resource.
- appName() - Method in class com.google.adk.agents.InvocationContext
- appName() - Method in class com.google.adk.runner.Runner
- appName() - Method in class com.google.adk.sessions.Session
- appName(String) - Method in class com.google.adk.sessions.Session.Builder
- args() - Method in class com.google.adk.tools.BaseTool.ToolConfig
- args() - Method in class com.google.adk.tools.mcp.StdioServerParameters
-
Optional arguments for the command.
- args(List<String>) - Method in class com.google.adk.tools.mcp.StdioServerParameters.Builder
-
Sets the arguments for the command.
- artifactDelta() - Method in class com.google.adk.events.EventActions
- artifactDelta(ConcurrentMap<String, Part>) - Method in class com.google.adk.events.EventActions.Builder
- artifactService() - Method in class com.google.adk.agents.InvocationContext
- artifactService() - Method in class com.google.adk.runner.Runner
- author() - Method in class com.google.adk.events.Event
-
The author of the event, it could be the name of the agent or "user" literal.
- author() - Method in class com.google.adk.memory.MemoryEntry
-
Returns the author of the memory, or null if not set.
- author(String) - Method in class com.google.adk.events.Event.Builder
- author(String) - Method in class com.google.adk.memory.MemoryEntry.Builder
-
Sets the author of the memory.
- AutoFlow - Class in com.google.adk.flows.llmflows
-
LLM flow with automatic agent transfer support.
- AutoFlow() - Constructor for class com.google.adk.flows.llmflows.AutoFlow
- AutoFlow(Optional<Integer>) - Constructor for class com.google.adk.flows.llmflows.AutoFlow
B
- BaseAgent - Class in com.google.adk.agents
-
Base class for all agents.
- BaseAgent(String, String, List<? extends BaseAgent>, List<Callbacks.BeforeAgentCallback>, List<Callbacks.AfterAgentCallback>) - Constructor for class com.google.adk.agents.BaseAgent
-
Creates a new BaseAgent.
- BaseAgentConfig - Class in com.google.adk.agents
-
Base configuration for all agents with subagent support.
- BaseAgentConfig() - Constructor for class com.google.adk.agents.BaseAgentConfig
- BaseAgentConfig(String, String, String) - Constructor for class com.google.adk.agents.BaseAgentConfig
-
Constructor with basic fields.
- BaseAgentConfig.AgentRefConfig - Class in com.google.adk.agents
-
Configuration for referencing other agents (subagents).
- BaseArtifactService - Interface in com.google.adk.artifacts
-
Base interface for artifact services.
- BaseCodeExecutor - Class in com.google.adk.codeexecutors
-
Abstract base class for all code executors.
- BaseCodeExecutor() - Constructor for class com.google.adk.codeexecutors.BaseCodeExecutor
- BaseExampleProvider - Interface in com.google.adk.examples
-
An interface that provides examples for a given query.
- BaseFlow - Interface in com.google.adk.flows
-
Interface for the execution flows to run a group of agents.
- BaseLlm - Class in com.google.adk.models
-
Abstract base class for Large Language Models (LLMs).
- BaseLlm(String) - Constructor for class com.google.adk.models.BaseLlm
- BaseLlmConnection - Interface in com.google.adk.models
-
The base class for a live model connection.
- BaseLlmFlow - Class in com.google.adk.flows.llmflows
-
A basic flow that calls the LLM in a loop until a final response is generated.
- BaseLlmFlow(List<RequestProcessor>, List<ResponseProcessor>) - Constructor for class com.google.adk.flows.llmflows.BaseLlmFlow
- BaseLlmFlow(List<RequestProcessor>, List<ResponseProcessor>, Optional<Integer>) - Constructor for class com.google.adk.flows.llmflows.BaseLlmFlow
- BaseMemoryService - Interface in com.google.adk.memory
-
Base contract for memory services.
- BasePlugin - Class in com.google.adk.plugins
-
Base class for creating plugins.
- BasePlugin(String) - Constructor for class com.google.adk.plugins.BasePlugin
- BaseRetrievalTool - Class in com.google.adk.tools.retrieval
-
Base class for retrieval tools.
- BaseRetrievalTool(String, String) - Constructor for class com.google.adk.tools.retrieval.BaseRetrievalTool
- BaseRetrievalTool(String, String, boolean) - Constructor for class com.google.adk.tools.retrieval.BaseRetrievalTool
- BaseSessionService - Interface in com.google.adk.sessions
- BaseTool - Class in com.google.adk.tools
-
The base class for all ADK tools.
- BaseTool(String, String) - Constructor for class com.google.adk.tools.BaseTool
- BaseTool(String, String, boolean) - Constructor for class com.google.adk.tools.BaseTool
- BaseTool.ToolArgsConfig - Class in com.google.adk.tools
-
Configuration class for tool arguments that allows arbitrary key-value pairs.
- BaseTool.ToolConfig - Class in com.google.adk.tools
-
Configuration class for a tool definition in YAML/JSON.
- BaseToolset - Interface in com.google.adk.tools
-
Base interface for toolsets.
- Basic - Class in com.google.adk.flows.llmflows
-
RequestProcessorthat handles basic information to build the LLM request. - Basic() - Constructor for class com.google.adk.flows.llmflows.Basic
- beforeAgentCallback() - Method in class com.google.adk.agents.BaseAgent
- beforeAgentCallback(BaseAgent, CallbackContext) - Method in class com.google.adk.plugins.BasePlugin
-
Callback executed before an agent's primary logic is invoked.
- beforeAgentCallback(BaseAgent, CallbackContext) - Method in class com.google.adk.plugins.LoggingPlugin
- beforeAgentCallback(Callbacks.BeforeAgentCallback) - Method in class com.google.adk.agents.LlmAgent.Builder
- beforeAgentCallback(Callbacks.BeforeAgentCallback) - Method in class com.google.adk.agents.LoopAgent.Builder
- beforeAgentCallback(Callbacks.BeforeAgentCallback) - Method in class com.google.adk.agents.ParallelAgent.Builder
- beforeAgentCallback(Callbacks.BeforeAgentCallback) - Method in class com.google.adk.agents.SequentialAgent.Builder
- beforeAgentCallback(List<Callbacks.BeforeAgentCallbackBase>) - Method in class com.google.adk.agents.LlmAgent.Builder
- beforeAgentCallback(List<Callbacks.BeforeAgentCallbackBase>) - Method in class com.google.adk.agents.LoopAgent.Builder
- beforeAgentCallback(List<Callbacks.BeforeAgentCallbackBase>) - Method in class com.google.adk.agents.ParallelAgent.Builder
- beforeAgentCallback(List<Callbacks.BeforeAgentCallbackBase>) - Method in class com.google.adk.agents.SequentialAgent.Builder
- beforeAgentCallbacks() - Method in class com.google.adk.agents.LlmAgentConfig
- beforeAgentCallbackSync(Callbacks.BeforeAgentCallbackSync) - Method in class com.google.adk.agents.LlmAgent.Builder
- beforeModelCallback() - Method in class com.google.adk.agents.LlmAgent
- beforeModelCallback(CallbackContext, LlmRequest) - Method in class com.google.adk.plugins.BasePlugin
-
Callback executed before a request is sent to the model.
- beforeModelCallback(CallbackContext, LlmRequest) - Method in class com.google.adk.plugins.LoggingPlugin
- beforeModelCallback(Callbacks.BeforeModelCallback) - Method in class com.google.adk.agents.LlmAgent.Builder
- beforeModelCallback(List<Callbacks.BeforeModelCallbackBase>) - Method in class com.google.adk.agents.LlmAgent.Builder
- beforeModelCallbacks() - Method in class com.google.adk.agents.LlmAgentConfig
- beforeModelCallbackSync(Callbacks.BeforeModelCallbackSync) - Method in class com.google.adk.agents.LlmAgent.Builder
- beforeRunCallback(InvocationContext) - Method in class com.google.adk.plugins.BasePlugin
-
Callback executed before the ADK runner runs.
- beforeRunCallback(InvocationContext) - Method in class com.google.adk.plugins.LoggingPlugin
- beforeToolCallback() - Method in class com.google.adk.agents.LlmAgent
- beforeToolCallback(Callbacks.BeforeToolCallback) - Method in class com.google.adk.agents.LlmAgent.Builder
- beforeToolCallback(BaseTool, Map<String, Object>, ToolContext) - Method in class com.google.adk.plugins.BasePlugin
-
Callback executed before a tool is called.
- beforeToolCallback(BaseTool, Map<String, Object>, ToolContext) - Method in class com.google.adk.plugins.LoggingPlugin
- beforeToolCallback(List<Callbacks.BeforeToolCallbackBase>) - Method in class com.google.adk.agents.LlmAgent.Builder
- beforeToolCallbacks() - Method in class com.google.adk.agents.LlmAgentConfig
- beforeToolCallbackSync(Callbacks.BeforeToolCallbackSync) - Method in class com.google.adk.agents.LlmAgent.Builder
- BIDI - Enum constant in enum class com.google.adk.agents.RunConfig.StreamingMode
- blob() - Method in class com.google.adk.agents.LiveRequest
-
Returns the blob of the request.
- blob(Blob) - Method in class com.google.adk.agents.LiveRequest.Builder
- blob(Optional<Blob>) - Method in class com.google.adk.agents.LiveRequest.Builder
- branch() - Method in class com.google.adk.agents.InvocationContext
- branch() - Method in class com.google.adk.agents.ReadonlyContext
-
Returns the branch of the current invocation, if present.
- branch() - Method in class com.google.adk.events.Event
-
The branch of the event.
- branch(String) - Method in class com.google.adk.agents.InvocationContext
- branch(String) - Method in class com.google.adk.events.Event
-
Sets the branch for this event.
- branch(String) - Method in class com.google.adk.events.Event.Builder
- branch(Optional<String>) - Method in class com.google.adk.events.Event
- branch(Optional<String>) - Method in class com.google.adk.events.Event.Builder
- build() - Method in class com.google.adk.agents.LiveRequest.Builder
- build() - Method in class com.google.adk.agents.LlmAgent.Builder
- build() - Method in class com.google.adk.agents.LoopAgent.Builder
- build() - Method in class com.google.adk.agents.ParallelAgent.Builder
- build() - Method in class com.google.adk.agents.RunConfig.Builder
- build() - Method in class com.google.adk.agents.SequentialAgent.Builder
- build() - Method in class com.google.adk.artifacts.ListArtifactsResponse.Builder
- build() - Method in class com.google.adk.artifacts.ListArtifactVersionsResponse.Builder
- build() - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionInput.Builder
- build() - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionResult.Builder
- build() - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.File.Builder
- build() - Method in class com.google.adk.events.Event.Builder
- build() - Method in class com.google.adk.events.EventActions.Builder
- build() - Method in class com.google.adk.examples.Example.Builder
- build() - Method in class com.google.adk.memory.MemoryEntry.Builder
-
Builds the immutable
MemoryEntryobject. - build() - Method in class com.google.adk.memory.SearchMemoryResponse.Builder
-
Builds the immutable
SearchMemoryResponseobject. - build() - Method in class com.google.adk.models.Gemini.Builder
-
Builds the
Geminiinstance. - build() - Method in class com.google.adk.models.LlmRequest.Builder
- build() - Method in class com.google.adk.models.LlmResponse.Builder
- build() - Method in class com.google.adk.models.Model.Builder
- build() - Method in class com.google.adk.models.VertexCredentials.Builder
- build() - Method in class com.google.adk.sessions.GetSessionConfig.Builder
- build() - Method in class com.google.adk.sessions.ListEventsResponse.Builder
- build() - Method in class com.google.adk.sessions.ListSessionsResponse.Builder
- build() - Method in class com.google.adk.sessions.Session.Builder
- build() - Method in class com.google.adk.tools.ExampleTool.Builder
- build() - Method in class com.google.adk.tools.mcp.McpAsyncToolset.Builder
- build() - Method in class com.google.adk.tools.mcp.SseServerParameters.Builder
-
Builds a new
SseServerParametersinstance. - build() - Method in class com.google.adk.tools.mcp.StdioServerParameters.Builder
-
Builds a new
StdioServerParametersinstance. - build() - Method in class com.google.adk.tools.mcp.StreamableHttpServerParameters.Builder
- build() - Method in class com.google.adk.tools.ToolContext.Builder
- build(Object) - Method in class com.google.adk.tools.mcp.DefaultMcpTransportBuilder
- build(Object) - Method in interface com.google.adk.tools.mcp.McpTransportBuilder
-
Builds an McpClientTransport based on the provided connection parameters.
- buildCodeExecutionResultPart(CodeExecutionUtils.CodeExecutionResult) - Static method in class com.google.adk.codeexecutors.CodeExecutionUtils
- builder() - Static method in class com.google.adk.agents.LiveRequest
- builder() - Static method in class com.google.adk.agents.LlmAgent
-
Returns a
LlmAgent.BuilderforLlmAgent. - builder() - Static method in class com.google.adk.agents.LoopAgent
- builder() - Static method in class com.google.adk.agents.ParallelAgent
- builder() - Static method in class com.google.adk.agents.RunConfig
- builder() - Static method in class com.google.adk.agents.SequentialAgent
- builder() - Static method in class com.google.adk.artifacts.ListArtifactsResponse
- builder() - Static method in class com.google.adk.artifacts.ListArtifactVersionsResponse
- builder() - Static method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionInput
- builder() - Static method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionResult
- builder() - Static method in class com.google.adk.codeexecutors.CodeExecutionUtils.File
- builder() - Static method in class com.google.adk.events.Event
- builder() - Static method in class com.google.adk.events.EventActions
- builder() - Static method in class com.google.adk.examples.Example
- builder() - Static method in class com.google.adk.memory.MemoryEntry
-
Returns a new builder for creating a
MemoryEntry. - builder() - Static method in class com.google.adk.memory.SearchMemoryResponse
-
Creates a new builder for
SearchMemoryResponse. - builder() - Static method in class com.google.adk.models.Gemini
-
Returns a new Builder instance for constructing Gemini objects.
- builder() - Static method in class com.google.adk.models.LlmRequest
- builder() - Static method in class com.google.adk.models.LlmResponse
- builder() - Static method in class com.google.adk.models.Model
- builder() - Static method in class com.google.adk.models.VertexCredentials
- builder() - Static method in class com.google.adk.sessions.GetSessionConfig
- builder() - Static method in class com.google.adk.sessions.ListEventsResponse
- builder() - Static method in class com.google.adk.sessions.ListSessionsResponse
- builder() - Static method in class com.google.adk.tools.ExampleTool
- builder() - Static method in class com.google.adk.tools.mcp.SseServerParameters
-
Creates a new builder for
SseServerParameters. - builder() - Static method in class com.google.adk.tools.mcp.StdioServerParameters
-
Creates a new builder for
StdioServerParameters. - builder(InvocationContext) - Static method in class com.google.adk.tools.ToolContext
- builder(RunConfig) - Static method in class com.google.adk.agents.RunConfig
- builder(String) - Static method in class com.google.adk.sessions.Session
- builder(String) - Static method in class com.google.adk.tools.mcp.StreamableHttpServerParameters
- Builder() - Constructor for class com.google.adk.agents.LiveRequest.Builder
- Builder() - Constructor for class com.google.adk.agents.LlmAgent.Builder
- Builder() - Constructor for class com.google.adk.agents.LoopAgent.Builder
- Builder() - Constructor for class com.google.adk.agents.ParallelAgent.Builder
- Builder() - Constructor for class com.google.adk.agents.RunConfig.Builder
- Builder() - Constructor for class com.google.adk.agents.SequentialAgent.Builder
- Builder() - Constructor for class com.google.adk.artifacts.ListArtifactsResponse.Builder
- Builder() - Constructor for class com.google.adk.artifacts.ListArtifactVersionsResponse.Builder
- Builder() - Constructor for class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionInput.Builder
- Builder() - Constructor for class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionResult.Builder
- Builder() - Constructor for class com.google.adk.codeexecutors.CodeExecutionUtils.File.Builder
- Builder() - Constructor for class com.google.adk.events.Event.Builder
- Builder() - Constructor for class com.google.adk.events.EventActions.Builder
- Builder() - Constructor for class com.google.adk.examples.Example.Builder
- Builder() - Constructor for class com.google.adk.memory.MemoryEntry.Builder
- Builder() - Constructor for class com.google.adk.memory.SearchMemoryResponse.Builder
- Builder() - Constructor for class com.google.adk.models.LlmRequest.Builder
- Builder() - Constructor for class com.google.adk.models.LlmResponse.Builder
- Builder() - Constructor for class com.google.adk.models.Model.Builder
- Builder() - Constructor for class com.google.adk.models.VertexCredentials.Builder
- Builder() - Constructor for class com.google.adk.sessions.GetSessionConfig.Builder
- Builder() - Constructor for class com.google.adk.sessions.ListEventsResponse.Builder
- Builder() - Constructor for class com.google.adk.sessions.ListSessionsResponse.Builder
- Builder() - Constructor for class com.google.adk.tools.ExampleTool.Builder
- Builder() - Constructor for class com.google.adk.tools.mcp.McpAsyncToolset.Builder
- Builder() - Constructor for class com.google.adk.tools.mcp.SseServerParameters.Builder
- Builder() - Constructor for class com.google.adk.tools.mcp.StdioServerParameters.Builder
- Builder(String) - Constructor for class com.google.adk.sessions.Session.Builder
- buildExampleSi(BaseExampleProvider, String) - Static method in class com.google.adk.examples.ExampleUtils
-
Builds a formatted few-shot example string for the given query.
- buildExecutableCodePart(String) - Static method in class com.google.adk.codeexecutors.CodeExecutionUtils
- buildFunctionDeclaration(Method, List<String>) - Static method in class com.google.adk.tools.FunctionCallingUtils
-
Builds a FunctionDeclaration from a Java Method, ignoring parameters with the given names.
- buildSchemaFromType(Type) - Static method in class com.google.adk.tools.FunctionCallingUtils
-
Builds a Schema from a Java Type, creating a new context for the generation process.
- BuiltInCodeExecutionTool - Class in com.google.adk.tools
-
A built-in code execution tool that is automatically invoked by Gemini 2 models.
- BuiltInCodeExecutionTool() - Constructor for class com.google.adk.tools.BuiltInCodeExecutionTool
- BuiltInCodeExecutor - Class in com.google.adk.codeexecutors
-
A code executor that uses the Model's built-in code executor.
- BuiltInCodeExecutor() - Constructor for class com.google.adk.codeexecutors.BuiltInCodeExecutor
C
- call(CallbackContext) - Method in interface com.google.adk.agents.Callbacks.AfterAgentCallback
-
Async callback after agent runs.
- call(CallbackContext) - Method in interface com.google.adk.agents.Callbacks.AfterAgentCallbackSync
- call(CallbackContext) - Method in interface com.google.adk.agents.Callbacks.BeforeAgentCallback
-
Async callback before agent runs.
- call(CallbackContext) - Method in interface com.google.adk.agents.Callbacks.BeforeAgentCallbackSync
- call(CallbackContext, LlmRequest.Builder) - Method in interface com.google.adk.agents.Callbacks.BeforeModelCallback
-
Async callback before LLM invocation.
- call(CallbackContext, LlmRequest.Builder) - Method in interface com.google.adk.agents.Callbacks.BeforeModelCallbackSync
- call(CallbackContext, LlmResponse) - Method in interface com.google.adk.agents.Callbacks.AfterModelCallback
-
Async callback after LLM response.
- call(CallbackContext, LlmResponse) - Method in interface com.google.adk.agents.Callbacks.AfterModelCallbackSync
- call(InvocationContext, BaseTool, Map<String, Object>, ToolContext) - Method in interface com.google.adk.agents.Callbacks.BeforeToolCallback
-
Async callback before tool runs.
- call(InvocationContext, BaseTool, Map<String, Object>, ToolContext) - Method in interface com.google.adk.agents.Callbacks.BeforeToolCallbackSync
- call(InvocationContext, BaseTool, Map<String, Object>, ToolContext, Object) - Method in interface com.google.adk.agents.Callbacks.AfterToolCallback
-
Async callback after tool runs.
- call(InvocationContext, BaseTool, Map<String, Object>, ToolContext, Object) - Method in interface com.google.adk.agents.Callbacks.AfterToolCallbackSync
- CallbackContext - Class in com.google.adk.agents
-
The context of various callbacks for an agent invocation.
- CallbackContext(InvocationContext, EventActions) - Constructor for class com.google.adk.agents.CallbackContext
-
Initializes callback context.
- CallbackRef() - Constructor for class com.google.adk.agents.LlmAgentConfig.CallbackRef
- CallbackRef(String) - Constructor for class com.google.adk.agents.LlmAgentConfig.CallbackRef
- Callbacks - Class in com.google.adk.agents
-
Functional interfaces for agent lifecycle callbacks.
- Callbacks.AfterAgentCallback - Interface in com.google.adk.agents
- Callbacks.AfterAgentCallbackSync - Interface in com.google.adk.agents
-
Helper interface to allow for sync afterAgentCallback.
- Callbacks.AfterModelCallback - Interface in com.google.adk.agents
- Callbacks.AfterModelCallbackSync - Interface in com.google.adk.agents
-
Helper interface to allow for sync afterModelCallback.
- Callbacks.AfterToolCallback - Interface in com.google.adk.agents
- Callbacks.AfterToolCallbackSync - Interface in com.google.adk.agents
-
Helper interface to allow for sync afterToolCallback.
- Callbacks.BeforeAgentCallback - Interface in com.google.adk.agents
- Callbacks.BeforeAgentCallbackSync - Interface in com.google.adk.agents
-
Helper interface to allow for sync beforeAgentCallback.
- Callbacks.BeforeModelCallback - Interface in com.google.adk.agents
- Callbacks.BeforeModelCallbackSync - Interface in com.google.adk.agents
-
Helper interface to allow for sync beforeModelCallback.
- Callbacks.BeforeToolCallback - Interface in com.google.adk.agents
- Callbacks.BeforeToolCallbackSync - Interface in com.google.adk.agents
-
Helper interface to allow for sync beforeToolCallback.
- CallbackUtil - Class in com.google.adk.agents
-
Utility methods for normalizing agent callbacks.
- callLive(Map<String, Object>, ToolContext, InvocationContext) - Method in class com.google.adk.tools.FunctionTool
- canonicalGlobalInstruction(ReadonlyContext) - Method in class com.google.adk.agents.LlmAgent
-
Constructs the text global instruction for this agent based on the
LlmAgent.globalInstructionfield. - canonicalInstruction(ReadonlyContext) - Method in class com.google.adk.agents.LlmAgent
-
Constructs the text instruction for this agent based on the
LlmAgent.instructionfield. - canonicalTools() - Method in class com.google.adk.agents.LlmAgent
-
Overload of canonicalTools that defaults to an empty context.
- canonicalTools(ReadonlyContext) - Method in class com.google.adk.agents.LlmAgent
-
Convenience overload of canonicalTools that accepts a non-optional ReadonlyContext.
- canonicalTools(Optional<ReadonlyContext>) - Method in class com.google.adk.agents.LlmAgent
-
Constructs the list of tools for this agent based on the
LlmAgent.tools()field. - Claude - Class in com.google.adk.models
-
Represents the Claude Generative AI model by Anthropic.
- Claude(String, AnthropicClient) - Constructor for class com.google.adk.models.Claude
-
Constructs a new Claude instance.
- Claude(String, AnthropicClient, int) - Constructor for class com.google.adk.models.Claude
- clear() - Method in class com.google.adk.sessions.State
- clearInputFiles() - Method in class com.google.adk.codeexecutors.CodeExecutorContext
-
Removes the input files and processed file names to the code executor context.
- close() - Method in class com.google.adk.agents.LiveRequest
-
Returns whether the connection should be closed.
- close() - Method in class com.google.adk.agents.LiveRequestQueue
- close() - Method in interface com.google.adk.flows.llmflows.audio.SpeechClientInterface
-
Closes the client and releases any resources.
- close() - Method in class com.google.adk.flows.llmflows.audio.VertexSpeechClient
- close() - Method in interface com.google.adk.models.BaseLlmConnection
-
Closes the connection.
- close() - Method in class com.google.adk.models.GeminiLlmConnection
- close() - Method in class com.google.adk.sessions.ApiResponse
- close() - Method in class com.google.adk.sessions.HttpApiResponse
-
Closes the Http response.
- close() - Method in class com.google.adk.tools.applicationintegrationtoolset.ApplicationIntegrationToolset
- close() - Method in interface com.google.adk.tools.BaseToolset
-
Performs cleanup and releases resources held by the toolset.
- close() - Method in class com.google.adk.tools.mcp.McpAsyncToolset
- close() - Method in class com.google.adk.tools.mcp.McpToolset
- close(Boolean) - Method in class com.google.adk.agents.LiveRequest.Builder
- close(Throwable) - Method in interface com.google.adk.models.BaseLlmConnection
-
Closes the connection with an error.
- close(Throwable) - Method in class com.google.adk.models.GeminiLlmConnection
- close(Optional<Boolean>) - Method in class com.google.adk.agents.LiveRequest.Builder
- closeSession(Session) - Method in interface com.google.adk.sessions.BaseSessionService
-
Closes a session.
- code() - Method in class com.google.adk.agents.BaseAgentConfig.AgentRefConfig
- code() - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionInput
-
The code to execute.
- code(String) - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionInput.Builder
- codeBlockDelimiters() - Method in class com.google.adk.codeexecutors.BaseCodeExecutor
-
The list of the enclosing delimiters to identify the code blocks.
- CodeExecution - Class in com.google.adk.flows.llmflows
-
Handles Code Execution related logic.
- CodeExecutionInput() - Constructor for class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionInput
- CodeExecutionResult() - Constructor for class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionResult
- CodeExecutionUtils - Class in com.google.adk.codeexecutors
-
Utility functions for code execution.
- CodeExecutionUtils.CodeExecutionInput - Class in com.google.adk.codeexecutors
-
A structure that contains the input of code execution.
- CodeExecutionUtils.CodeExecutionInput.Builder - Class in com.google.adk.codeexecutors
-
Builder for
CodeExecutionUtils.CodeExecutionInput. - CodeExecutionUtils.CodeExecutionResult - Class in com.google.adk.codeexecutors
-
A structure that contains the result of code execution.
- CodeExecutionUtils.CodeExecutionResult.Builder - Class in com.google.adk.codeexecutors
-
Builder for
CodeExecutionUtils.CodeExecutionResult. - CodeExecutionUtils.File - Class in com.google.adk.codeexecutors
-
A structure that contains a file name and its content.
- CodeExecutionUtils.File.Builder - Class in com.google.adk.codeexecutors
-
Builder for
CodeExecutionUtils.File. - codeExecutor() - Method in class com.google.adk.agents.LlmAgent
- codeExecutor(BaseCodeExecutor) - Method in class com.google.adk.agents.LlmAgent.Builder
- CodeExecutorContext - Class in com.google.adk.codeexecutors
-
The persistent context used to configure the code executor.
- CodeExecutorContext(Map<String, Object>) - Constructor for class com.google.adk.codeexecutors.CodeExecutorContext
-
Initializes the code executor context.
- CollectionUtils - Class in com.google.adk.utils
-
Frequently used code snippets for collections.
- com.google.adk - package com.google.adk
- com.google.adk.agents - package com.google.adk.agents
- com.google.adk.artifacts - package com.google.adk.artifacts
- com.google.adk.codeexecutors - package com.google.adk.codeexecutors
- com.google.adk.events - package com.google.adk.events
- com.google.adk.examples - package com.google.adk.examples
- com.google.adk.flows - package com.google.adk.flows
- com.google.adk.flows.llmflows - package com.google.adk.flows.llmflows
- com.google.adk.flows.llmflows.audio - package com.google.adk.flows.llmflows.audio
- com.google.adk.memory - package com.google.adk.memory
- com.google.adk.models - package com.google.adk.models
- com.google.adk.plugins - package com.google.adk.plugins
- com.google.adk.runner - package com.google.adk.runner
- com.google.adk.sessions - package com.google.adk.sessions
- com.google.adk.tools - package com.google.adk.tools
- com.google.adk.tools.applicationintegrationtoolset - package com.google.adk.tools.applicationintegrationtoolset
- com.google.adk.tools.mcp - package com.google.adk.tools.mcp
- com.google.adk.tools.retrieval - package com.google.adk.tools.retrieval
- com.google.adk.utils - package com.google.adk.utils
- command() - Method in class com.google.adk.tools.mcp.StdioServerParameters
-
The command to execute for the stdio server.
- command(String) - Method in class com.google.adk.tools.mcp.StdioServerParameters.Builder
-
Sets the command to execute for the stdio server.
- ComponentRegistry - Class in com.google.adk.utils
-
A registry for storing and retrieving ADK instances by name.
- ComponentRegistry() - Constructor for class com.google.adk.utils.ComponentRegistry
- config() - Method in class com.google.adk.models.LlmRequest.Builder
- config() - Method in class com.google.adk.models.LlmRequest
-
Returns the configuration for content generation.
- config(GenerateContentConfig) - Method in class com.google.adk.models.LlmRequest.Builder
- CONFIG_TYPE - Static variable in class com.google.adk.tools.mcp.McpToolset
- ConfigAgentUtils - Class in com.google.adk.agents
-
Utility class for loading agent configurations from YAML files.
- ConfigAgentUtils.ConfigurationException - Exception Class in com.google.adk.agents
-
Exception thrown when configuration is invalid.
- configPath() - Method in class com.google.adk.agents.BaseAgentConfig.AgentRefConfig
- ConfigurationException(String) - Constructor for exception class com.google.adk.agents.ConfigAgentUtils.ConfigurationException
- ConfigurationException(String, Throwable) - Constructor for exception class com.google.adk.agents.ConfigAgentUtils.ConfigurationException
- connect(LlmRequest) - Method in class com.google.adk.models.BaseLlm
-
Creates a live connection to the LLM.
- connect(LlmRequest) - Method in class com.google.adk.models.Claude
- connect(LlmRequest) - Method in class com.google.adk.models.Gemini
- ConnectionDetails() - Constructor for class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient.ConnectionDetails
- connectionParams(SseServerParameters) - Method in class com.google.adk.tools.mcp.McpAsyncToolset.Builder
- connectionParams(ServerParameters) - Method in class com.google.adk.tools.mcp.McpAsyncToolset.Builder
- ConnectionsClient - Class in com.google.adk.tools.applicationintegrationtoolset
-
Utility class for interacting with the Google Cloud Connectors API.
- ConnectionsClient(String, String, String, IntegrationConnectorTool.HttpExecutor, ObjectMapper) - Constructor for class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
-
Initializes the ConnectionsClient.
- ConnectionsClient.ActionSchema - Class in com.google.adk.tools.applicationintegrationtoolset
-
Represents the schema for an action.
- ConnectionsClient.ConnectionDetails - Class in com.google.adk.tools.applicationintegrationtoolset
-
Represents details of a connection.
- ConnectionsClient.EntitySchemaAndOperations - Class in com.google.adk.tools.applicationintegrationtoolset
-
Represents the schema and available operations for an entity.
- connectorPayload(Map<String, Object>) - Method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- ContainerCodeExecutor - Class in com.google.adk.codeexecutors
-
A code executor that uses a custom container to execute code.
- ContainerCodeExecutor(Optional<String>, Optional<String>, Optional<String>) - Constructor for class com.google.adk.codeexecutors.ContainerCodeExecutor
-
Initializes the ContainerCodeExecutor.
- containsKey(Object) - Method in class com.google.adk.sessions.State
- containsValue(Object) - Method in class com.google.adk.sessions.State
- content() - Method in class com.google.adk.agents.LiveRequest
-
Returns the content of the request.
- content() - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.File
-
The base64-encoded bytes of the file content.
- content() - Method in class com.google.adk.events.Event
- content() - Method in class com.google.adk.memory.MemoryEntry
-
Returns the main content of the memory.
- content() - Method in class com.google.adk.models.LlmResponse
-
Returns the content of the first candidate in the response, if available.
- content(Content) - Method in class com.google.adk.agents.LiveRequest.Builder
- content(Content) - Method in class com.google.adk.agents.LiveRequestQueue
- content(Content) - Method in class com.google.adk.events.Event.Builder
- content(Content) - Method in class com.google.adk.memory.MemoryEntry.Builder
-
Sets the main content of the memory.
- content(Content) - Method in class com.google.adk.models.LlmResponse.Builder
- content(String) - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.File.Builder
- content(Optional<Content>) - Method in class com.google.adk.agents.LiveRequest.Builder
- content(Optional<Content>) - Method in class com.google.adk.events.Event.Builder
- content(Optional<Content>) - Method in class com.google.adk.models.LlmResponse.Builder
- contents() - Method in class com.google.adk.models.LlmRequest
-
Returns the list of content sent to the LLM.
- contents(List<Content>) - Method in class com.google.adk.models.LlmRequest.Builder
- Contents - Class in com.google.adk.flows.llmflows
-
RequestProcessorthat populates content in request for LLM flows. - Contents() - Constructor for class com.google.adk.flows.llmflows.Contents
- CONTINUE_OUTPUT_MESSAGE - Static variable in class com.google.adk.models.GeminiUtil
- ConversionUtils - Class in com.google.adk.tools.mcp
-
Utility class for converting between different representations of MCP tools.
- convertCodeExecutionParts(Content, List<String>, List<String>) - Static method in class com.google.adk.codeexecutors.CodeExecutionUtils
-
Converts the code execution parts to text parts in a Content.
- convertJsonSchemaToOpenApiSchema(Map<String, Object>) - Method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
-
Converts a JSON Schema dictionary to an OpenAPI schema dictionary.
- copyOf(InvocationContext) - Static method in class com.google.adk.agents.InvocationContext
- create(BaseAgent) - Static method in class com.google.adk.tools.AgentTool
- create(BaseAgent, boolean) - Static method in class com.google.adk.tools.AgentTool
- create(LlmRequest, Iterable<Event>) - Static method in class com.google.adk.flows.llmflows.RequestProcessor.RequestProcessingResult
- create(LlmResponse, Iterable<Event>, Optional<String>) - Static method in class com.google.adk.flows.llmflows.ResponseProcessor.ResponseProcessingResult
- create(BaseSessionService, BaseArtifactService, BaseAgent, Session, LiveRequestQueue, RunConfig) - Static method in class com.google.adk.agents.InvocationContext
-
Deprecated.
- create(BaseSessionService, BaseArtifactService, String, BaseAgent, Session, Content, RunConfig) - Static method in class com.google.adk.agents.InvocationContext
-
Deprecated.
- create(GenerateContentResponse) - Static method in class com.google.adk.models.LlmResponse
- create(Class<?>, String) - Static method in class com.google.adk.tools.FunctionTool
- create(Class<?>, String) - Static method in class com.google.adk.tools.LongRunningFunctionTool
- create(Object, Method) - Static method in class com.google.adk.tools.FunctionTool
- create(Object, String) - Static method in class com.google.adk.tools.FunctionTool
- create(Object, String) - Static method in class com.google.adk.tools.LongRunningFunctionTool
- create(Method) - Static method in class com.google.adk.tools.FunctionTool
- create(Method) - Static method in class com.google.adk.tools.LongRunningFunctionTool
- create(String) - Method in interface com.google.adk.models.LlmRegistry.LlmFactory
- create(List<Candidate>) - Static method in class com.google.adk.models.LlmResponse
- createAsyncSession() - Method in class com.google.adk.tools.mcp.McpSessionManager
- createOperation(String, String, String) - Static method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- createOperationRequest(String) - Static method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- createSession() - Method in class com.google.adk.tools.mcp.McpSessionManager
- createSession(String, String) - Method in interface com.google.adk.sessions.BaseSessionService
-
Creates a new session with the specified application name and user ID, using a default state (null) and allowing the service to generate a unique session ID.
- createSession(String, String, ConcurrentMap<String, Object>, String) - Method in class com.google.adk.sessions.InMemorySessionService
- createSession(String, String, ConcurrentMap<String, Object>, String) - Method in interface com.google.adk.sessions.BaseSessionService
-
Creates a new session with the specified parameters.
- createSession(String, String, ConcurrentMap<String, Object>, String) - Method in class com.google.adk.sessions.VertexAiSessionService
- credentials() - Method in class com.google.adk.models.VertexCredentials
D
- declaration() - Method in class com.google.adk.tools.AgentTool
- declaration() - Method in class com.google.adk.tools.applicationintegrationtoolset.IntegrationConnectorTool
- declaration() - Method in class com.google.adk.tools.BaseTool
-
Gets the
FunctionDeclarationrepresentation of this tool. - declaration() - Method in class com.google.adk.tools.FunctionTool
- declaration() - Method in class com.google.adk.tools.LoadArtifactsTool
- declaration() - Method in class com.google.adk.tools.mcp.AbstractMcpTool
- declaration() - Method in class com.google.adk.tools.retrieval.BaseRetrievalTool
- decodeContent(Content) - Static method in class com.google.adk.sessions.SessionUtils
-
Decodes Base64-encoded inline blobs in content.
- DEFAULT - Enum constant in enum class com.google.adk.agents.LlmAgent.IncludeContents
- DefaultMcpTransportBuilder - Class in com.google.adk.tools.mcp
-
The default builder for creating MCP client transports.
- DefaultMcpTransportBuilder() - Constructor for class com.google.adk.tools.mcp.DefaultMcpTransportBuilder
- deleteArtifact(String, String, String, String) - Method in interface com.google.adk.artifacts.BaseArtifactService
-
Deletes an artifact.
- deleteArtifact(String, String, String, String) - Method in class com.google.adk.artifacts.GcsArtifactService
-
Deletes all versions of the specified artifact from GCS.
- deleteArtifact(String, String, String, String) - Method in class com.google.adk.artifacts.InMemoryArtifactService
-
Deletes all versions of the given artifact.
- deleteOperation(String, String, String) - Static method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- deleteOperationRequest() - Static method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- deleteSession(String, String, String) - Method in interface com.google.adk.sessions.BaseSessionService
-
Deletes a specific session.
- deleteSession(String, String, String) - Method in class com.google.adk.sessions.InMemorySessionService
- deleteSession(String, String, String) - Method in class com.google.adk.sessions.VertexAiSessionService
- description - Variable in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient.ActionSchema
- description() - Method in class com.google.adk.agents.BaseAgent
-
Gets the one-line description of the agent's capability.
- description() - Method in class com.google.adk.agents.BaseAgentConfig
- description() - Element in annotation interface com.google.adk.tools.Annotations.Schema
- description() - Method in class com.google.adk.tools.BaseTool
- description(String) - Method in class com.google.adk.agents.LlmAgent.Builder
- description(String) - Method in class com.google.adk.agents.LoopAgent.Builder
- description(String) - Method in class com.google.adk.agents.ParallelAgent.Builder
- description(String) - Method in class com.google.adk.agents.SequentialAgent.Builder
- determineLlmFlow() - Method in class com.google.adk.agents.LlmAgent
- disallowTransferToParent() - Method in class com.google.adk.agents.LlmAgent
- disallowTransferToParent() - Method in class com.google.adk.agents.LlmAgentConfig
- disallowTransferToParent(boolean) - Method in class com.google.adk.agents.LlmAgent.Builder
- disallowTransferToPeers() - Method in class com.google.adk.agents.LlmAgent
- disallowTransferToPeers() - Method in class com.google.adk.agents.LlmAgentConfig
- disallowTransferToPeers(boolean) - Method in class com.google.adk.agents.LlmAgent.Builder
- displayName - Variable in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient.ActionSchema
E
- encodeContent(Content) - Static method in class com.google.adk.sessions.SessionUtils
-
Base64-encodes inline blobs in content.
- endInvocation() - Method in class com.google.adk.agents.InvocationContext
- endInvocation() - Method in class com.google.adk.events.EventActions
- endInvocation(boolean) - Method in class com.google.adk.events.EventActions.Builder
- EntitySchemaAndOperations() - Constructor for class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient.EntitySchemaAndOperations
- entrySet() - Method in class com.google.adk.sessions.State
- env() - Method in class com.google.adk.tools.mcp.StdioServerParameters
-
Optional environment variables.
- env(Map<String, String>) - Method in class com.google.adk.tools.mcp.StdioServerParameters.Builder
-
Sets the environment variables.
- equals(Object) - Method in record class com.google.adk.agents.Instruction.Provider
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.google.adk.agents.Instruction.Static
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class com.google.adk.agents.InvocationContext
- equals(Object) - Method in class com.google.adk.events.Event
- equals(Object) - Method in class com.google.adk.events.EventActions
- equals(Object) - Method in class com.google.adk.sessions.State
- equals(Object) - Method in record class com.google.adk.tools.LoadMemoryResponse
-
Indicates whether some other object is "equal to" this one.
- errorCode() - Method in class com.google.adk.events.Event
- errorCode() - Method in class com.google.adk.models.LlmResponse
-
Error code if the response is an error.
- errorCode(FinishReason) - Method in class com.google.adk.events.Event.Builder
- errorCode(FinishReason) - Method in class com.google.adk.models.LlmResponse.Builder
- errorCode(Optional<FinishReason>) - Method in class com.google.adk.events.Event.Builder
- errorCode(Optional<FinishReason>) - Method in class com.google.adk.models.LlmResponse.Builder
- errorMessage() - Method in class com.google.adk.events.Event
- errorMessage() - Method in class com.google.adk.models.LlmResponse
-
Error message if the response is an error.
- errorMessage(String) - Method in class com.google.adk.events.Event.Builder
- errorMessage(String) - Method in class com.google.adk.models.LlmResponse.Builder
- errorMessage(Optional<String>) - Method in class com.google.adk.events.Event.Builder
- errorMessage(Optional<String>) - Method in class com.google.adk.models.LlmResponse.Builder
- errorRetryAttempts() - Method in class com.google.adk.codeexecutors.BaseCodeExecutor
-
The number of attempts to retry on consecutive code execution errors.
- escalate() - Method in class com.google.adk.events.EventActions
- escalate(boolean) - Method in class com.google.adk.events.EventActions.Builder
- Event - Class in com.google.adk.events
-
Represents an event in a session.
- Event.Builder - Class in com.google.adk.events
-
Builder for
Event. - eventActions - Variable in class com.google.adk.agents.CallbackContext
- eventActions() - Method in class com.google.adk.agents.CallbackContext
-
Returns the EventActions associated with this context.
- EventActions - Class in com.google.adk.events
-
Represents the actions attached to an event.
- EventActions() - Constructor for class com.google.adk.events.EventActions
-
Default constructor for Jackson.
- EventActions.Builder - Class in com.google.adk.events
-
Builder for
EventActions. - events() - Method in class com.google.adk.agents.ReadonlyContext
-
Returns an unmodifiable view of the events of the session.
- events() - Method in class com.google.adk.flows.llmflows.RequestProcessor.RequestProcessingResult
- events() - Method in class com.google.adk.flows.llmflows.ResponseProcessor.ResponseProcessingResult
- events() - Method in class com.google.adk.sessions.ListEventsResponse
- events() - Method in class com.google.adk.sessions.Session
- events(List<Event>) - Method in class com.google.adk.sessions.ListEventsResponse.Builder
- events(List<Event>) - Method in class com.google.adk.sessions.Session.Builder
- EventStream - Class in com.google.adk.events
-
Iterable stream of
Eventobjects. - EventStream(Supplier<Event>) - Constructor for class com.google.adk.events.EventStream
-
Constructs a new event stream.
- Example - Class in com.google.adk.examples
-
Represents an few-shot example.
- Example() - Constructor for class com.google.adk.examples.Example
- Example.Builder - Class in com.google.adk.examples
-
Builder for constructing
Exampleinstances. - exampleProvider() - Method in class com.google.adk.agents.LlmAgent
- exampleProvider(BaseExampleProvider) - Method in class com.google.adk.agents.LlmAgent.Builder
- exampleProvider(Example...) - Method in class com.google.adk.agents.LlmAgent.Builder
- exampleProvider(List<Example>) - Method in class com.google.adk.agents.LlmAgent.Builder
- Examples - Class in com.google.adk.flows.llmflows
-
RequestProcessorthat populates examples in LLM request. - Examples() - Constructor for class com.google.adk.flows.llmflows.Examples
- ExampleTool - Class in com.google.adk.tools
-
A tool that injects (few-shot) examples into the outgoing LLM request as system instructions.
- ExampleTool.Builder - Class in com.google.adk.tools
- ExampleUtils - Class in com.google.adk.examples
-
Utility class for examples.
- executeCode(InvocationContext, CodeExecutionUtils.CodeExecutionInput) - Method in class com.google.adk.codeexecutors.BaseCodeExecutor
-
Executes code and return the code execution result.
- executeCode(InvocationContext, CodeExecutionUtils.CodeExecutionInput) - Method in class com.google.adk.codeexecutors.BuiltInCodeExecutor
- executeCode(InvocationContext, CodeExecutionUtils.CodeExecutionInput) - Method in class com.google.adk.codeexecutors.ContainerCodeExecutor
- executeCode(InvocationContext, CodeExecutionUtils.CodeExecutionInput) - Method in class com.google.adk.codeexecutors.VertexAiCodeExecutor
- executeCustomQueryRequest() - Static method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- executionId() - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionInput
-
The execution ID for the stateful code execution.
- executionId(Optional<String>) - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionInput.Builder
- executionResultDelimiters() - Method in class com.google.adk.codeexecutors.BaseCodeExecutor
-
The delimiters to format the code execution result.
- executor() - Method in class com.google.adk.agents.LlmAgent
- executor(Executor) - Method in class com.google.adk.agents.LlmAgent.Builder
- exitLoop(ToolContext) - Static method in class com.google.adk.tools.ExitLoopTool
-
Exit the
LoopAgentexecution. - ExitLoopTool - Class in com.google.adk.tools
-
Tool for exiting execution of
LoopAgent. - extractCodeAndTruncateContent(Content.Builder, List<List<String>>) - Static method in class com.google.adk.codeexecutors.CodeExecutionUtils
-
Extracts the first code block from the content and truncates everything after it.
F
- File() - Constructor for class com.google.adk.codeexecutors.CodeExecutionUtils.File
- filenames() - Method in class com.google.adk.artifacts.ListArtifactsResponse
- filenames(List<String>) - Method in class com.google.adk.artifacts.ListArtifactsResponse.Builder
- finalResponse() - Method in class com.google.adk.events.Event
-
Returns true if this is a final response.
- findAgent(String) - Method in class com.google.adk.agents.BaseAgent
-
Finds an agent (this or descendant) by name.
- findSubAgent(String) - Method in class com.google.adk.agents.BaseAgent
-
Recursively search sub agent by name.
- fromConfig(BaseAgentConfig, String) - Static method in class com.google.adk.agents.BaseAgent
-
Creates a new agent instance from a configuration object.
- fromConfig(LlmAgentConfig, String) - Static method in class com.google.adk.agents.LlmAgent
-
Creates an LlmAgent from configuration with full subagent support.
- fromConfig(BaseTool.ToolArgsConfig) - Static method in class com.google.adk.tools.ExampleTool
-
Overload to match resolver which passes only ToolArgsConfig.
- fromConfig(BaseTool.ToolArgsConfig, String) - Static method in class com.google.adk.tools.ExampleTool
-
Factory from YAML tool args.
- fromConfig(BaseTool.ToolConfig, String) - Static method in class com.google.adk.tools.BaseTool
-
Creates a tool instance from a config.
- fromConfig(BaseTool.ToolConfig, String) - Static method in class com.google.adk.tools.mcp.McpToolset
-
Creates a McpToolset instance from a config.
- fromConfig(String) - Static method in class com.google.adk.agents.ConfigAgentUtils
-
Load agent from a YAML config file path.
- fromJson(String) - Static method in class com.google.adk.events.Event
-
Parses an event from a JSON string.
- fromJson(String) - Static method in class com.google.adk.sessions.Session
- fromJsonNode(JsonNode, Class<T>) - Static method in class com.google.adk.JsonBaseModel
-
Deserializes a JsonNode to an object of the given type.
- fromJsonString(String) - Static method in class com.google.adk.agents.LiveRequest
-
Deserializes a Json string to a
LiveRequestobject. - fromJsonString(String, Class<T>) - Static method in class com.google.adk.JsonBaseModel
-
Deserializes a Json string to an object of the given type.
- func() - Method in class com.google.adk.tools.FunctionTool
-
Returns the underlying function
Method. - functionCallId() - Method in class com.google.adk.tools.ToolContext
- functionCallId(String) - Method in class com.google.adk.tools.ToolContext.Builder
- functionCallId(String) - Method in class com.google.adk.tools.ToolContext
- FunctionCallingUtils - Class in com.google.adk.tools
-
Utility class for function calling.
- functionCalls() - Method in class com.google.adk.events.Event
-
Returns all function calls from this event.
- functionResponses() - Method in class com.google.adk.events.Event
-
Returns all function responses from this event.
- Functions - Class in com.google.adk.flows.llmflows
-
Utility class for handling function calls.
- FunctionTool - Class in com.google.adk.tools
-
FunctionTool implements a customized function calling tool.
- FunctionTool(Object, Method, boolean) - Constructor for class com.google.adk.tools.FunctionTool
G
- GcsArtifactService - Class in com.google.adk.artifacts
-
An artifact service implementation using Google Cloud Storage (GCS).
- GcsArtifactService(String, Storage) - Constructor for class com.google.adk.artifacts.GcsArtifactService
-
Initializes the GcsArtifactService.
- Gemini - Class in com.google.adk.models
-
Represents the Gemini Generative AI model.
- Gemini(String, VertexCredentials) - Constructor for class com.google.adk.models.Gemini
-
Constructs a new Gemini instance with a Google Gemini API key.
- Gemini(String, Client) - Constructor for class com.google.adk.models.Gemini
-
Constructs a new Gemini instance.
- Gemini(String, String) - Constructor for class com.google.adk.models.Gemini
-
Constructs a new Gemini instance with a Google Gemini API key.
- Gemini.Builder - Class in com.google.adk.models
-
Builder for
Gemini. - GeminiLlmConnection - Class in com.google.adk.models
-
Manages a persistent, bidirectional connection to the Gemini model via WebSockets for real-time interaction.
- GeminiUtil - Class in com.google.adk.models
-
Request / Response utilities for
Gemini. - generateClientFunctionCallId() - Static method in class com.google.adk.flows.llmflows.Functions
-
Generates a unique ID for a function call.
- generateContent(LlmRequest, boolean) - Method in class com.google.adk.models.BaseLlm
-
Generates one content from the given LLM request and tools.
- generateContent(LlmRequest, boolean) - Method in class com.google.adk.models.Claude
- generateContent(LlmRequest, boolean) - Method in class com.google.adk.models.Gemini
- generateContentConfig() - Method in class com.google.adk.agents.LlmAgent
- generateContentConfig() - Method in class com.google.adk.agents.LlmAgentConfig
- generateContentConfig(GenerateContentConfig) - Method in class com.google.adk.agents.LlmAgent.Builder
- generateEventId() - Static method in class com.google.adk.events.Event
- get() - Method in class com.google.adk.agents.LiveRequestQueue
- get(Object) - Method in class com.google.adk.sessions.State
- get(String) - Method in class com.google.adk.tools.BaseTool.ToolArgsConfig
- get(String) - Method in class com.google.adk.utils.ComponentRegistry
-
Retrieves an object by name without type checking.
- get(String, Class<T>) - Method in class com.google.adk.utils.ComponentRegistry
-
Retrieves an object by name and attempts to cast it to the specified type.
- getActionOperation(String, String, String, String, String) - Static method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- getActionSchema(String) - Method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
-
Retrieves the input and output JSON schema for a given action.
- getAdditionalProperties() - Method in class com.google.adk.tools.BaseTool.ToolArgsConfig
- getAfterAgentCallbacks(List<Callbacks.AfterAgentCallbackBase>) - Static method in class com.google.adk.agents.CallbackUtil
-
Normalizes after-agent callbacks.
- getBeforeAgentCallbacks(List<Callbacks.BeforeAgentCallbackBase>) - Static method in class com.google.adk.agents.CallbackUtil
-
Normalizes before-agent callbacks.
- getConnectionDetails() - Method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
-
Retrieves service details for a given connection.
- getConnectorBaseSpec() - Static method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- getEntitySchemaAndOperations(String) - Method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
-
Retrieves the JSON schema and available operations for a given entity.
- getErrorCount(String) - Method in class com.google.adk.codeexecutors.CodeExecutorContext
-
Gets the error count from the session state.
- getExamples(String) - Method in interface com.google.adk.examples.BaseExampleProvider
- getExecutionId() - Method in class com.google.adk.codeexecutors.CodeExecutorContext
-
Gets the session ID for the code executor.
- getFirstSystemInstruction() - Method in class com.google.adk.models.LlmRequest
-
returns the first system instruction text from the request if present.
- getInputFiles() - Method in class com.google.adk.codeexecutors.CodeExecutorContext
-
Gets the code executor input file names from the session state.
- getInstance() - Static method in class com.google.adk.utils.ComponentRegistry
-
Returns the global singleton instance of ComponentRegistry.
- getInstruction() - Method in record class com.google.adk.agents.Instruction.Provider
-
Returns the value of the
getInstructionrecord component. - getLastUpdateTimeAsDouble() - Method in class com.google.adk.sessions.Session
- getLlm(String) - Static method in class com.google.adk.models.LlmRegistry
-
Returns an LLM instance for the given model name, using a cached or new factory-created instance.
- getLongRunningFunctionCalls(List<FunctionCall>, Map<String, BaseTool>) - Static method in class com.google.adk.flows.llmflows.Functions
- getMapper() - Static method in class com.google.adk.JsonBaseModel
- getMcpSession() - Method in class com.google.adk.tools.mcp.AbstractMcpTool
- getName() - Method in class com.google.adk.plugins.BasePlugin
- getOperation(String, String, String, String) - Static method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- getOperationRequest() - Static method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- getPlugin(String) - Method in class com.google.adk.plugins.PluginManager
-
Retrieves a registered plugin by its name.
- getProcessedFileNames() - Method in class com.google.adk.codeexecutors.CodeExecutorContext
-
Gets the processed file names from the session state.
- getResponseBody() - Method in class com.google.adk.sessions.ApiResponse
-
Gets the HttpEntity.
- getResponseBody() - Method in class com.google.adk.sessions.HttpApiResponse
-
Returns the HttpEntity from the response.
- getSession(String, String, String, Optional<GetSessionConfig>) - Method in interface com.google.adk.sessions.BaseSessionService
-
Retrieves a specific session, optionally filtering the events included.
- getSession(String, String, String, Optional<GetSessionConfig>) - Method in class com.google.adk.sessions.InMemorySessionService
- getSession(String, String, String, Optional<GetSessionConfig>) - Method in class com.google.adk.sessions.VertexAiSessionService
- GetSessionConfig - Class in com.google.adk.sessions
-
Configuration for getting a session.
- GetSessionConfig() - Constructor for class com.google.adk.sessions.GetSessionConfig
- GetSessionConfig.Builder - Class in com.google.adk.sessions
-
Builder for
GetSessionConfig. - getStateDelta() - Method in class com.google.adk.codeexecutors.CodeExecutorContext
-
Gets the state delta to update in the persistent session state.
- getSystemInstructions() - Method in class com.google.adk.models.LlmRequest
-
Returns all system instruction texts from the request as an immutable list.
- getTextFromLlmResponse(LlmResponse) - Static method in class com.google.adk.models.GeminiUtil
-
Extracts text content from the first part of an LlmResponse, if available.
- getToolNamesWithPrefix(String) - Method in class com.google.adk.utils.ComponentRegistry
- getTools(ReadonlyContext) - Method in class com.google.adk.tools.applicationintegrationtoolset.ApplicationIntegrationToolset
- getTools(ReadonlyContext) - Method in interface com.google.adk.tools.BaseToolset
-
Return all tools in the toolset based on the provided context.
- getTools(ReadonlyContext) - Method in class com.google.adk.tools.mcp.McpAsyncToolset
- getTools(ReadonlyContext) - Method in class com.google.adk.tools.mcp.McpToolset
- getTracer() - Static method in class com.google.adk.Telemetry
-
Gets the tracer.
- globalInstruction() - Method in class com.google.adk.agents.LlmAgent
- globalInstruction(Instruction) - Method in class com.google.adk.agents.LlmAgent.Builder
- globalInstruction(String) - Method in class com.google.adk.agents.LlmAgent.Builder
- GoogleSearchTool - Class in com.google.adk.tools
-
A built-in tool that is automatically invoked by Gemini 2 models to retrieve search results from Google Search.
- GoogleSearchTool() - Constructor for class com.google.adk.tools.GoogleSearchTool
- groundingMetadata() - Method in class com.google.adk.events.Event
-
The grounding metadata of the event.
- groundingMetadata() - Method in class com.google.adk.models.LlmResponse
-
Returns the grounding metadata of the first candidate in the response, if available.
- groundingMetadata(GroundingMetadata) - Method in class com.google.adk.events.Event.Builder
- groundingMetadata(GroundingMetadata) - Method in class com.google.adk.models.LlmResponse.Builder
- groundingMetadata(Optional<GroundingMetadata>) - Method in class com.google.adk.events.Event.Builder
- groundingMetadata(Optional<GroundingMetadata>) - Method in class com.google.adk.models.LlmResponse.Builder
H
- handleFunctionCalls(InvocationContext, Event, Map<String, BaseTool>) - Static method in class com.google.adk.flows.llmflows.Functions
-
Handles standard, non-streaming function calls.
- handleFunctionCallsLive(InvocationContext, Event, Map<String, BaseTool>) - Static method in class com.google.adk.flows.llmflows.Functions
-
Handles function calls in a live/streaming context, supporting background execution and stream termination.
- hasDelta() - Method in class com.google.adk.sessions.State
- hashCode() - Method in record class com.google.adk.agents.Instruction.Provider
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.google.adk.agents.Instruction.Static
-
Returns a hash code value for this object.
- hashCode() - Method in class com.google.adk.agents.InvocationContext
- hashCode() - Method in class com.google.adk.events.Event
- hashCode() - Method in class com.google.adk.events.EventActions
- hashCode() - Method in class com.google.adk.sessions.State
- hashCode() - Method in record class com.google.adk.tools.LoadMemoryResponse
-
Returns a hash code value for this object.
- hasTrailingCodeExecutionResult() - Method in class com.google.adk.events.Event
-
Returns whether the event has a trailing code execution result.
- headers() - Method in class com.google.adk.tools.mcp.SseServerParameters
-
Optional headers to include in the SSE connection request.
- headers() - Method in class com.google.adk.tools.mcp.StreamableHttpServerParameters
- headers(Map<String, Object>) - Method in class com.google.adk.tools.mcp.SseServerParameters.Builder
-
Sets the headers for the SSE connection request.
- headers(Map<String, String>) - Method in class com.google.adk.tools.mcp.StreamableHttpServerParameters.Builder
- host - Variable in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient.ConnectionDetails
- HttpApiClient - Class in com.google.adk.sessions
-
Base client for the HTTP APIs.
- HttpApiResponse - Class in com.google.adk.sessions
-
Wraps a real HTTP response to expose the methods needed by the GenAI SDK.
- HttpApiResponse(Response) - Constructor for class com.google.adk.sessions.HttpApiResponse
-
Constructs a HttpApiResponse instance with the response.
I
- id() - Method in class com.google.adk.events.Event
-
The event id.
- id() - Method in class com.google.adk.sessions.Session
- id(String) - Method in class com.google.adk.events.Event.Builder
- id(String) - Method in class com.google.adk.sessions.Session.Builder
- Identity - Class in com.google.adk.flows.llmflows
-
RequestProcessorthat gives the agent identity from the framework - Identity() - Constructor for class com.google.adk.flows.llmflows.Identity
- includeContents() - Method in class com.google.adk.agents.LlmAgent
- includeContents() - Method in class com.google.adk.agents.LlmAgentConfig
- includeContents(LlmAgent.IncludeContents) - Method in class com.google.adk.agents.LlmAgent.Builder
- incrementErrorCount(String) - Method in class com.google.adk.codeexecutors.CodeExecutorContext
-
Increments the error count from the session state.
- incrementLlmCallsCount() - Method in class com.google.adk.agents.InvocationContext
- initializeAsyncSession(Object) - Static method in class com.google.adk.tools.mcp.McpSessionManager
- initializeAsyncSession(Object, McpTransportBuilder) - Static method in class com.google.adk.tools.mcp.McpSessionManager
- initializeSession(Object) - Static method in class com.google.adk.tools.mcp.McpSessionManager
- initializeSession(Object, McpTransportBuilder) - Static method in class com.google.adk.tools.mcp.McpSessionManager
- injectSessionState(InvocationContext, String) - Static method in class com.google.adk.utils.InstructionUtils
-
Populates placeholders in an instruction template string with values from the session state or loaded artifacts.
- InMemoryArtifactService - Class in com.google.adk.artifacts
-
An in-memory implementation of the
BaseArtifactService. - InMemoryArtifactService() - Constructor for class com.google.adk.artifacts.InMemoryArtifactService
- InMemoryMemoryService - Class in com.google.adk.memory
-
An in-memory memory service for prototyping purposes only.
- InMemoryMemoryService() - Constructor for class com.google.adk.memory.InMemoryMemoryService
- InMemoryRunner - Class in com.google.adk.runner
-
The class for the in-memory GenAi runner, using in-memory artifact and session services.
- InMemoryRunner(BaseAgent) - Constructor for class com.google.adk.runner.InMemoryRunner
- InMemoryRunner(BaseAgent, String) - Constructor for class com.google.adk.runner.InMemoryRunner
- InMemoryRunner(BaseAgent, String, List<BasePlugin>) - Constructor for class com.google.adk.runner.InMemoryRunner
- InMemorySessionService - Class in com.google.adk.sessions
-
An in-memory implementation of
BaseSessionServiceassumingSessionobjects are mutable regarding their state map, events list, and last update time. - InMemorySessionService() - Constructor for class com.google.adk.sessions.InMemorySessionService
-
Creates a new instance of the in-memory session service with empty storage.
- input() - Method in class com.google.adk.examples.Example
- input(Content) - Method in class com.google.adk.examples.Example.Builder
- inputFiles() - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionInput
-
The input files available to the code.
- inputFiles(List<CodeExecutionUtils.File>) - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionInput.Builder
- inputSchema - Variable in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient.ActionSchema
- inputSchema() - Method in class com.google.adk.agents.LlmAgent
- inputSchema(Schema) - Method in class com.google.adk.agents.LlmAgent.Builder
- INSTANCE - Static variable in class com.google.adk.tools.ExitLoopTool
- INSTANCE - Static variable in class com.google.adk.tools.GoogleSearchTool
- INSTANCE - Static variable in class com.google.adk.tools.LoadArtifactsTool
- instruction() - Method in record class com.google.adk.agents.Instruction.Static
-
Returns the value of the
instructionrecord component. - instruction() - Method in class com.google.adk.agents.LlmAgent
- instruction() - Method in class com.google.adk.agents.LlmAgentConfig
- instruction(Instruction) - Method in class com.google.adk.agents.LlmAgent.Builder
- instruction(String) - Method in class com.google.adk.agents.LlmAgent.Builder
- Instruction - Interface in com.google.adk.agents
-
Represents an instruction that can be provided to an agent to guide its behavior.
- Instruction.Provider - Record Class in com.google.adk.agents
-
Returns an instruction dynamically constructed from the given context.
- Instruction.Static - Record Class in com.google.adk.agents
-
Plain instruction directly provided to the agent.
- Instructions - Class in com.google.adk.flows.llmflows
-
RequestProcessorthat handles instructions and global instructions for LLM flows. - Instructions() - Constructor for class com.google.adk.flows.llmflows.Instructions
- InstructionUtils - Class in com.google.adk.utils
-
Utility methods for handling instruction templates.
- IntegrationClient - Class in com.google.adk.tools.applicationintegrationtoolset
-
Utility class for interacting with Google Cloud Application Integration.
- IntegrationConnectorTool - Class in com.google.adk.tools.applicationintegrationtoolset
-
Application Integration Tool
- interrupted() - Method in class com.google.adk.events.Event
- interrupted() - Method in class com.google.adk.models.LlmResponse
-
Indicates that LLM was interrupted when generating the content.
- interrupted(Boolean) - Method in class com.google.adk.events.Event.Builder
- interrupted(Boolean) - Method in class com.google.adk.models.LlmResponse.Builder
- interrupted(Optional<Boolean>) - Method in class com.google.adk.events.Event.Builder
- interrupted(Optional<Boolean>) - Method in class com.google.adk.models.LlmResponse.Builder
- invocationContext - Variable in class com.google.adk.agents.ReadonlyContext
- InvocationContext - Class in com.google.adk.agents
-
The context for an agent invocation.
- InvocationContext(BaseSessionService, BaseArtifactService, BaseMemoryService, PluginManager, Optional<LiveRequestQueue>, Optional<String>, String, BaseAgent, Session, Optional<Content>, RunConfig, boolean) - Constructor for class com.google.adk.agents.InvocationContext
- InvocationContext(BaseSessionService, BaseArtifactService, BaseMemoryService, Optional<LiveRequestQueue>, Optional<String>, String, BaseAgent, Session, Optional<Content>, RunConfig, boolean) - Constructor for class com.google.adk.agents.InvocationContext
-
Deprecated.Use the
InvocationContext(com.google.adk.sessions.BaseSessionService, com.google.adk.artifacts.BaseArtifactService, com.google.adk.memory.BaseMemoryService, java.util.Optional<com.google.adk.agents.LiveRequestQueue>, java.util.Optional<java.lang.String>, java.lang.String, com.google.adk.agents.BaseAgent, com.google.adk.sessions.Session, java.util.Optional<com.google.genai.types.Content>, com.google.adk.agents.RunConfig, boolean)constructor with PluginManager directly instead - invocationId() - Method in class com.google.adk.agents.InvocationContext
- invocationId() - Method in class com.google.adk.agents.ReadonlyContext
-
Returns the ID of the current invocation.
- invocationId() - Method in class com.google.adk.events.Event
-
Id of the invocation that this event belongs to.
- invocationId(String) - Method in class com.google.adk.events.Event.Builder
- isEmpty() - Method in class com.google.adk.sessions.State
- isEmpty() - Method in class com.google.adk.tools.BaseTool.ToolArgsConfig
- isGemini2Model(String) - Static method in class com.google.adk.utils.ModelNameUtils
- isNullOrEmpty(Iterable<T>) - Static method in class com.google.adk.utils.CollectionUtils
-
Checks if the given iterable is null or empty.
- isStreaming() - Method in class com.google.adk.tools.FunctionTool
-
Returns true if the wrapped function returns a Flowable and can be used for streaming.
- isToolSelected(BaseTool, Optional<Object>, Optional<ReadonlyContext>) - Method in interface com.google.adk.tools.BaseToolset
-
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).
- iterator() - Method in class com.google.adk.events.EventStream
-
Returns an iterator that fetches events lazily.
J
- JAVA_ADK_VERSION - Static variable in class com.google.adk.Version
- JsonBaseModel - Class in com.google.adk
-
The base class for the types that needs JSON serialization/deserialization capability.
- JsonBaseModel() - Constructor for class com.google.adk.JsonBaseModel
K
L
- lastUpdateTime() - Method in class com.google.adk.sessions.Session
- lastUpdateTime(Instant) - Method in class com.google.adk.sessions.Session.Builder
- lastUpdateTime(Instant) - Method in class com.google.adk.sessions.Session
- lastUpdateTimeSeconds(double) - Method in class com.google.adk.sessions.Session.Builder
- listArtifactKeys(String, String, String) - Method in interface com.google.adk.artifacts.BaseArtifactService
-
Lists all the artifact filenames within a session.
- listArtifactKeys(String, String, String) - Method in class com.google.adk.artifacts.GcsArtifactService
-
Lists artifact filenames for a user and session.
- listArtifactKeys(String, String, String) - Method in class com.google.adk.artifacts.InMemoryArtifactService
-
Lists filenames of stored artifacts for the session.
- listArtifacts() - Method in class com.google.adk.agents.CallbackContext
-
Lists the filenames of the artifacts attached to the current session.
- ListArtifactsResponse - Class in com.google.adk.artifacts
-
Response for listing artifacts.
- ListArtifactsResponse() - Constructor for class com.google.adk.artifacts.ListArtifactsResponse
- ListArtifactsResponse.Builder - Class in com.google.adk.artifacts
-
Builder for
ListArtifactsResponse. - ListArtifactVersionsResponse - Class in com.google.adk.artifacts
-
Response for listing artifact versions.
- ListArtifactVersionsResponse() - Constructor for class com.google.adk.artifacts.ListArtifactVersionsResponse
- ListArtifactVersionsResponse.Builder - Class in com.google.adk.artifacts
-
Builder for
ListArtifactVersionsResponse. - listEvents(String, String, String) - Method in interface com.google.adk.sessions.BaseSessionService
-
Lists the events within a specific session.
- listEvents(String, String, String) - Method in class com.google.adk.sessions.InMemorySessionService
- listEvents(String, String, String) - Method in class com.google.adk.sessions.VertexAiSessionService
- ListEventsResponse - Class in com.google.adk.sessions
-
Response for listing events.
- ListEventsResponse() - Constructor for class com.google.adk.sessions.ListEventsResponse
- ListEventsResponse.Builder - Class in com.google.adk.sessions
-
Builder for
ListEventsResponse. - listOperation(String, String, String, String) - Static method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- listOperationRequest() - Static method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- listSessions(String, String) - Method in interface com.google.adk.sessions.BaseSessionService
-
Lists sessions associated with a specific application and user.
- listSessions(String, String) - Method in class com.google.adk.sessions.InMemorySessionService
- listSessions(String, String) - Method in class com.google.adk.sessions.VertexAiSessionService
- ListSessionsResponse - Class in com.google.adk.sessions
-
Response for listing sessions.
- ListSessionsResponse() - Constructor for class com.google.adk.sessions.ListSessionsResponse
- ListSessionsResponse.Builder - Class in com.google.adk.sessions
-
Builder for
ListSessionsResponse. - listVersions(String, String, String, String) - Method in interface com.google.adk.artifacts.BaseArtifactService
-
Lists all the versions (as revision IDs) of an artifact.
- listVersions(String, String, String, String) - Method in class com.google.adk.artifacts.GcsArtifactService
-
Lists all available versions for a given artifact.
- listVersions(String, String, String, String) - Method in class com.google.adk.artifacts.InMemoryArtifactService
-
Lists all versions of the specified artifact.
- liveConnectConfig() - Method in class com.google.adk.models.LlmRequest
-
Returns the configuration for live connections.
- liveConnectConfig(LiveConnectConfig) - Method in class com.google.adk.models.LlmRequest.Builder
- LiveRequest - Class in com.google.adk.agents
-
Represents a request to be sent to a live connection to the LLM model.
- LiveRequest.Builder - Class in com.google.adk.agents
-
Builder for constructing
LiveRequestinstances. - liveRequestQueue() - Method in class com.google.adk.agents.InvocationContext
- LiveRequestQueue - Class in com.google.adk.agents
-
A queue of live requests to be sent to the model.
- LiveRequestQueue() - Constructor for class com.google.adk.agents.LiveRequestQueue
- LlmAgent - Class in com.google.adk.agents
-
The LLM-based agent.
- LlmAgent(LlmAgent.Builder) - Constructor for class com.google.adk.agents.LlmAgent
- LlmAgent.Builder - Class in com.google.adk.agents
-
Builder for
LlmAgent. - LlmAgent.IncludeContents - Enum Class in com.google.adk.agents
-
Enum to define if contents of previous events should be included in requests to the underlying LLM.
- LlmAgentConfig - Class in com.google.adk.agents
-
Configuration for LlmAgent.
- LlmAgentConfig() - Constructor for class com.google.adk.agents.LlmAgentConfig
- LlmAgentConfig.CallbackRef - Class in com.google.adk.agents
-
Reference to a callback stored in the ComponentRegistry.
- LlmCallsLimitExceededException - Exception Class in com.google.adk.models
-
An error indicating that the limit for calls to the LLM has been exceeded.
- LlmCallsLimitExceededException(String) - Constructor for exception class com.google.adk.models.LlmCallsLimitExceededException
- LlmRegistry - Class in com.google.adk.models
-
Central registry for managing Large Language Model (LLM) instances.
- LlmRegistry.LlmFactory - Interface in com.google.adk.models
-
The factory interface for creating LLM instances.
- LlmRequest - Class in com.google.adk.models
-
Represents a request to be sent to the LLM.
- LlmRequest() - Constructor for class com.google.adk.models.LlmRequest
- LlmRequest.Builder - Class in com.google.adk.models
-
Builder for constructing
LlmRequestinstances. - LlmResponse - Class in com.google.adk.models
-
Represents a response received from the LLM.
- LlmResponse.Builder - Class in com.google.adk.models
-
Builder for constructing
LlmResponseinstances. - loadArtifact(String, String, String, String, Optional<Integer>) - Method in interface com.google.adk.artifacts.BaseArtifactService
-
Gets an artifact.
- loadArtifact(String, String, String, String, Optional<Integer>) - Method in class com.google.adk.artifacts.GcsArtifactService
-
Loads an artifact from GCS.
- loadArtifact(String, String, String, String, Optional<Integer>) - Method in class com.google.adk.artifacts.InMemoryArtifactService
-
Loads an artifact by version or latest.
- loadArtifact(String, Optional<Integer>) - Method in class com.google.adk.agents.CallbackContext
-
Loads an artifact from the artifact service associated with the current session.
- LoadArtifactsTool - Class in com.google.adk.tools
-
A tool that loads artifacts and adds them to the session.
- LoadArtifactsTool() - Constructor for class com.google.adk.tools.LoadArtifactsTool
- loadMemory(String, ToolContext) - Static method in class com.google.adk.tools.LoadMemoryTool
-
Loads the memory for the current user.
- LoadMemoryResponse - Record Class in com.google.adk.tools
-
The response from a load memory tool invocation.
- LoadMemoryResponse(List<MemoryEntry>) - Constructor for record class com.google.adk.tools.LoadMemoryResponse
-
Creates an instance of a
LoadMemoryResponserecord class. - LoadMemoryTool - Class in com.google.adk.tools
-
A tool that loads memory for the current user.
- LoadMemoryTool() - Constructor for class com.google.adk.tools.LoadMemoryTool
- location() - Method in class com.google.adk.models.VertexCredentials
- location() - Method in class com.google.adk.sessions.HttpApiClient
-
Returns the location for Vertex AI APIs.
- LoggingPlugin - Class in com.google.adk.plugins
-
A plugin that logs important information at each callback point.
- LoggingPlugin() - Constructor for class com.google.adk.plugins.LoggingPlugin
- LoggingPlugin(String) - Constructor for class com.google.adk.plugins.LoggingPlugin
- longRunning() - Method in class com.google.adk.tools.BaseTool
- LongRunningFunctionTool - Class in com.google.adk.tools
-
A function tool that returns the result asynchronously.
- longRunningToolIds() - Method in class com.google.adk.events.Event
-
Set of ids of the long running function calls.
- longRunningToolIds(Optional<Set<String>>) - Method in class com.google.adk.events.Event.Builder
- longRunningToolIds(Set<String>) - Method in class com.google.adk.events.Event.Builder
- LoopAgent - Class in com.google.adk.agents
-
An agent that runs its sub-agents sequentially in a loop.
- LoopAgent.Builder - Class in com.google.adk.agents
-
Builder for
LoopAgent.
M
- maxIterations(int) - Method in class com.google.adk.agents.LoopAgent.Builder
- maxIterations(Optional<Integer>) - Method in class com.google.adk.agents.LoopAgent.Builder
- maxLlmCalls() - Method in class com.google.adk.agents.RunConfig
- maxSteps - Variable in class com.google.adk.flows.llmflows.BaseLlmFlow
- maxSteps() - Method in class com.google.adk.agents.LlmAgent
- maxSteps(int) - Method in class com.google.adk.agents.LlmAgent.Builder
- McpAsyncTool - Class in com.google.adk.tools.mcp
-
Initializes a MCP tool.
- McpAsyncTool(McpSchema.Tool, McpAsyncClient, McpSessionManager) - Constructor for class com.google.adk.tools.mcp.McpAsyncTool
-
Creates a new McpAsyncTool with the default ObjectMapper.
- McpAsyncTool(McpSchema.Tool, McpAsyncClient, McpSessionManager, ObjectMapper) - Constructor for class com.google.adk.tools.mcp.McpAsyncTool
-
Creates a new McpAsyncTool
- McpAsyncToolset - Class in com.google.adk.tools.mcp
-
Connects to a MCP Server, and retrieves MCP Tools into ADK Tools.
- McpAsyncToolset(SseServerParameters, ObjectMapper, ToolPredicate) - Constructor for class com.google.adk.tools.mcp.McpAsyncToolset
-
Initializes the McpAsyncToolset with SSE server parameters.
- McpAsyncToolset(ServerParameters, ObjectMapper, ToolPredicate) - Constructor for class com.google.adk.tools.mcp.McpAsyncToolset
-
Initializes the McpAsyncToolset with local server parameters.
- McpAsyncToolset.Builder - Class in com.google.adk.tools.mcp
-
Builder for McpAsyncToolset
- McpInitializationException(String, Throwable) - Constructor for exception class com.google.adk.tools.mcp.McpToolsetException.McpInitializationException
- mcpSession - Variable in class com.google.adk.tools.mcp.AbstractMcpTool
- mcpSessionManager - Variable in class com.google.adk.tools.mcp.AbstractMcpTool
- McpSessionManager - Class in com.google.adk.tools.mcp
-
Manages MCP client sessions.
- McpSessionManager(Object) - Constructor for class com.google.adk.tools.mcp.McpSessionManager
- McpSessionManager(Object, McpTransportBuilder) - Constructor for class com.google.adk.tools.mcp.McpSessionManager
- mcpTool - Variable in class com.google.adk.tools.mcp.AbstractMcpTool
- McpTool - Class in com.google.adk.tools.mcp
-
Initializes a MCP tool.
- McpTool(McpSchema.Tool, McpSyncClient, McpSessionManager) - Constructor for class com.google.adk.tools.mcp.McpTool
-
Creates a new McpTool with the default ObjectMapper.
- McpTool(McpSchema.Tool, McpSyncClient, McpSessionManager, ObjectMapper) - Constructor for class com.google.adk.tools.mcp.McpTool
-
Creates a new McpTool with the default ObjectMapper.
- McpToolDeclarationException(String, Throwable) - Constructor for exception class com.google.adk.tools.mcp.McpToolException.McpToolDeclarationException
- McpToolException - Exception Class in com.google.adk.tools.mcp
-
Base exception for all errors originating from
AbstractMcpTooland its subclasses. - McpToolException(String, Throwable) - Constructor for exception class com.google.adk.tools.mcp.McpToolException
- McpToolException.McpToolDeclarationException - Exception Class in com.google.adk.tools.mcp
-
Exception thrown when there's an error during MCP tool declaration generated.
- McpToolLoadingException(String, Throwable) - Constructor for exception class com.google.adk.tools.mcp.McpToolsetException.McpToolLoadingException
- McpToolset - Class in com.google.adk.tools.mcp
-
Connects to a MCP Server, and retrieves MCP Tools into ADK Tools.
- McpToolset(McpSessionManager, ObjectMapper, Optional<Object>) - Constructor for class com.google.adk.tools.mcp.McpToolset
-
Initializes the McpToolset with an McpSessionManager.
- McpToolset(SseServerParameters) - Constructor for class com.google.adk.tools.mcp.McpToolset
-
Initializes the McpToolset with SSE server parameters, using the ObjectMapper used across the ADK and no tool filter.
- McpToolset(SseServerParameters, ObjectMapper) - Constructor for class com.google.adk.tools.mcp.McpToolset
-
Initializes the McpToolset with SSE server parameters and no tool filter.
- McpToolset(SseServerParameters, ObjectMapper, Optional<Object>) - Constructor for class com.google.adk.tools.mcp.McpToolset
-
Initializes the McpToolset with SSE server parameters.
- McpToolset(SseServerParameters, Optional<Object>) - Constructor for class com.google.adk.tools.mcp.McpToolset
-
Initializes the McpToolset with SSE server parameters, using the ObjectMapper used across the ADK.
- McpToolset(StreamableHttpServerParameters) - Constructor for class com.google.adk.tools.mcp.McpToolset
-
Initializes the McpToolset with Streamable HTTP server parameters, using the ObjectMapper used across the ADK and no tool filter.
- McpToolset(StreamableHttpServerParameters, ObjectMapper, Optional<Object>) - Constructor for class com.google.adk.tools.mcp.McpToolset
-
Initializes the McpToolset with Steamable HTTP server parameters.
- McpToolset(ServerParameters) - Constructor for class com.google.adk.tools.mcp.McpToolset
-
Initializes the McpToolset with local server parameters, using the ObjectMapper used across the ADK and no tool filter.
- McpToolset(ServerParameters, ObjectMapper) - Constructor for class com.google.adk.tools.mcp.McpToolset
-
Initializes the McpToolset with local server parameters and no tool filter.
- McpToolset(ServerParameters, ObjectMapper, Optional<Object>) - Constructor for class com.google.adk.tools.mcp.McpToolset
-
Initializes the McpToolset with local server parameters.
- McpToolset(ServerParameters, Optional<Object>) - Constructor for class com.google.adk.tools.mcp.McpToolset
-
Initializes the McpToolset with local server parameters, using the ObjectMapper used across the ADK.
- McpToolset.McpToolsetConfig - Class in com.google.adk.tools.mcp
-
Configuration class for MCPToolset.
- McpToolsetConfig() - Constructor for class com.google.adk.tools.mcp.McpToolset.McpToolsetConfig
- McpToolsetException - Exception Class in com.google.adk.tools.mcp
-
Base exception for all errors originating from
McpToolset. - McpToolsetException(String, Throwable) - Constructor for exception class com.google.adk.tools.mcp.McpToolsetException
- McpToolsetException.McpInitializationException - Exception Class in com.google.adk.tools.mcp
-
Exception thrown when there's an error during MCP session initialization.
- McpToolsetException.McpToolLoadingException - Exception Class in com.google.adk.tools.mcp
-
Exception thrown when there's an error during loading tools from the MCP server.
- McpTransportBuilder - Interface in com.google.adk.tools.mcp
-
Interface for building McpClientTransport instances.
- MEDIA_TYPE_APPLICATION_JSON - Static variable in class com.google.adk.sessions.HttpApiClient
- memories() - Method in class com.google.adk.memory.SearchMemoryResponse
-
Returns a list of memory entries that relate to the search query.
- memories() - Method in record class com.google.adk.tools.LoadMemoryResponse
-
Returns the value of the
memoriesrecord component. - MemoryEntry - Class in com.google.adk.memory
-
Represents one memory entry.
- MemoryEntry() - Constructor for class com.google.adk.memory.MemoryEntry
- MemoryEntry.Builder - Class in com.google.adk.memory
-
Builder for
MemoryEntry. - memoryService() - Method in class com.google.adk.agents.InvocationContext
- memoryService() - Method in class com.google.adk.runner.Runner
- merge(EventActions) - Method in class com.google.adk.events.EventActions.Builder
- mimeType() - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.File
-
The mime type of the file (e.g., "image/png").
- mimeType(String) - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.File.Builder
- model() - Method in class com.google.adk.agents.LlmAgent
- model() - Method in class com.google.adk.agents.LlmAgentConfig
- model() - Method in class com.google.adk.models.BaseLlm
-
Returns the name of the LLM model.
- model() - Method in class com.google.adk.models.LlmRequest
-
Returns the name of the LLM model to be used.
- model() - Method in class com.google.adk.models.Model
- model(BaseLlm) - Method in class com.google.adk.agents.LlmAgent.Builder
- model(BaseLlm) - Method in class com.google.adk.models.Model.Builder
- model(String) - Method in class com.google.adk.agents.LlmAgent.Builder
- model(String) - Method in class com.google.adk.models.LlmRequest.Builder
- Model - Class in com.google.adk.models
-
Represents a model by name or instance.
- Model() - Constructor for class com.google.adk.models.Model
- Model.Builder - Class in com.google.adk.models
-
Builder for
Model. - modelName() - Method in class com.google.adk.models.Model
- modelName(String) - Method in class com.google.adk.models.Gemini.Builder
-
Sets the name of the Gemini model to use.
- modelName(String) - Method in class com.google.adk.models.Model.Builder
- ModelNameUtils - Class in com.google.adk.utils
N
- name - Variable in class com.google.adk.plugins.BasePlugin
- name - Variable in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient.ConnectionDetails
- name() - Method in class com.google.adk.agents.BaseAgent
-
Gets the agent's unique name.
- name() - Method in class com.google.adk.agents.BaseAgentConfig
- name() - Method in class com.google.adk.agents.LlmAgentConfig.CallbackRef
- name() - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.File
-
The name of the file with file extension (e.g., "file.csv").
- name() - Element in annotation interface com.google.adk.tools.Annotations.Schema
- name() - Method in class com.google.adk.tools.BaseTool
- name() - Method in class com.google.adk.tools.BaseTool.ToolConfig
- name(String) - Method in class com.google.adk.agents.LlmAgent.Builder
- name(String) - Method in class com.google.adk.agents.LoopAgent.Builder
- name(String) - Method in class com.google.adk.agents.ParallelAgent.Builder
- name(String) - Method in class com.google.adk.agents.SequentialAgent.Builder
- name(String) - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.File.Builder
- NamedToolPredicate - Class in com.google.adk.tools
- NamedToolPredicate(String...) - Constructor for class com.google.adk.tools.NamedToolPredicate
- NamedToolPredicate(List<String>) - Constructor for class com.google.adk.tools.NamedToolPredicate
- newInvocationContextId() - Static method in class com.google.adk.agents.InvocationContext
- nextPageToken() - Method in class com.google.adk.sessions.ListEventsResponse
- nextPageToken(String) - Method in class com.google.adk.sessions.ListEventsResponse.Builder
- NONE - Enum constant in enum class com.google.adk.agents.LlmAgent.IncludeContents
- NONE - Enum constant in enum class com.google.adk.agents.RunConfig.StreamingMode
- numRecentEvents() - Method in class com.google.adk.sessions.GetSessionConfig
- numRecentEvents(int) - Method in class com.google.adk.sessions.GetSessionConfig.Builder
O
- OBJECT_MAPPER - Static variable in class com.google.adk.tools.applicationintegrationtoolset.ApplicationIntegrationToolset
- OBJECT_MAPPER - Static variable in class com.google.adk.tools.applicationintegrationtoolset.IntegrationClient
- objectMapper - Variable in class com.google.adk.tools.mcp.AbstractMcpTool
- objectMapper(ObjectMapper) - Method in class com.google.adk.tools.mcp.McpAsyncToolset.Builder
- of() - Static method in class com.google.adk.utils.Pairs
-
Returns a new, empty
ConcurrentHashMap. - of(K, V) - Static method in class com.google.adk.utils.Pairs
-
Returns a new
ConcurrentHashMapcontaining a single mapping. - of(K, V, K, V) - Static method in class com.google.adk.utils.Pairs
-
Returns a new
ConcurrentHashMapcontaining two mappings. - of(K, V, K, V, K, V) - Static method in class com.google.adk.utils.Pairs
-
Returns a new
ConcurrentHashMapcontaining three mappings. - of(K, V, K, V, K, V, K, V) - Static method in class com.google.adk.utils.Pairs
-
Returns a new
ConcurrentHashMapcontaining four mappings. - of(K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.adk.utils.Pairs
-
Returns a new
ConcurrentHashMapcontaining five mappings. - of(K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.adk.utils.Pairs
-
Returns a new
ConcurrentHashMapcontaining six mappings. - of(K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.adk.utils.Pairs
-
Returns a new
ConcurrentHashMapcontaining seven mappings. - of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.adk.utils.Pairs
-
Returns a new
ConcurrentHashMapcontaining eight mappings. - of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.adk.utils.Pairs
-
Returns a new
ConcurrentHashMapcontaining nine mappings. - of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.adk.utils.Pairs
-
Returns a new
ConcurrentHashMapcontaining ten mappings. - onEventCallback(InvocationContext, Event) - Method in class com.google.adk.plugins.BasePlugin
-
Callback executed after an event is yielded from runner.
- onEventCallback(InvocationContext, Event) - Method in class com.google.adk.plugins.LoggingPlugin
- onModelErrorCallback(CallbackContext, LlmRequest, Throwable) - Method in class com.google.adk.plugins.BasePlugin
-
Callback executed when a model call encounters an error.
- onModelErrorCallback(CallbackContext, LlmRequest, Throwable) - Method in class com.google.adk.plugins.LoggingPlugin
- onToolErrorCallback(BaseTool, Map<String, Object>, ToolContext, Throwable) - Method in class com.google.adk.plugins.BasePlugin
-
Callback executed when a tool call encounters an error.
- onToolErrorCallback(BaseTool, Map<String, Object>, ToolContext, Throwable) - Method in class com.google.adk.plugins.LoggingPlugin
- onUserMessageCallback(InvocationContext, Content) - Method in class com.google.adk.plugins.BasePlugin
-
Callback executed when a user message is received before an invocation starts.
- onUserMessageCallback(InvocationContext, Content) - Method in class com.google.adk.plugins.LoggingPlugin
- operations - Variable in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient.EntitySchemaAndOperations
- optimizeDataFile() - Method in class com.google.adk.codeexecutors.BaseCodeExecutor
-
If true, extract and process data files from the model request and attach them to the code executor.
- optimizeDataFile() - Method in class com.google.adk.codeexecutors.ContainerCodeExecutor
- output() - Method in class com.google.adk.examples.Example
- output(List<Content>) - Method in class com.google.adk.examples.Example.Builder
- outputAudioTranscription() - Method in class com.google.adk.agents.RunConfig
- outputFiles() - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionResult
-
The output files from the code execution.
- outputFiles(List<CodeExecutionUtils.File>) - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionResult.Builder
- outputKey() - Method in class com.google.adk.agents.LlmAgent
- outputKey() - Method in class com.google.adk.agents.LlmAgentConfig
- outputKey(String) - Method in class com.google.adk.agents.LlmAgent.Builder
- outputSchema - Variable in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient.ActionSchema
- outputSchema() - Method in class com.google.adk.agents.LlmAgent
- outputSchema(Schema) - Method in class com.google.adk.agents.LlmAgent.Builder
- outputSchema(Schema) - Method in class com.google.adk.models.LlmRequest.Builder
-
Sets the output schema for the LLM response.
P
- Pairs - Class in com.google.adk.utils
-
Utility class for creating ConcurrentHashMaps.
- ParallelAgent - Class in com.google.adk.agents
-
A shell agent that runs its sub-agents in parallel in isolated manner.
- ParallelAgent.Builder - Class in com.google.adk.agents
-
Builder for
ParallelAgent. - parentAgent() - Method in class com.google.adk.agents.BaseAgent
-
Retrieves the parent agent in the agent tree.
- parentAgent(BaseAgent) - Method in class com.google.adk.agents.BaseAgent
-
Sets the parent agent.
- partial() - Method in class com.google.adk.events.Event
-
partial is true for incomplete chunks from the LLM streaming response.
- partial() - Method in class com.google.adk.models.LlmResponse
-
Indicates whether the text content is part of a unfinished text stream.
- partial(Boolean) - Method in class com.google.adk.events.Event.Builder
- partial(Boolean) - Method in class com.google.adk.models.LlmResponse.Builder
- partial(Optional<Boolean>) - Method in class com.google.adk.events.Event.Builder
- partial(Optional<Boolean>) - Method in class com.google.adk.models.LlmResponse.Builder
- planning() - Method in class com.google.adk.agents.LlmAgent
- planning(boolean) - Method in class com.google.adk.agents.LlmAgent.Builder
- pluginManager() - Method in class com.google.adk.agents.InvocationContext
- pluginManager() - Method in class com.google.adk.runner.Runner
- PluginManager - Class in com.google.adk.plugins
-
Manages the registration and execution of plugins.
- PluginManager() - Constructor for class com.google.adk.plugins.PluginManager
- PluginManager(List<BasePlugin>) - Constructor for class com.google.adk.plugins.PluginManager
- populateClientFunctionCallId(Event) - Static method in class com.google.adk.flows.llmflows.Functions
-
Populates missing function call IDs in the provided event's content.
- postprocess(InvocationContext, Event, LlmRequest, LlmResponse) - Method in class com.google.adk.flows.llmflows.BaseLlmFlow
-
Post-processes the LLM response after receiving it from the LLM.
- prepareGenenerateContentRequest(LlmRequest, boolean) - Static method in class com.google.adk.models.GeminiUtil
-
Prepares an
LlmRequestfor the GenerateContent API. - preprocess(InvocationContext, LlmRequest) - Method in class com.google.adk.flows.llmflows.BaseLlmFlow
-
Pre-processes the LLM request before sending it to the LLM.
- processLlmRequest(LlmRequest.Builder) - Method in class com.google.adk.codeexecutors.BuiltInCodeExecutor
-
Pre-process the LLM request for Gemini 2.0+ models to use the code execution tool.
- processLlmRequest(LlmRequest.Builder, ToolContext) - Method in class com.google.adk.tools.BaseTool
-
Processes the outgoing
LlmRequest.Builder. - processLlmRequest(LlmRequest.Builder, ToolContext) - Method in class com.google.adk.tools.BuiltInCodeExecutionTool
- processLlmRequest(LlmRequest.Builder, ToolContext) - Method in class com.google.adk.tools.ExampleTool
- processLlmRequest(LlmRequest.Builder, ToolContext) - Method in class com.google.adk.tools.GoogleSearchTool
- processLlmRequest(LlmRequest.Builder, ToolContext) - Method in class com.google.adk.tools.LoadArtifactsTool
- processLlmRequest(LlmRequest.Builder, ToolContext) - Method in class com.google.adk.tools.LoadMemoryTool
- processLlmRequest(LlmRequest.Builder, ToolContext) - Method in class com.google.adk.tools.retrieval.VertexAiRagRetrieval
- processRequest(InvocationContext, LlmRequest) - Method in class com.google.adk.flows.llmflows.AgentTransfer
- processRequest(InvocationContext, LlmRequest) - Method in class com.google.adk.flows.llmflows.Basic
- processRequest(InvocationContext, LlmRequest) - Method in class com.google.adk.flows.llmflows.Contents
- processRequest(InvocationContext, LlmRequest) - Method in class com.google.adk.flows.llmflows.Examples
- processRequest(InvocationContext, LlmRequest) - Method in class com.google.adk.flows.llmflows.Identity
- processRequest(InvocationContext, LlmRequest) - Method in class com.google.adk.flows.llmflows.Instructions
- processRequest(InvocationContext, LlmRequest) - Method in interface com.google.adk.flows.llmflows.RequestProcessor
-
Process the LLM request as part of the pre-processing stage.
- processResponse(InvocationContext, LlmResponse) - Method in interface com.google.adk.flows.llmflows.ResponseProcessor
-
Process the LLM response as part of the post-processing stage.
- project() - Method in class com.google.adk.models.VertexCredentials
- project() - Method in class com.google.adk.sessions.HttpApiClient
-
Returns the project ID for Vertex AI APIs.
- Provider(Function<ReadonlyContext, Single<String>>) - Constructor for record class com.google.adk.agents.Instruction.Provider
-
Creates an instance of a
Providerrecord class. - put(String, Object) - Method in class com.google.adk.sessions.State
- put(String, Object) - Method in class com.google.adk.tools.BaseTool.ToolArgsConfig
- putAll(Map<? extends String, ? extends Object>) - Method in class com.google.adk.sessions.State
- putIfAbsent(String, Object) - Method in class com.google.adk.sessions.State
R
- ReadonlyContext - Class in com.google.adk.agents
-
Provides read-only access to the context of an agent run.
- ReadonlyContext(InvocationContext) - Constructor for class com.google.adk.agents.ReadonlyContext
- realtime(Blob) - Method in class com.google.adk.agents.LiveRequestQueue
- receive() - Method in interface com.google.adk.models.BaseLlmConnection
-
Receives the model responses.
- receive() - Method in class com.google.adk.models.GeminiLlmConnection
- recognize(RecognitionConfig, RecognitionAudio) - Method in interface com.google.adk.flows.llmflows.audio.SpeechClientInterface
-
Performs synchronous speech recognition.
- recognize(RecognitionConfig, RecognitionAudio) - Method in class com.google.adk.flows.llmflows.audio.VertexSpeechClient
-
Performs synchronous speech recognition on the given audio input.
- register(String, Object) - Method in class com.google.adk.utils.ComponentRegistry
-
Registers an object with the given name.
- registerLlm(String, LlmRegistry.LlmFactory) - Static method in class com.google.adk.models.LlmRegistry
-
Registers a factory for model names matching the given regex pattern.
- registerPlugin(BasePlugin) - Method in class com.google.adk.plugins.PluginManager
-
Registers a new plugin.
- remove(Object) - Method in class com.google.adk.sessions.State
- remove(Object, Object) - Method in class com.google.adk.sessions.State
- REMOVED - Static variable in class com.google.adk.sessions.State
-
Sentinel object to mark removed entries in the delta map.
- replace(String, Object) - Method in class com.google.adk.sessions.State
- replace(String, Object, Object) - Method in class com.google.adk.sessions.State
- request(String, String, String) - Method in class com.google.adk.sessions.HttpApiClient
-
Sends a Http request given the http method, path, and request json string.
- REQUEST_PROCESSORS - Static variable in class com.google.adk.flows.llmflows.SingleFlow
- requestedAuthConfigs() - Method in class com.google.adk.events.EventActions
- requestedAuthConfigs(ConcurrentMap<String, ConcurrentMap<String, Object>>) - Method in class com.google.adk.events.EventActions.Builder
- RequestProcessingResult() - Constructor for class com.google.adk.flows.llmflows.RequestProcessor.RequestProcessingResult
- requestProcessor - Static variable in class com.google.adk.flows.llmflows.CodeExecution
- RequestProcessor - Interface in com.google.adk.flows.llmflows
- RequestProcessor.RequestProcessingResult - Class in com.google.adk.flows.llmflows
- requestProcessors - Variable in class com.google.adk.flows.llmflows.BaseLlmFlow
- resetErrorCount(String) - Method in class com.google.adk.codeexecutors.CodeExecutorContext
-
Resets the error count from the session state.
- resolveAfterAgentCallback(String) - Static method in class com.google.adk.utils.ComponentRegistry
- resolveAfterModelCallback(String) - Static method in class com.google.adk.utils.ComponentRegistry
- resolveAfterToolCallback(String) - Static method in class com.google.adk.utils.ComponentRegistry
- resolveAgentClass(String) - Static method in class com.google.adk.utils.ComponentRegistry
-
Resolves the agent class based on the agent class name from the configuration.
- resolveAgentInstance(String) - Static method in class com.google.adk.utils.ComponentRegistry
-
Resolves an agent instance from the registry.
- resolveBeforeAgentCallback(String) - Static method in class com.google.adk.utils.ComponentRegistry
- resolveBeforeModelCallback(String) - Static method in class com.google.adk.utils.ComponentRegistry
- resolveBeforeToolCallback(String) - Static method in class com.google.adk.utils.ComponentRegistry
- resolvedModel() - Method in class com.google.adk.agents.LlmAgent
- resolveSubAgents(List<BaseAgentConfig.AgentRefConfig>, String) - Static method in class com.google.adk.agents.ConfigAgentUtils
-
Resolves subagent configurations into actual BaseAgent instances.
- resolveToolClass(String) - Static method in class com.google.adk.utils.ComponentRegistry
-
Resolves the tool class based on the tool class name from the configuration.
- resolveToolInstance(String) - Static method in class com.google.adk.utils.ComponentRegistry
- resolveToolsetClass(String) - Static method in class com.google.adk.utils.ComponentRegistry
-
Resolves a toolset class by name from the registry or by attempting to load it.
- resolveToolsetInstance(String) - Static method in class com.google.adk.utils.ComponentRegistry
-
Resolves a toolset instance by name from the registry.
- response(GenerateContentResponse) - Method in class com.google.adk.models.LlmResponse.Builder
- RESPONSE_PROCESSORS - Static variable in class com.google.adk.flows.llmflows.SingleFlow
- responseModalities() - Method in class com.google.adk.agents.RunConfig
- ResponseProcessingResult() - Constructor for class com.google.adk.flows.llmflows.ResponseProcessor.ResponseProcessingResult
- responseProcessor - Static variable in class com.google.adk.flows.llmflows.CodeExecution
- ResponseProcessor - Interface in com.google.adk.flows.llmflows
- ResponseProcessor.ResponseProcessingResult - Class in com.google.adk.flows.llmflows
- responseProcessors - Variable in class com.google.adk.flows.llmflows.BaseLlmFlow
- rootAgent() - Method in class com.google.adk.agents.BaseAgent
-
Returns the root agent for this agent by traversing up the parent chain.
- run(InvocationContext) - Method in interface com.google.adk.flows.BaseFlow
-
Run this flow.
- run(InvocationContext) - Method in class com.google.adk.flows.llmflows.BaseLlmFlow
-
Executes the full LLM flow by repeatedly calling
BaseLlmFlow.runOneStep(com.google.adk.agents.InvocationContext)until a final response is produced. - runAfterAgentCallback(BaseAgent, CallbackContext) - Method in class com.google.adk.plugins.PluginManager
- runAfterModelCallback(CallbackContext, LlmResponse) - Method in class com.google.adk.plugins.PluginManager
- runAfterRunCallback(InvocationContext) - Method in class com.google.adk.plugins.PluginManager
- runAfterToolCallback(BaseTool, Map<String, Object>, ToolContext, Map<String, Object>) - Method in class com.google.adk.plugins.PluginManager
- runAsync(InvocationContext) - Method in class com.google.adk.agents.BaseAgent
-
Runs the agent asynchronously.
- runAsync(Session, Content, RunConfig) - Method in class com.google.adk.runner.Runner
-
Runs the agent in the standard mode using a provided Session object.
- runAsync(String, String, Content) - Method in class com.google.adk.runner.Runner
-
Asynchronously runs the agent for a given user and session, processing a new message and using a default
RunConfig. - runAsync(String, String, Content, RunConfig) - Method in class com.google.adk.runner.Runner
-
Runs the agent in the standard mode.
- runAsync(Map<String, Object>, ToolContext) - Method in class com.google.adk.tools.AgentTool
- runAsync(Map<String, Object>, ToolContext) - Method in class com.google.adk.tools.applicationintegrationtoolset.IntegrationConnectorTool
- runAsync(Map<String, Object>, ToolContext) - Method in class com.google.adk.tools.BaseTool
-
Calls a tool.
- runAsync(Map<String, Object>, ToolContext) - Method in class com.google.adk.tools.FunctionTool
- runAsync(Map<String, Object>, ToolContext) - Method in class com.google.adk.tools.LoadArtifactsTool
- runAsync(Map<String, Object>, ToolContext) - Method in class com.google.adk.tools.mcp.McpAsyncTool
- runAsync(Map<String, Object>, ToolContext) - Method in class com.google.adk.tools.mcp.McpTool
- runAsync(Map<String, Object>, ToolContext) - Method in class com.google.adk.tools.retrieval.VertexAiRagRetrieval
- runAsyncImpl(InvocationContext) - Method in class com.google.adk.agents.BaseAgent
-
Agent-specific asynchronous logic.
- runAsyncImpl(InvocationContext) - Method in class com.google.adk.agents.LlmAgent
- runAsyncImpl(InvocationContext) - Method in class com.google.adk.agents.LoopAgent
- runAsyncImpl(InvocationContext) - Method in class com.google.adk.agents.ParallelAgent
-
Runs sub-agents in parallel and emits their events.
- runAsyncImpl(InvocationContext) - Method in class com.google.adk.agents.SequentialAgent
-
Runs sub-agents sequentially.
- runBeforeAgentCallback(BaseAgent, CallbackContext) - Method in class com.google.adk.plugins.PluginManager
- runBeforeModelCallback(CallbackContext, LlmRequest) - Method in class com.google.adk.plugins.PluginManager
- runBeforeRunCallback(InvocationContext) - Method in class com.google.adk.plugins.PluginManager
- runBeforeToolCallback(BaseTool, Map<String, Object>, ToolContext) - Method in class com.google.adk.plugins.PluginManager
- runConfig() - Method in class com.google.adk.agents.InvocationContext
- RunConfig - Class in com.google.adk.agents
-
Configuration to modify an agent's LLM's underlying behavior.
- RunConfig() - Constructor for class com.google.adk.agents.RunConfig
- RunConfig.Builder - Class in com.google.adk.agents
-
Builder for
RunConfig. - RunConfig.StreamingMode - Enum Class in com.google.adk.agents
-
Streaming mode for the runner.
- runLive(InvocationContext) - Method in class com.google.adk.agents.BaseAgent
-
Runs the agent synchronously.
- runLive(InvocationContext) - Method in interface com.google.adk.flows.BaseFlow
- runLive(InvocationContext) - Method in class com.google.adk.flows.llmflows.BaseLlmFlow
-
Executes the LLM flow in streaming mode.
- runLive(Session, LiveRequestQueue, RunConfig) - Method in class com.google.adk.runner.Runner
-
Runs the agent in live mode, appending generated events to the session.
- runLive(String, String, LiveRequestQueue, RunConfig) - Method in class com.google.adk.runner.Runner
-
Retrieves the session and runs the agent in live mode.
- runLiveImpl(InvocationContext) - Method in class com.google.adk.agents.BaseAgent
-
Agent-specific synchronous logic.
- runLiveImpl(InvocationContext) - Method in class com.google.adk.agents.LlmAgent
- runLiveImpl(InvocationContext) - Method in class com.google.adk.agents.LoopAgent
- runLiveImpl(InvocationContext) - Method in class com.google.adk.agents.ParallelAgent
-
Not supported for ParallelAgent.
- runLiveImpl(InvocationContext) - Method in class com.google.adk.agents.SequentialAgent
-
Runs sub-agents sequentially in live mode.
- Runner - Class in com.google.adk.runner
-
The main class for the GenAI Agents runner.
- Runner(BaseAgent, String, BaseArtifactService, BaseSessionService) - Constructor for class com.google.adk.runner.Runner
-
Deprecated.Use the constructor with
BaseMemoryServiceinstead even if with a null if you don't need the memory service. - Runner(BaseAgent, String, BaseArtifactService, BaseSessionService, BaseMemoryService) - Constructor for class com.google.adk.runner.Runner
-
Creates a new
Runner. - Runner(BaseAgent, String, BaseArtifactService, BaseSessionService, BaseMemoryService, List<BasePlugin>) - Constructor for class com.google.adk.runner.Runner
-
Creates a new
Runnerwith a list of plugins. - runOnEventCallback(InvocationContext, Event) - Method in class com.google.adk.plugins.PluginManager
- runOnModelErrorCallback(CallbackContext, LlmRequest, Throwable) - Method in class com.google.adk.plugins.PluginManager
- runOnToolErrorCallback(BaseTool, Map<String, Object>, ToolContext, Throwable) - Method in class com.google.adk.plugins.PluginManager
- runOnUserMessageCallback(InvocationContext, Content) - Method in class com.google.adk.plugins.PluginManager
- runWithSessionId(String, Content, RunConfig) - Method in class com.google.adk.runner.Runner
-
Runs the agent asynchronously with a default user ID.
S
- sanitizeRequestForGeminiApi(LlmRequest) - Static method in class com.google.adk.models.GeminiUtil
-
Sanitizes the request to ensure it is compatible with the Gemini API backend.
- saveArtifact(String, Part) - Method in class com.google.adk.agents.CallbackContext
-
Saves an artifact and records it as a delta for the current session.
- saveArtifact(String, String, String, String, Part) - Method in interface com.google.adk.artifacts.BaseArtifactService
-
Saves an artifact.
- saveArtifact(String, String, String, String, Part) - Method in class com.google.adk.artifacts.GcsArtifactService
-
Saves an artifact to GCS and assigns a new version.
- saveArtifact(String, String, String, String, Part) - Method in class com.google.adk.artifacts.InMemoryArtifactService
-
Saves an artifact in memory and assigns a new version.
- saveInputBlobsAsArtifacts() - Method in class com.google.adk.agents.RunConfig
- schema - Variable in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient.EntitySchemaAndOperations
- SchemaUtils - Class in com.google.adk
-
Utility class for validating schemas.
- searchMemory(String) - Method in class com.google.adk.tools.ToolContext
-
Searches the memory of the current user.
- searchMemory(String, String, String) - Method in interface com.google.adk.memory.BaseMemoryService
-
Searches for sessions that match the query asynchronously.
- searchMemory(String, String, String) - Method in class com.google.adk.memory.InMemoryMemoryService
- SearchMemoryResponse - Class in com.google.adk.memory
-
Represents the response from a memory search.
- SearchMemoryResponse() - Constructor for class com.google.adk.memory.SearchMemoryResponse
- SearchMemoryResponse.Builder - Class in com.google.adk.memory
-
Builder for
SearchMemoryResponse. - send(LiveRequest) - Method in class com.google.adk.agents.LiveRequestQueue
- sendContent(Content) - Method in interface com.google.adk.models.BaseLlmConnection
-
Sends a user content to the model.
- sendContent(Content) - Method in class com.google.adk.models.GeminiLlmConnection
- sendHistory(List<Content>) - Method in interface com.google.adk.models.BaseLlmConnection
-
Sends the conversation history to the model.
- sendHistory(List<Content>) - Method in class com.google.adk.models.GeminiLlmConnection
- sendRealtime(Blob) - Method in interface com.google.adk.models.BaseLlmConnection
-
Sends a chunk of audio or a frame of video to the model in realtime.
- sendRealtime(Blob) - Method in class com.google.adk.models.GeminiLlmConnection
- SequentialAgent - Class in com.google.adk.agents
-
An agent that runs its sub-agents sequentially.
- SequentialAgent.Builder - Class in com.google.adk.agents
-
Builder for
SequentialAgent. - serviceName - Variable in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient.ConnectionDetails
- session() - Method in class com.google.adk.agents.InvocationContext
- Session - Class in com.google.adk.sessions
- Session.Builder - Class in com.google.adk.sessions
-
Builder for
Session. - SessionException - Exception Class in com.google.adk.sessions
-
Represents a general error that occurred during session management operations.
- SessionException(String) - Constructor for exception class com.google.adk.sessions.SessionException
- SessionException(String, Throwable) - Constructor for exception class com.google.adk.sessions.SessionException
- SessionException(Throwable) - Constructor for exception class com.google.adk.sessions.SessionException
- sessionId() - Method in class com.google.adk.agents.ReadonlyContext
-
Returns the session ID.
- sessionIds() - Method in class com.google.adk.sessions.ListSessionsResponse
- SessionNotFoundException - Exception Class in com.google.adk.sessions
-
Indicates that a requested session could not be found.
- SessionNotFoundException(String) - Constructor for exception class com.google.adk.sessions.SessionNotFoundException
- SessionNotFoundException(String, Throwable) - Constructor for exception class com.google.adk.sessions.SessionNotFoundException
- sessions() - Method in class com.google.adk.sessions.ListSessionsResponse
- sessions(List<Session>) - Method in class com.google.adk.sessions.ListSessionsResponse.Builder
- sessionService() - Method in class com.google.adk.agents.InvocationContext
- sessionService() - Method in class com.google.adk.runner.Runner
- SessionUtils - Class in com.google.adk.sessions
-
Utility functions for session service.
- SessionUtils() - Constructor for class com.google.adk.sessions.SessionUtils
- setActions(EventActions) - Method in class com.google.adk.events.Event
- setActions(EventActions) - Method in class com.google.adk.tools.ToolContext
- setAdditionalProperty(String, Object) - Method in class com.google.adk.tools.BaseTool.ToolArgsConfig
- setAfterAgentCallbacks(List<LlmAgentConfig.CallbackRef>) - Method in class com.google.adk.agents.LlmAgentConfig
- setAfterModelCallbacks(List<LlmAgentConfig.CallbackRef>) - Method in class com.google.adk.agents.LlmAgentConfig
- setAfterToolCallbacks(List<LlmAgentConfig.CallbackRef>) - Method in class com.google.adk.agents.LlmAgentConfig
- setAgentClass(String) - Method in class com.google.adk.agents.BaseAgentConfig
- setArgs(BaseTool.ToolArgsConfig) - Method in class com.google.adk.tools.BaseTool.ToolConfig
- setArtifactDelta(ConcurrentMap<String, Part>) - Method in class com.google.adk.events.EventActions
- setAuthor(String) - Method in class com.google.adk.events.Event
- setBeforeAgentCallbacks(List<LlmAgentConfig.CallbackRef>) - Method in class com.google.adk.agents.LlmAgentConfig
- setBeforeModelCallbacks(List<LlmAgentConfig.CallbackRef>) - Method in class com.google.adk.agents.LlmAgentConfig
- setBeforeToolCallbacks(List<LlmAgentConfig.CallbackRef>) - Method in class com.google.adk.agents.LlmAgentConfig
- setCode(String) - Method in class com.google.adk.agents.BaseAgentConfig.AgentRefConfig
- setConfigPath(String) - Method in class com.google.adk.agents.BaseAgentConfig.AgentRefConfig
- setContent(Optional<Content>) - Method in class com.google.adk.events.Event
- setCredentials(GoogleCredentials) - Method in class com.google.adk.models.VertexCredentials.Builder
- setCredentials(Optional<GoogleCredentials>) - Method in class com.google.adk.models.VertexCredentials.Builder
- setDescription(String) - Method in class com.google.adk.agents.BaseAgentConfig
- setDescription(String) - Method in class com.google.adk.tools.ExampleTool.Builder
- setDisallowTransferToParent(Boolean) - Method in class com.google.adk.agents.LlmAgentConfig
- setDisallowTransferToPeers(Boolean) - Method in class com.google.adk.agents.LlmAgentConfig
- setEndInvocation(boolean) - Method in class com.google.adk.agents.InvocationContext
- setEndInvocation(boolean) - Method in class com.google.adk.events.EventActions
- setEndInvocation(Optional<Boolean>) - Method in class com.google.adk.events.EventActions
- setErrorCode(Optional<FinishReason>) - Method in class com.google.adk.events.Event
- setErrorMessage(Optional<String>) - Method in class com.google.adk.events.Event
- setEscalate(boolean) - Method in class com.google.adk.events.EventActions
- setEscalate(Optional<Boolean>) - Method in class com.google.adk.events.EventActions
- setExampleProvider(BaseExampleProvider) - Method in class com.google.adk.tools.ExampleTool.Builder
- setExecutionId(String) - Method in class com.google.adk.codeexecutors.CodeExecutorContext
-
Sets the session ID for the code executor.
- setGenerateContentConfig(GenerateContentConfig) - Method in class com.google.adk.agents.LlmAgentConfig
- setGroundingMetadata(Optional<GroundingMetadata>) - Method in class com.google.adk.events.Event
- setId(String) - Method in class com.google.adk.events.Event
- setIncludeContents(LlmAgent.IncludeContents) - Method in class com.google.adk.agents.LlmAgentConfig
- setInstance(ComponentRegistry) - Static method in class com.google.adk.utils.ComponentRegistry
-
Updates the global singleton instance with a new ComponentRegistry.
- setInstruction(String) - Method in class com.google.adk.agents.LlmAgentConfig
- setInterrupted(Optional<Boolean>) - Method in class com.google.adk.events.Event
- setInvocationId(String) - Method in class com.google.adk.events.Event
- setLocation(String) - Method in class com.google.adk.models.VertexCredentials.Builder
- setLocation(Optional<String>) - Method in class com.google.adk.models.VertexCredentials.Builder
- setLongRunningToolIds(Optional<Set<String>>) - Method in class com.google.adk.events.Event
- setMaxLlmCalls(int) - Method in class com.google.adk.agents.RunConfig.Builder
- setMemories(List<MemoryEntry>) - Method in class com.google.adk.memory.SearchMemoryResponse.Builder
-
Sets the list of memory entries using a list.
- setModel(String) - Method in class com.google.adk.agents.LlmAgentConfig
- setName(String) - Method in class com.google.adk.agents.BaseAgentConfig
- setName(String) - Method in class com.google.adk.agents.LlmAgentConfig.CallbackRef
- setName(String) - Method in class com.google.adk.tools.BaseTool.ToolConfig
- setName(String) - Method in class com.google.adk.tools.ExampleTool.Builder
- setOutputAudioTranscription(AudioTranscriptionConfig) - Method in class com.google.adk.agents.RunConfig.Builder
- setOutputKey(String) - Method in class com.google.adk.agents.LlmAgentConfig
- setPartial(Optional<Boolean>) - Method in class com.google.adk.events.Event
- setProject(String) - Method in class com.google.adk.models.VertexCredentials.Builder
- setProject(Optional<String>) - Method in class com.google.adk.models.VertexCredentials.Builder
- setRequestedAuthConfigs(ConcurrentMap<String, ConcurrentMap<String, Object>>) - Method in class com.google.adk.events.EventActions
- setResponseModalities(Iterable<Modality>) - Method in class com.google.adk.agents.RunConfig.Builder
- setSaveInputBlobsAsArtifacts(boolean) - Method in class com.google.adk.agents.RunConfig.Builder
- setSkipSummarization(boolean) - Method in class com.google.adk.events.EventActions
- setSkipSummarization(Boolean) - Method in class com.google.adk.events.EventActions
- setSkipSummarization(Optional<Boolean>) - Method in class com.google.adk.events.EventActions
- setSpeechConfig(SpeechConfig) - Method in class com.google.adk.agents.RunConfig.Builder
- setSseServerParams(SseServerParameters) - Method in class com.google.adk.tools.mcp.McpToolset.McpToolsetConfig
- setStateDelta(ConcurrentMap<String, Object>) - Method in class com.google.adk.events.EventActions
- setStdioServerParams(StdioServerParameters) - Method in class com.google.adk.tools.mcp.McpToolset.McpToolsetConfig
- setStreamingMode(RunConfig.StreamingMode) - Method in class com.google.adk.agents.RunConfig.Builder
- setSubAgents(List<BaseAgentConfig.AgentRefConfig>) - Method in class com.google.adk.agents.BaseAgentConfig
- setTimestamp(long) - Method in class com.google.adk.events.Event
- setToolFilter(List<String>) - Method in class com.google.adk.tools.mcp.McpToolset.McpToolsetConfig
- setTools(List<BaseTool.ToolConfig>) - Method in class com.google.adk.agents.LlmAgentConfig
- setTransferToAgent(String) - Method in class com.google.adk.events.EventActions
- setTransferToAgent(Optional<String>) - Method in class com.google.adk.events.EventActions
- setTurnComplete(Optional<Boolean>) - Method in class com.google.adk.events.Event
- shouldClose() - Method in class com.google.adk.agents.LiveRequest
-
Extracts boolean value from the close field or returns false if unset.
- shouldEmitAccumulatedText(LlmResponse) - Static method in class com.google.adk.models.GeminiUtil
-
Determines if accumulated text should be emitted based on the current LlmResponse.
- SingleFlow - Class in com.google.adk.flows.llmflows
-
Basic LLM flow with fixed request and response processors.
- SingleFlow() - Constructor for class com.google.adk.flows.llmflows.SingleFlow
- SingleFlow(List<RequestProcessor>, List<ResponseProcessor>, Optional<Integer>) - Constructor for class com.google.adk.flows.llmflows.SingleFlow
- SingleFlow(Optional<Integer>) - Constructor for class com.google.adk.flows.llmflows.SingleFlow
- size() - Method in class com.google.adk.sessions.State
- size() - Method in class com.google.adk.tools.BaseTool.ToolArgsConfig
- skipSummarization() - Method in class com.google.adk.events.EventActions
- skipSummarization(boolean) - Method in class com.google.adk.events.EventActions.Builder
- SpeechClientInterface - Interface in com.google.adk.flows.llmflows.audio
-
Interface for a speech-to-text client.
- speechConfig() - Method in class com.google.adk.agents.RunConfig
- SSE - Enum constant in enum class com.google.adk.agents.RunConfig.StreamingMode
- sseEndpoint() - Method in class com.google.adk.tools.mcp.SseServerParameters
-
The endpoint to connect to on the SSE server.
- sseEndpoint(String) - Method in class com.google.adk.tools.mcp.SseServerParameters.Builder
-
Sets the endpoint to connect to on the SSE server.
- sseReadTimeout() - Method in class com.google.adk.tools.mcp.SseServerParameters
-
The timeout for reading data from the SSE stream.
- sseReadTimeout() - Method in class com.google.adk.tools.mcp.StreamableHttpServerParameters
- sseReadTimeout(Duration) - Method in class com.google.adk.tools.mcp.SseServerParameters.Builder
-
Sets the timeout for reading data from the SSE stream.
- sseReadTimeout(Duration) - Method in class com.google.adk.tools.mcp.StreamableHttpServerParameters.Builder
- SseServerParameters - Class in com.google.adk.tools.mcp
-
Parameters for establishing a MCP Server-Sent Events (SSE) connection.
- SseServerParameters() - Constructor for class com.google.adk.tools.mcp.SseServerParameters
- SseServerParameters.Builder - Class in com.google.adk.tools.mcp
-
Builder for
SseServerParameters. - sseServerParams() - Method in class com.google.adk.tools.mcp.McpToolset.McpToolsetConfig
- state() - Method in class com.google.adk.agents.CallbackContext
-
Returns the delta-aware state of the current callback.
- state() - Method in class com.google.adk.agents.ReadonlyContext
-
Returns an unmodifiable view of the state of the session.
- state() - Method in class com.google.adk.sessions.Session
- state(State) - Method in class com.google.adk.sessions.Session.Builder
- state(ConcurrentMap<String, Object>) - Method in class com.google.adk.sessions.Session.Builder
- State - Class in com.google.adk.sessions
-
A
Stateobject that also keeps track of the changes to the state. - State(ConcurrentMap<String, Object>) - Constructor for class com.google.adk.sessions.State
- State(ConcurrentMap<String, Object>, ConcurrentMap<String, Object>) - Constructor for class com.google.adk.sessions.State
- stateDelta() - Method in class com.google.adk.events.EventActions
- stateDelta(ConcurrentMap<String, Object>) - Method in class com.google.adk.events.EventActions.Builder
- stateful() - Method in class com.google.adk.codeexecutors.BaseCodeExecutor
-
Whether the code executor is stateful.
- stateful() - Method in class com.google.adk.codeexecutors.ContainerCodeExecutor
- Static(String) - Constructor for record class com.google.adk.agents.Instruction.Static
-
Creates an instance of a
Staticrecord class. - stderr() - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionResult
-
The standard error of the code execution.
- stderr(String) - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionResult.Builder
- StdioServerParameters - Class in com.google.adk.tools.mcp
-
Parameters for establishing a MCP stdio connection.
- StdioServerParameters() - Constructor for class com.google.adk.tools.mcp.StdioServerParameters
- StdioServerParameters.Builder - Class in com.google.adk.tools.mcp
-
Builder for
StdioServerParameters. - stdioServerParams() - Method in class com.google.adk.tools.mcp.McpToolset.McpToolsetConfig
- stdout() - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionResult
-
The standard output of the code execution.
- stdout(String) - Method in class com.google.adk.codeexecutors.CodeExecutionUtils.CodeExecutionResult.Builder
- stepsCompleted - Variable in class com.google.adk.flows.llmflows.BaseLlmFlow
- stream() - Method in class com.google.adk.agents.ActiveStreamingTool
-
Returns the active stream of this streaming tool.
- stream(LiveRequestQueue) - Method in class com.google.adk.agents.ActiveStreamingTool
-
Sets the active stream of this streaming tool.
- StreamableHttpServerParameters - Class in com.google.adk.tools.mcp
-
Server parameters for Streamable HTTP client transport.
- StreamableHttpServerParameters(String, Map<String, String>, Duration, Duration, Boolean) - Constructor for class com.google.adk.tools.mcp.StreamableHttpServerParameters
-
Server parameters for Streamable HTTP client transport.
- StreamableHttpServerParameters.Builder - Class in com.google.adk.tools.mcp
-
Builder for
StreamableHttpServerParameters. - streamingMode() - Method in class com.google.adk.agents.RunConfig
- stringifyContent() - Method in class com.google.adk.events.Event
-
Converts the event content into a readable string.
- stripThoughts(List<Content>) - Static method in class com.google.adk.models.GeminiUtil
-
Removes any `Part` that contains only a `thought` from the content list.
- subAgents() - Method in class com.google.adk.agents.BaseAgent
- subAgents() - Method in class com.google.adk.agents.BaseAgentConfig
- subAgents(BaseAgent...) - Method in class com.google.adk.agents.LlmAgent.Builder
- subAgents(BaseAgent...) - Method in class com.google.adk.agents.LoopAgent.Builder
- subAgents(BaseAgent...) - Method in class com.google.adk.agents.ParallelAgent.Builder
- subAgents(BaseAgent...) - Method in class com.google.adk.agents.SequentialAgent.Builder
- subAgents(List<? extends BaseAgent>) - Method in class com.google.adk.agents.LlmAgent.Builder
- subAgents(List<? extends BaseAgent>) - Method in class com.google.adk.agents.LoopAgent.Builder
- subAgents(List<? extends BaseAgent>) - Method in class com.google.adk.agents.ParallelAgent.Builder
- subAgents(List<? extends BaseAgent>) - Method in class com.google.adk.agents.SequentialAgent.Builder
T
- task() - Method in class com.google.adk.agents.ActiveStreamingTool
-
Returns the active task of this streaming tool.
- task(Disposable) - Method in class com.google.adk.agents.ActiveStreamingTool
-
Sets the active task of this streaming tool.
- Telemetry - Class in com.google.adk
-
Utility class for capturing and reporting telemetry data within the ADK.
- TEMP_PREFIX - Static variable in class com.google.adk.sessions.State
- terminateOnClose() - Method in class com.google.adk.tools.mcp.StreamableHttpServerParameters
- terminateOnClose(boolean) - Method in class com.google.adk.tools.mcp.StreamableHttpServerParameters.Builder
- test(BaseTool, Optional<ReadonlyContext>) - Method in class com.google.adk.tools.NamedToolPredicate
- test(BaseTool, Optional<ReadonlyContext>) - Method in interface com.google.adk.tools.ToolPredicate
-
Decides if the given tool is selected.
- timeout() - Method in class com.google.adk.tools.mcp.SseServerParameters
-
The timeout for the initial connection attempt.
- timeout() - Method in class com.google.adk.tools.mcp.StreamableHttpServerParameters
- timeout(Duration) - Method in class com.google.adk.tools.mcp.SseServerParameters.Builder
-
Sets the timeout for the initial connection attempt.
- timeout(Duration) - Method in class com.google.adk.tools.mcp.StreamableHttpServerParameters.Builder
- timestamp() - Method in class com.google.adk.events.Event
-
The timestamp of the event.
- timestamp() - Method in class com.google.adk.memory.MemoryEntry
-
Returns the timestamp when the original content of this memory happened, or null if not set.
- timestamp(long) - Method in class com.google.adk.events.Event.Builder
- timestamp(String) - Method in class com.google.adk.memory.MemoryEntry.Builder
-
Sets the timestamp when the original content of this memory happened.
- timestamp(Instant) - Method in class com.google.adk.memory.MemoryEntry.Builder
-
A convenience method to set the timestamp from an
Instantobject, formatted as an ISO 8601 string. - timestamp(Optional<Long>) - Method in class com.google.adk.events.Event.Builder
- toBuilder() - Method in class com.google.adk.agents.LiveRequest
- toBuilder() - Method in class com.google.adk.events.Event
-
Creates a builder pre-filled with this event's values.
- toBuilder() - Method in class com.google.adk.events.EventActions
- toBuilder() - Method in class com.google.adk.examples.Example
- toBuilder() - Method in class com.google.adk.memory.MemoryEntry
-
Creates a new builder with a copy of this entry's values.
- toBuilder() - Method in class com.google.adk.models.LlmRequest
- toBuilder() - Method in class com.google.adk.models.LlmResponse
- toBuilder() - Method in class com.google.adk.models.Model
- toBuilder() - Method in class com.google.adk.tools.ToolContext
- toJson() - Method in class com.google.adk.JsonBaseModel
- toJsonNode(Object) - Static method in class com.google.adk.JsonBaseModel
-
Serializes an object to a JsonNode.
- toJsonString(Object) - Static method in class com.google.adk.JsonBaseModel
-
Serializes an object to a Json string.
- ToolArgsConfig() - Constructor for class com.google.adk.tools.BaseTool.ToolArgsConfig
- ToolConfig() - Constructor for class com.google.adk.tools.BaseTool.ToolConfig
- ToolConfig(String, BaseTool.ToolArgsConfig) - Constructor for class com.google.adk.tools.BaseTool.ToolConfig
- ToolContext - Class in com.google.adk.tools
-
ToolContext object provides a structured context for executing tools or functions.
- ToolContext.Builder - Class in com.google.adk.tools
-
Builder for
ToolContext. - toolFilter() - Method in class com.google.adk.tools.mcp.McpToolset.McpToolsetConfig
- toolFilter(ToolPredicate) - Method in class com.google.adk.tools.mcp.McpAsyncToolset.Builder
- toolFilter(List<String>) - Method in class com.google.adk.tools.mcp.McpAsyncToolset.Builder
- ToolPredicate - Interface in com.google.adk.tools
-
Functional interface to decide whether a tool should be exposed to the LLM based on the current context.
- tools() - Method in class com.google.adk.agents.LlmAgent
- tools() - Method in class com.google.adk.agents.LlmAgentConfig
- tools() - Method in class com.google.adk.models.LlmRequest
-
Returns a map of tools available to the LLM.
- tools(Object...) - Method in class com.google.adk.agents.LlmAgent.Builder
- tools(List<?>) - Method in class com.google.adk.agents.LlmAgent.Builder
- toolsets() - Method in class com.google.adk.agents.LlmAgent
- toolsUnion() - Method in class com.google.adk.agents.LlmAgent
- toServerParameters() - Method in class com.google.adk.tools.mcp.StdioServerParameters
-
Converts this to a
ServerParametersinstance. - toString() - Method in record class com.google.adk.agents.Instruction.Provider
-
Returns a string representation of this record class.
- toString() - Method in record class com.google.adk.agents.Instruction.Static
-
Returns a string representation of this record class.
- toString() - Method in class com.google.adk.events.Event
- toString() - Method in class com.google.adk.sessions.Session
- toString() - Method in record class com.google.adk.tools.LoadMemoryResponse
-
Returns a string representation of this record class.
- traceCallLlm(InvocationContext, String, LlmRequest, LlmResponse) - Static method in class com.google.adk.Telemetry
-
Traces a call to the LLM.
- traceSendData(InvocationContext, String, List<Content>) - Static method in class com.google.adk.Telemetry
-
Traces the sending of data (history or new content) to the agent/model.
- traceToolCall(Map<String, Object>) - Static method in class com.google.adk.Telemetry
-
Traces tool call arguments.
- traceToolResponse(InvocationContext, String, Event) - Static method in class com.google.adk.Telemetry
-
Traces tool response event.
- transferToAgent() - Method in class com.google.adk.events.EventActions
- transferToAgent() - Method in class com.google.adk.flows.llmflows.ResponseProcessor.ResponseProcessingResult
- transferToAgent(String) - Method in class com.google.adk.events.EventActions.Builder
- transferToAgent(String, ToolContext) - Static method in class com.google.adk.flows.llmflows.AgentTransfer
-
Marks the target agent for transfer using the tool context.
- turnComplete() - Method in class com.google.adk.events.Event
- turnComplete() - Method in class com.google.adk.models.LlmResponse
-
Indicates whether the response from the model is complete.
- turnComplete(Boolean) - Method in class com.google.adk.events.Event.Builder
- turnComplete(Boolean) - Method in class com.google.adk.models.LlmResponse.Builder
- turnComplete(Optional<Boolean>) - Method in class com.google.adk.events.Event.Builder
- turnComplete(Optional<Boolean>) - Method in class com.google.adk.models.LlmResponse.Builder
U
- updateCodeExecutionResult(String, String, String, String) - Method in class com.google.adk.codeexecutors.CodeExecutorContext
-
Updates the code execution result.
- updatedRequest() - Method in class com.google.adk.flows.llmflows.RequestProcessor.RequestProcessingResult
- updatedResponse() - Method in class com.google.adk.flows.llmflows.ResponseProcessor.ResponseProcessingResult
- updateOperation(String, String, String) - Static method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- updateOperationRequest(String) - Static method in class com.google.adk.tools.applicationintegrationtoolset.ConnectionsClient
- url() - Method in class com.google.adk.tools.mcp.SseServerParameters
-
The URL of the SSE server.
- url() - Method in class com.google.adk.tools.mcp.StreamableHttpServerParameters
- url(String) - Method in class com.google.adk.tools.mcp.SseServerParameters.Builder
-
Sets the URL of the SSE server.
- usageMetadata() - Method in class com.google.adk.models.LlmResponse
-
Usage metadata about the response(s).
- usageMetadata(GenerateContentResponseUsageMetadata) - Method in class com.google.adk.models.LlmResponse.Builder
- usageMetadata(Optional<GenerateContentResponseUsageMetadata>) - Method in class com.google.adk.models.LlmResponse.Builder
- USER_PREFIX - Static variable in class com.google.adk.sessions.State
- userContent() - Method in class com.google.adk.agents.InvocationContext
- userContent() - Method in class com.google.adk.agents.ReadonlyContext
-
Returns the user content that initiated this invocation.
- userId() - Method in class com.google.adk.agents.InvocationContext
- userId() - Method in class com.google.adk.sessions.Session
- userId(String) - Method in class com.google.adk.sessions.Session.Builder
V
- validate() - Method in class com.google.adk.agents.LlmAgent.Builder
- validateMapOnSchema(Map<String, Object>, Schema, Boolean) - Static method in class com.google.adk.SchemaUtils
-
Validates a map against a schema.
- validateOutputSchema(String, Schema) - Static method in class com.google.adk.SchemaUtils
-
Validates an output string against a schema.
- valueOf(String) - Static method in enum class com.google.adk.agents.LlmAgent.IncludeContents
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.google.adk.agents.RunConfig.StreamingMode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.google.adk.agents.LlmAgent.IncludeContents
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.google.adk.agents.RunConfig.StreamingMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Method in class com.google.adk.sessions.State
- Version - Class in com.google.adk
-
Tracks the current ADK version.
- versions() - Method in class com.google.adk.artifacts.ListArtifactVersionsResponse
- versions(List<Part>) - Method in class com.google.adk.artifacts.ListArtifactVersionsResponse.Builder
- vertexAI() - Method in class com.google.adk.sessions.HttpApiClient
-
Returns whether the client is using Vertex AI APIs.
- VertexAiCodeExecutor - Class in com.google.adk.codeexecutors
-
A code executor that uses Vertex Code Interpreter Extension to execute code.
- VertexAiCodeExecutor(String) - Constructor for class com.google.adk.codeexecutors.VertexAiCodeExecutor
-
Initializes the VertexAiCodeExecutor.
- VertexAiRagRetrieval - Class in com.google.adk.tools.retrieval
-
A retrieval tool that fetches context from Vertex AI RAG.
- VertexAiRagRetrieval(String, String, VertexRagServiceClient, String, List<RetrieveContextsRequest.VertexRagStore.RagResource>, Double) - Constructor for class com.google.adk.tools.retrieval.VertexAiRagRetrieval
- VertexAiSessionService - Class in com.google.adk.sessions
-
Connects to the managed Vertex AI Session Service.
- VertexAiSessionService() - Constructor for class com.google.adk.sessions.VertexAiSessionService
-
Creates a session service with default configuration.
- VertexAiSessionService(String, String, HttpApiClient) - Constructor for class com.google.adk.sessions.VertexAiSessionService
-
Creates a new instance of the Vertex AI Session Service with a custom ApiClient for testing.
- VertexAiSessionService(String, String, Optional<GoogleCredentials>, Optional<HttpOptions>) - Constructor for class com.google.adk.sessions.VertexAiSessionService
-
Creates a session service with specified project, location, credentials, and HTTP options.
- vertexCredentials(VertexCredentials) - Method in class com.google.adk.models.Gemini.Builder
-
Sets the Vertex AI credentials.
- VertexCredentials - Class in com.google.adk.models
-
Credentials for accessing Gemini models through Vertex.
- VertexCredentials() - Constructor for class com.google.adk.models.VertexCredentials
- VertexCredentials.Builder - Class in com.google.adk.models
-
Builder for
VertexCredentials. - VertexSpeechClient - Class in com.google.adk.flows.llmflows.audio
-
Implementation of SpeechClientInterface using Vertex AI SpeechClient.
- VertexSpeechClient() - Constructor for class com.google.adk.flows.llmflows.audio.VertexSpeechClient
-
Constructs a VertexSpeechClient, initializing the underlying Google Cloud SpeechClient.
W
- wrapCallResult(ObjectMapper, String, McpSchema.CallToolResult) - Static method in class com.google.adk.tools.mcp.AbstractMcpTool
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
InvocationContext(com.google.adk.sessions.BaseSessionService, com.google.adk.artifacts.BaseArtifactService, com.google.adk.memory.BaseMemoryService, java.util.Optional<com.google.adk.agents.LiveRequestQueue>, java.util.Optional<java.lang.String>, java.lang.String, com.google.adk.agents.BaseAgent, com.google.adk.sessions.Session, java.util.Optional<com.google.genai.types.Content>, com.google.adk.agents.RunConfig, boolean)constructor directly instead