Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- 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
- adkToMcpToolType(BaseTool) - Method in class com.google.adk.tools.mcp.ConversionUtils
- afterAgentCallback() - Method in class com.google.adk.agents.BaseAgent
- 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
- afterAgentCallbackSync(Callbacks.AfterAgentCallbackSync) - Method in class com.google.adk.agents.LlmAgent.Builder
- afterModelCallback() - Method in class com.google.adk.agents.LlmAgent
- afterModelCallback(Callbacks.AfterModelCallback) - Method in class com.google.adk.agents.LlmAgent.Builder
- afterModelCallbackSync(Callbacks.AfterModelCallbackSync) - Method in class com.google.adk.agents.LlmAgent.Builder
- 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
- 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
- agentName() - Method in class com.google.adk.agents.ReadonlyContext
-
Returns the name of the agent currently running.
- 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
-
RequestProcessor
that 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() - Constructor for class com.google.adk.tools.Annotations
- 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
Client
instance 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.network
-
The API response contains a response to a call to the GenAI APIs.
- 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.network.ApiResponse
- 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
- 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
- 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(String) - Method in class com.google.adk.events.Event.Builder
- AutoFlow - Class in com.google.adk.flows.llmflows
- AutoFlow() - 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>, Callbacks.BeforeAgentCallback, Callbacks.AfterAgentCallback) - Constructor for class com.google.adk.agents.BaseAgent
- BaseArtifactService - Interface in com.google.adk.artifacts
-
Base interface for artifact services.
- 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
- 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
- Basic - Class in com.google.adk.flows.llmflows
-
RequestProcessor
that 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(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
- beforeAgentCallbackSync(Callbacks.BeforeAgentCallbackSync) - Method in class com.google.adk.agents.LlmAgent.Builder
- beforeModelCallback() - Method in class com.google.adk.agents.LlmAgent
- beforeModelCallback(Callbacks.BeforeModelCallback) - Method in class com.google.adk.agents.LlmAgent.Builder
- beforeModelCallbackSync(Callbacks.BeforeModelCallbackSync) - Method in class com.google.adk.agents.LlmAgent.Builder
- beforeToolCallback() - Method in class com.google.adk.agents.LlmAgent
- beforeToolCallback(Callbacks.BeforeToolCallback) - Method in class com.google.adk.agents.LlmAgent.Builder
- 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.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
- 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.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.models.Gemini.Builder
-
Builds the
Gemini
instance. - 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.mcp.SseServerParameters.Builder
-
Builds a new
SseServerParameters
instance. - build() - Method in class com.google.adk.tools.ToolContext.Builder
- builder() - Static method in class com.google.adk.agents.LiveRequest
- builder() - Static method in class com.google.adk.agents.LlmAgent
-
Returns a
LlmAgent.Builder
forLlmAgent
. - 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.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.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.mcp.SseServerParameters
-
Creates a new builder for
SseServerParameters
. - 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() - 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.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.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.mcp.SseServerParameters.Builder
- Builder(String) - Constructor for class com.google.adk.sessions.Session.Builder
- buildExampleSi(BaseExampleProvider, String) - Static method in class com.google.adk.examples.ExampleUtils
- buildSchemaFromType(Type) - Static method in class com.google.adk.tools.FunctionCallingUtils
- 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
C
- call(CallbackContext) - Method in interface com.google.adk.agents.Callbacks.AfterAgentCallback
- call(CallbackContext) - Method in interface com.google.adk.agents.Callbacks.AfterAgentCallbackSync
- call(CallbackContext) - Method in interface com.google.adk.agents.Callbacks.BeforeAgentCallback
- call(CallbackContext) - Method in interface com.google.adk.agents.Callbacks.BeforeAgentCallbackSync
- call(CallbackContext, LlmRequest) - Method in interface com.google.adk.agents.Callbacks.BeforeModelCallback
- call(CallbackContext, LlmRequest) - Method in interface com.google.adk.agents.Callbacks.BeforeModelCallbackSync
- call(CallbackContext, LlmResponse) - Method in interface com.google.adk.agents.Callbacks.AfterModelCallback
- 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
- 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
- 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
- Callbacks - Class in com.google.adk.agents
- Callbacks() - Constructor for class com.google.adk.agents.Callbacks
- Callbacks.AfterAgentCallback - Interface in com.google.adk.agents
- Callbacks.AfterAgentCallbackSync - Interface in com.google.adk.agents
- Callbacks.AfterModelCallback - Interface in com.google.adk.agents
- Callbacks.AfterModelCallbackSync - Interface in com.google.adk.agents
- Callbacks.AfterToolCallback - Interface in com.google.adk.agents
- Callbacks.AfterToolCallbackSync - Interface in com.google.adk.agents
- Callbacks.BeforeAgentCallback - Interface in com.google.adk.agents
- Callbacks.BeforeAgentCallbackSync - Interface in com.google.adk.agents
- Callbacks.BeforeModelCallback - Interface in com.google.adk.agents
- Callbacks.BeforeModelCallbackSync - Interface in com.google.adk.agents
- Callbacks.BeforeToolCallback - Interface in com.google.adk.agents
- Callbacks.BeforeToolCallbackSync - Interface in com.google.adk.agents
- 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.
- clear() - Method in class com.google.adk.sessions.State
- 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.network.ApiResponse
- close() - Method in class com.google.adk.network.HttpApiResponse
-
Closes the Http response.
- 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.mcp.McpToolset
-
Closes the connection to MCP Server.
- 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.
- CollectionUtils - Class in com.google.adk
-
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.events - package com.google.adk.events
- com.google.adk.examples - package com.google.adk.examples
- com.google.adk.exceptions - package com.google.adk.exceptions
- 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.models - package com.google.adk.models
- com.google.adk.network - package com.google.adk.network
- 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.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
- 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
- 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
- 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.events.Event
- 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.models.LlmResponse.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
- 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
-
RequestProcessor
that populates content in request for LLM flows. - Contents() - Constructor for class com.google.adk.flows.llmflows.Contents
- ConversionUtils - Class in com.google.adk.tools.mcp
-
Utility class for converting between different representations of MCP tools.
- convertEventToJson(Event) - Method in class com.google.adk.sessions.VertexAiSessionService
- 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(BaseSessionService, BaseArtifactService, BaseAgent, Session, LiveRequestQueue, RunConfig) - Static method in class com.google.adk.agents.InvocationContext
- create(BaseSessionService, BaseArtifactService, String, BaseAgent, Session, Content, RunConfig) - Static method in class com.google.adk.agents.InvocationContext
- 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(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
- 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.BaseTool
-
Gets the
FunctionDeclaration
representation 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.McpTool
- declaration() - Method in class com.google.adk.tools.retrieval.BaseRetrievalTool
- decodeContent(Content) - Static method in class com.google.adk.sessions.SessionUtils
- DEFAULT - Enum constant in enum class com.google.adk.agents.LlmAgent.IncludeContents
- 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
- deleteArtifact(String, String, String, String) - Method in class com.google.adk.artifacts.InMemoryArtifactService
- 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() - Method in class com.google.adk.agents.BaseAgent
-
Gets the one-line description of the agent's capability.
- 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
- disallowTransferToParent() - Method in class com.google.adk.agents.LlmAgent
- disallowTransferToParent(boolean) - Method in class com.google.adk.agents.LlmAgent.Builder
- disallowTransferToPeers() - Method in class com.google.adk.agents.LlmAgent
- disallowTransferToPeers(boolean) - Method in class com.google.adk.agents.LlmAgent.Builder
E
- encodeContent(Content) - Static method in class com.google.adk.sessions.SessionUtils
- endInvocation() - Method in class com.google.adk.agents.InvocationContext
- entrySet() - Method in class com.google.adk.sessions.State
- 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
- 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
- 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.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
- EventStream(Supplier<Event>) - Constructor for class com.google.adk.events.EventStream
- 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
Example
instances. - 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
-
RequestProcessor
that populates examples in LLM request. - Examples() - Constructor for class com.google.adk.flows.llmflows.Examples
- ExampleUtils - Class in com.google.adk.examples
-
Utility class for examples.
- 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
- ExitLoopTool - Class in com.google.adk.tools
-
Exits the loop.
F
- 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
- 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.
- fromApiEvent(Map<String, Object>) - Method in class com.google.adk.sessions.VertexAiSessionService
- fromJson(String) - Static method in class com.google.adk.events.Event
- 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
LiveRequest
object. - fromJsonString(String, Class<T>) - Static method in class com.google.adk.JsonBaseModel
-
Deserializes a Json string to an object of the given type.
- fromServer(SseServerParameters) - Static method in class com.google.adk.tools.mcp.McpToolset
-
Retrieve all tools from the MCP connection using SSE server parameters and the ObjectMapper used across the ADK.
- fromServer(SseServerParameters, ObjectMapper) - Static method in class com.google.adk.tools.mcp.McpToolset
-
Retrieve all tools from the MCP connection using SSE server parameters.
- fromServer(ServerParameters) - Static method in class com.google.adk.tools.mcp.McpToolset
-
Retrieve all tools from the MCP connection using local server parameters and the ObjectMapper used across the ADK.
- fromServer(ServerParameters, ObjectMapper) - Static method in class com.google.adk.tools.mcp.McpToolset
-
Retrieve all tools from the MCP connection using local server parameters.
- 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.
- FunctionCallingUtils() - Constructor for class com.google.adk.tools.FunctionCallingUtils
- functionCalls() - Method in class com.google.adk.events.Event
- functionResponses() - Method in class com.google.adk.events.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(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.
- 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(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
- getEntity() - Method in class com.google.adk.network.ApiResponse
-
Gets the ResponseBody.
- getEntity() - Method in class com.google.adk.network.HttpApiResponse
-
Returns the ResponseBody from the response.
- getExamples(String) - Method in interface com.google.adk.examples.BaseExampleProvider
- getFirstSystemInstruction() - Method in class com.google.adk.models.LlmRequest
-
returns the first system instruction text from the request if present.
- getJsonResponse(ApiResponse) - Method in class com.google.adk.sessions.VertexAiSessionService
- getLastUpdateTimeAsDouble() - Method in class com.google.adk.sessions.Session
- getLlm(String) - Static method in class com.google.adk.models.LlmRegistry
- 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
- 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
. - getSystemInstructions() - Method in class com.google.adk.models.LlmRequest
-
Returns all system instruction texts from the request as an immutable list.
- getTools() - Method in class com.google.adk.tools.mcp.McpToolset.McpToolsAndToolsetResult
- getToolset() - Method in class com.google.adk.tools.mcp.McpToolset.McpToolsAndToolsetResult
- getTracer() - Static method in class com.google.adk.Telemetry
-
Gets the tracer.
- globalInstruction() - Method in class com.google.adk.agents.LlmAgent
- 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
- 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
- headers() - Method in class com.google.adk.tools.mcp.SseServerParameters
-
Optional headers to include in the SSE connection request.
- headers(Map<String, Object>) - Method in class com.google.adk.tools.mcp.SseServerParameters.Builder
-
Sets the headers for the SSE connection request.
- HttpApiClient - Class in com.google.adk.sessions
-
Base client for the HTTP APIs.
- HttpApiResponse - Class in com.google.adk.network
-
Wraps a real HTTP response to expose the methods needed by the GenAI SDK.
- 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.network.HttpApiResponse
-
Constructs a HttpApiResponse instance with the response.
- 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
-
RequestProcessor
that 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(LlmAgent.IncludeContents) - Method in class com.google.adk.agents.LlmAgent.Builder
- incrementLlmCallsCount() - Method in class com.google.adk.agents.InvocationContext
- initializeSession(Object) - Static method in class com.google.adk.tools.mcp.McpSessionManager
- InMemoryArtifactService - Class in com.google.adk.artifacts
-
An in-memory implementation of the
BaseArtifactService
. - InMemoryArtifactService() - Constructor for class com.google.adk.artifacts.InMemoryArtifactService
- 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
- InMemorySessionService - Class in com.google.adk.sessions
-
An in-memory implementation of
BaseSessionService
assumingSession
objects 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
- inputSchema() - Method in class com.google.adk.agents.LlmAgent
- inputSchema(Schema) - Method in class com.google.adk.agents.LlmAgent.Builder
- instruction() - Method in class com.google.adk.agents.LlmAgent
- instruction(String) - Method in class com.google.adk.agents.LlmAgent.Builder
- Instructions - Class in com.google.adk.flows.llmflows
-
RequestProcessor
that handles instructions and global instructions for LLM flows. - Instructions() - Constructor for class com.google.adk.flows.llmflows.Instructions
- 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.
- 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
- isNullOrEmpty(Iterable<T>) - Static method in class com.google.adk.CollectionUtils
-
Checks if the given iterable is null or empty.
- iterator() - Method in class com.google.adk.events.EventStream
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
- listArtifactKeys(String, String, String) - Method in class com.google.adk.artifacts.InMemoryArtifactService
- listArtifacts() - Method in class com.google.adk.tools.ToolContext
-
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
. - 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
- listVersions(String, String, String, String) - Method in class com.google.adk.artifacts.InMemoryArtifactService
- 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
LiveRequest
instances. - 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.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.
- LlmCallsLimitExceededException - Exception Class in com.google.adk.exceptions
-
An error indicating that the limit for calls to the LLM has been exceeded.
- LlmCallsLimitExceededException(String) - Constructor for exception class com.google.adk.exceptions.LlmCallsLimitExceededException
- LlmRegistry - Class in com.google.adk.models
- LlmRegistry() - Constructor for class com.google.adk.models.LlmRegistry
- 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
LlmRequest
instances. - 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
LlmResponse
instances. - 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
- loadArtifact(String, String, String, String, Optional<Integer>) - Method in class com.google.adk.artifacts.InMemoryArtifactService
- 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
- loadTools() - Method in class com.google.adk.tools.mcp.McpToolset
-
Loads all tools from the MCP Server.
- 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.
- 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
- McpInitializationException(String) - Constructor for exception class com.google.adk.tools.mcp.McpToolset.McpInitializationException
- McpInitializationException(String, Throwable) - Constructor for exception class com.google.adk.tools.mcp.McpToolset.McpInitializationException
- McpSessionManager - Class in com.google.adk.tools.mcp
-
Manages MCP client sessions.
- McpSessionManager(Object) - Constructor for class com.google.adk.tools.mcp.McpSessionManager
- McpTool - Class in com.google.adk.tools.mcp
-
"""Initializes a MCPTool.
- McpTool(McpSchema.Tool, McpSyncClient, McpSessionManager) - Constructor for class com.google.adk.tools.mcp.McpTool
- McpTool(McpSchema.Tool, McpSyncClient, McpSessionManager, ObjectMapper) - Constructor for class com.google.adk.tools.mcp.McpTool
- McpToolLoadingException(String) - Constructor for exception class com.google.adk.tools.mcp.McpToolset.McpToolLoadingException
- McpToolLoadingException(String, Throwable) - Constructor for exception class com.google.adk.tools.mcp.McpToolset.McpToolLoadingException
- McpToolsAndToolsetResult(List<McpTool>, McpToolset) - Constructor for class com.google.adk.tools.mcp.McpToolset.McpToolsAndToolsetResult
- McpToolset - Class in com.google.adk.tools.mcp
-
Connects to a MCP Server, and retrieves MCP Tools into ADK Tools.
- 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.
- McpToolset(SseServerParameters, ObjectMapper) - Constructor for class com.google.adk.tools.mcp.McpToolset
-
Initializes the McpToolset with SSE 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.
- McpToolset(ServerParameters, ObjectMapper) - Constructor for class com.google.adk.tools.mcp.McpToolset
-
Initializes the McpToolset with local server parameters.
- McpToolset.McpInitializationException - Exception Class in com.google.adk.tools.mcp
-
Exception thrown when there's an error during MCP session initialization.
- McpToolset.McpToolLoadingException - Exception Class in com.google.adk.tools.mcp
-
Exception thrown when there's an error during loading tools from the MCP server.
- McpToolset.McpToolsAndToolsetResult - Class in com.google.adk.tools.mcp
-
Holds the result of loading tools, containing both the tools and the toolset instance.
- McpToolset.McpToolsetException - Exception Class in com.google.adk.tools.mcp
-
Base exception for all errors originating from
McpToolset
. - McpToolsetException(String) - Constructor for exception class com.google.adk.tools.mcp.McpToolset.McpToolsetException
- McpToolsetException(String, Throwable) - Constructor for exception class com.google.adk.tools.mcp.McpToolset.McpToolsetException
- MEDIA_TYPE_APPLICATION_JSON - Static variable in class com.google.adk.sessions.HttpApiClient
- merge(EventActions) - Method in class com.google.adk.events.EventActions.Builder
- model() - Method in class com.google.adk.agents.LlmAgent
- 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
N
- name() - Method in class com.google.adk.agents.BaseAgent
-
Gets the agent's unique name.
- name() - Element in annotation interface com.google.adk.tools.Annotations.Schema
- name() - Method in class com.google.adk.tools.BaseTool
- 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
- 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
- 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
ConcurrentHashMap
containing a single mapping. - of(K, V, K, V) - Static method in class com.google.adk.utils.Pairs
-
Returns a new
ConcurrentHashMap
containing two mappings. - of(K, V, K, V, K, V) - Static method in class com.google.adk.utils.Pairs
-
Returns a new
ConcurrentHashMap
containing three mappings. - of(K, V, K, V, K, V, K, V) - Static method in class com.google.adk.utils.Pairs
-
Returns a new
ConcurrentHashMap
containing 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
ConcurrentHashMap
containing 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
ConcurrentHashMap
containing 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
ConcurrentHashMap
containing 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
ConcurrentHashMap
containing 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
ConcurrentHashMap
containing 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
ConcurrentHashMap
containing ten mappings. - 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
- outputKey() - Method in class com.google.adk.agents.LlmAgent
- outputKey(String) - Method in class com.google.adk.agents.LlmAgent.Builder
- 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.
- parseReasoningEngineId(String) - Static method in class com.google.adk.sessions.VertexAiSessionService
- 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
- 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.
- 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, 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.GoogleSearchTool
- processLlmRequest(LlmRequest.Builder, ToolContext) - Method in class com.google.adk.tools.LoadArtifactsTool
- 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
- 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.
- put(String, Object) - Method in class com.google.adk.sessions.State
- 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
- registerLlm(String, LlmRegistry.LlmFactory) - Static method in class com.google.adk.models.LlmRegistry
- remove(Object) - Method in class com.google.adk.sessions.State
- remove(Object, Object) - Method in class com.google.adk.sessions.State
- 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
- requestProcessors - Variable in class com.google.adk.flows.llmflows.BaseLlmFlow
- resolvedModel() - Method in class com.google.adk.agents.LlmAgent
- 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
- 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
- runAsync(InvocationContext) - Method in class com.google.adk.agents.BaseAgent
- 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.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.McpTool
- runAsyncImpl(InvocationContext) - Method in class com.google.adk.agents.BaseAgent
- 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
- runAsyncImpl(InvocationContext) - Method in class com.google.adk.agents.SequentialAgent
- 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
- runLive(InvocationContext) - Method in interface com.google.adk.flows.BaseFlow
- runLive(InvocationContext) - Method in class com.google.adk.flows.llmflows.BaseLlmFlow
- runLive(Session, LiveRequestQueue, RunConfig) - Method in class com.google.adk.runner.Runner
- runLive(String, String, LiveRequestQueue, RunConfig) - Method in class com.google.adk.runner.Runner
- runLiveImpl(InvocationContext) - Method in class com.google.adk.agents.BaseAgent
- 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
- runLiveImpl(InvocationContext) - Method in class com.google.adk.agents.SequentialAgent
- 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
- runWithSessionId(String, Content, RunConfig) - Method in class com.google.adk.runner.Runner
S
- 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
- saveArtifact(String, String, String, String, Part) - Method in class com.google.adk.artifacts.InMemoryArtifactService
- saveInputBlobsAsArtifacts() - Method in class com.google.adk.agents.RunConfig
- SchemaUtils - Class in com.google.adk
-
Utility class for validating schemas.
- 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
. - 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
- 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
- setArtifactDelta(ConcurrentMap<String, Part>) - Method in class com.google.adk.events.EventActions
- setAuthor(String) - Method in class com.google.adk.events.Event
- 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
- 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
- setGroundingMetadata(Optional<GroundingMetadata>) - Method in class com.google.adk.events.Event
- setId(String) - Method in class com.google.adk.events.Event
- 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
- setOutputAudioTranscription(AudioTranscriptionConfig) - Method in class com.google.adk.agents.RunConfig.Builder
- 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
- setStateDelta(ConcurrentMap<String, Object>) - Method in class com.google.adk.events.EventActions
- setStreamingMode(RunConfig.StreamingMode) - Method in class com.google.adk.agents.RunConfig.Builder
- setTimestamp(long) - Method in class com.google.adk.events.Event
- 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.
- SingleFlow - Class in com.google.adk.flows.llmflows
- SingleFlow() - Constructor for class com.google.adk.flows.llmflows.SingleFlow
- SingleFlow(List<RequestProcessor>, List<ResponseProcessor>) - Constructor for class com.google.adk.flows.llmflows.SingleFlow
- size() - Method in class com.google.adk.sessions.State
- 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
- sseReadTimeout() - Method in class com.google.adk.tools.mcp.SseServerParameters
-
The timeout for reading data from the SSE stream.
- sseReadTimeout(Duration) - Method in class com.google.adk.tools.mcp.SseServerParameters.Builder
-
Sets the timeout for reading data from the SSE stream.
- 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
. - 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 a read-only view of the state of the current 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
State
object 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
- streamingMode() - Method in class com.google.adk.agents.RunConfig
- stringifyContent() - Method in class com.google.adk.events.Event
- subAgents() - Method in class com.google.adk.agents.BaseAgent
- 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
- 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
- timeout() - Method in class com.google.adk.tools.mcp.SseServerParameters
-
The timeout for the initial connection attempt.
- timeout(Duration) - Method in class com.google.adk.tools.mcp.SseServerParameters.Builder
-
Sets the timeout for the initial connection attempt.
- timestamp() - Method in class com.google.adk.events.Event
-
The timestamp of the event.
- timestamp(long) - Method in class com.google.adk.events.Event.Builder
- 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
- 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.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
- toGeminiSchema(McpSchema.JsonSchema) - Method in class com.google.adk.tools.mcp.McpTool
- 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.
- 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
. - tools() - Method in class com.google.adk.agents.LlmAgent
- tools() - Method in class com.google.adk.models.LlmRequest
-
Returns a map of tools available to the LLM.
- tools(BaseTool...) - Method in class com.google.adk.agents.LlmAgent.Builder
- tools(List<? extends BaseTool>) - Method in class com.google.adk.agents.LlmAgent.Builder
- 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(String) - Method in class com.google.adk.events.EventActions.Builder
- transferToAgent(String, ToolContext) - Static method in class com.google.adk.flows.llmflows.AgentTransfer
- 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
- url() - Method in class com.google.adk.tools.mcp.SseServerParameters
-
The URL of the SSE server.
- url(String) - Method in class com.google.adk.tools.mcp.SseServerParameters.Builder
-
Sets the URL of the SSE server.
- USER_PREFIX - Static variable in class com.google.adk.sessions.State
- userContent() - Method in class com.google.adk.agents.CallbackContext
-
Returns the user content that initiated this invocation.
- userContent() - Method in class com.google.adk.agents.InvocationContext
- 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
- 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
-
Holding class for the version of the Java ADK.
- 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.
- VertexAiSessionService - Class in com.google.adk.sessions
-
TODO: Use the genai HttpApiClient and ApiResponse methods once they are public.
- VertexAiSessionService() - Constructor for class com.google.adk.sessions.VertexAiSessionService
- 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
- 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.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form