All Classes and Interfaces
Class
Description
Base class for MCP tools.
Manages streaming tool related resources during invocation.
AgentTool implements a tool that allows an agent to call another agent.
RequestProcessor that handles agent transfer for LLM flow.Annotations for tools.
The annotation for binding the 'Schema' input.
The API response contains a response to a call to the GenAI APIs.
Application Integration Toolset
LLM flow with automatic agent transfer support.
Base class for all agents.
Base configuration for all agents with subagent support.
Configuration for referencing other agents (subagents).
Base interface for artifact services.
Abstract base class for all code executors.
An interface that provides examples for a given query.
Interface for the execution flows to run a group of agents.
Abstract base class for Large Language Models (LLMs).
The base class for a live model connection.
A basic flow that calls the LLM in a loop until a final response is generated.
Base contract for memory services.
Base class for creating plugins.
Base class for retrieval tools.
The base class for all ADK tools.
Configuration class for tool arguments that allows arbitrary key-value pairs.
Configuration class for a tool definition in YAML/JSON.
Base interface for toolsets.
RequestProcessor that handles basic information to build the LLM request.A built-in code execution tool that is automatically invoked by Gemini 2 models.
A code executor that uses the Model's built-in code executor.
The context of various callbacks for an agent invocation.
Functional interfaces for agent lifecycle callbacks.
Helper interface to allow for sync afterAgentCallback.
Helper interface to allow for sync afterModelCallback.
Helper interface to allow for sync afterToolCallback.
Helper interface to allow for sync beforeAgentCallback.
Helper interface to allow for sync beforeModelCallback.
Helper interface to allow for sync beforeToolCallback.
Utility methods for normalizing agent callbacks.
Represents the Claude Generative AI model by Anthropic.
Handles Code Execution related logic.
Utility functions for code execution.
A structure that contains the input of code execution.
Builder for
CodeExecutionUtils.CodeExecutionInput.A structure that contains the result of code execution.
Builder for
CodeExecutionUtils.CodeExecutionResult.A structure that contains a file name and its content.
Builder for
CodeExecutionUtils.File.The persistent context used to configure the code executor.
Frequently used code snippets for collections.
A registry for storing and retrieving ADK instances by name.
Utility class for loading agent configurations from YAML files.
Exception thrown when configuration is invalid.
Utility class for interacting with the Google Cloud Connectors API.
Represents the schema for an action.
Represents details of a connection.
Represents the schema and available operations for an entity.
A code executor that uses a custom container to execute code.
RequestProcessor that populates content in request for LLM flows.Utility class for converting between different representations of MCP tools.
The default builder for creating MCP client transports.
Represents an event in a session.
Builder for
Event.Represents the actions attached to an event.
Builder for
EventActions.Iterable stream of
Event objects.Represents an few-shot example.
Builder for constructing
Example instances.RequestProcessor that populates examples in LLM request.A tool that injects (few-shot) examples into the outgoing LLM request as system instructions.
Utility class for examples.
Tool for exiting execution of
LoopAgent.Utility class for function calling.
Utility class for handling function calls.
FunctionTool implements a customized function calling tool.
An artifact service implementation using Google Cloud Storage (GCS).
Represents the Gemini Generative AI model.
Builder for
Gemini.Manages a persistent, bidirectional connection to the Gemini model via WebSockets for real-time
interaction.
Request / Response utilities for
Gemini.Configuration for getting a session.
Builder for
GetSessionConfig.A built-in tool that is automatically invoked by Gemini 2 models to retrieve search results from
Google Search.
Base client for the HTTP APIs.
Wraps a real HTTP response to expose the methods needed by the GenAI SDK.
RequestProcessor that gives the agent identity from the frameworkAn in-memory implementation of the
BaseArtifactService.An in-memory memory service for prototyping purposes only.
The class for the in-memory GenAi runner, using in-memory artifact and session services.
An in-memory implementation of
BaseSessionService assuming Session objects are
mutable regarding their state map, events list, and last update time.Represents an instruction that can be provided to an agent to guide its behavior.
Returns an instruction dynamically constructed from the given context.
Plain instruction directly provided to the agent.
RequestProcessor that handles instructions and global instructions for LLM flows.Utility methods for handling instruction templates.
Utility class for interacting with Google Cloud Application Integration.
Application Integration Tool
The context for an agent invocation.
The base class for the types that needs JSON serialization/deserialization capability.
Response for listing artifacts.
Builder for
ListArtifactsResponse.Response for listing artifact versions.
Builder for
ListArtifactVersionsResponse.Response for listing events.
Builder for
ListEventsResponse.Response for listing sessions.
Builder for
ListSessionsResponse.Represents a request to be sent to a live connection to the LLM model.
Builder for constructing
LiveRequest instances.A queue of live requests to be sent to the model.
The LLM-based agent.
Builder for
LlmAgent.Enum to define if contents of previous events should be included in requests to the underlying
LLM.
Configuration for LlmAgent.
Reference to a callback stored in the ComponentRegistry.
An error indicating that the limit for calls to the LLM has been exceeded.
Central registry for managing Large Language Model (LLM) instances.
The factory interface for creating LLM instances.
Represents a request to be sent to the LLM.
Builder for constructing
LlmRequest instances.Represents a response received from the LLM.
Builder for constructing
LlmResponse instances.A tool that loads artifacts and adds them to the session.
The response from a load memory tool invocation.
A tool that loads memory for the current user.
A plugin that logs important information at each callback point.
A function tool that returns the result asynchronously.
An agent that runs its sub-agents sequentially in a loop.
Builder for
LoopAgent.Initializes a MCP tool.
Connects to a MCP Server, and retrieves MCP Tools into ADK Tools.
Builder for McpAsyncToolset
Manages MCP client sessions.
Initializes a MCP tool.
Base exception for all errors originating from
AbstractMcpTool and its subclasses.Exception thrown when there's an error during MCP tool declaration generated.
Connects to a MCP Server, and retrieves MCP Tools into ADK Tools.
Configuration class for MCPToolset.
Base exception for all errors originating from
McpToolset.Exception thrown when there's an error during MCP session initialization.
Exception thrown when there's an error during loading tools from the MCP server.
Interface for building McpClientTransport instances.
Represents one memory entry.
Builder for
MemoryEntry.Represents a model by name or instance.
Builder for
Model.Utility class for creating ConcurrentHashMaps.
A shell agent that runs its sub-agents in parallel in isolated manner.
Builder for
ParallelAgent.Manages the registration and execution of plugins.
Provides read-only access to the context of an agent run.
Configuration to modify an agent's LLM's underlying behavior.
Builder for
RunConfig.Streaming mode for the runner.
The main class for the GenAI Agents runner.
Utility class for validating schemas.
Represents the response from a memory search.
Builder for
SearchMemoryResponse.An agent that runs its sub-agents sequentially.
Builder for
SequentialAgent.Builder for
Session.Represents a general error that occurred during session management operations.
Indicates that a requested session could not be found.
Utility functions for session service.
Basic LLM flow with fixed request and response processors.
Interface for a speech-to-text client.
Parameters for establishing a MCP Server-Sent Events (SSE) connection.
Builder for
SseServerParameters.A
State object that also keeps track of the changes to the state.Parameters for establishing a MCP stdio connection.
Builder for
StdioServerParameters.Server parameters for Streamable HTTP client transport.
Builder for
StreamableHttpServerParameters.Utility class for capturing and reporting telemetry data within the ADK.
ToolContext object provides a structured context for executing tools or functions.
Builder for
ToolContext.Functional interface to decide whether a tool should be exposed to the LLM based on the current
context.
Tracks the current ADK version.
A code executor that uses Vertex Code Interpreter Extension to execute code.
A retrieval tool that fetches context from Vertex AI RAG.
Connects to the managed Vertex AI Session Service.
Credentials for accessing Gemini models through Vertex.
Builder for
VertexCredentials.Implementation of SpeechClientInterface using Vertex AI SpeechClient.