Index
A2AService(interface)APIKeySecurityScheme(message)AgentCapabilities(message)AgentCard(message)AgentCardSignature(message)AgentExtension(message)AgentInterface(message)AgentProvider(message)AgentSkill(message)Artifact(message)AuthenticationInfo(message)AuthorizationCodeOAuthFlow(message)CancelTaskRequest(message)ClientCredentialsOAuthFlow(message)DeleteTaskPushNotificationConfigRequest(message)DeviceCodeOAuthFlow(message)GetExtendedAgentCardRequest(message)GetTaskPushNotificationConfigRequest(message)GetTaskRequest(message)HTTPAuthSecurityScheme(message)ImplicitOAuthFlow(message)ListTaskPushNotificationConfigsRequest(message)ListTaskPushNotificationConfigsResponse(message)ListTasksRequest(message)ListTasksResponse(message)Message(message)MutualTlsSecurityScheme(message)OAuth2SecurityScheme(message)OAuthFlows(message)OpenIdConnectSecurityScheme(message)Part(message)PasswordOAuthFlow(message)Role(enum)SecurityRequirement(message)SecurityScheme(message)SendMessageConfiguration(message)SendMessageRequest(message)SendMessageResponse(message)StreamResponse(message)StringList(message)SubscribeToTaskRequest(message)Task(message)TaskArtifactUpdateEvent(message)TaskPushNotificationConfig(message)TaskState(enum)TaskStatus(message)TaskStatusUpdateEvent(message)
A2AService
Provides operations for interacting with agents using the A2A protocol.
| CancelTask |
|---|
|
Cancels a task in progress.
|
| CreateTaskPushNotificationConfig |
|---|
|
Creates a push notification config for a task.
|
| DeleteTaskPushNotificationConfig |
|---|
|
Deletes a push notification config for a task.
|
| GetExtendedAgentCard |
|---|
|
Gets the extended agent card for the authenticated agent.
|
| GetTask |
|---|
|
Gets the latest state of a task.
|
| GetTaskPushNotificationConfig |
|---|
|
Gets a push notification config for a task.
|
| ListTaskPushNotificationConfigs |
|---|
|
Get a list of push notifications configured for a task.
|
| ListTasks |
|---|
|
Lists tasks that match the specified filter.
|
| SendMessage |
|---|
|
Sends a message to an agent.
|
| SendStreamingMessage |
|---|
|
Sends a streaming message to an agent, allowing for real-time interaction and status updates. Streaming version of
|
| SubscribeToTask |
|---|
|
Subscribes to task updates for tasks not in a terminal state. Returns
|
APIKeySecurityScheme
Defines a security scheme using an API key.
| Fields | |
|---|---|
description |
An optional description for the security scheme. |
location |
Required. The location of the API key. Valid values are "query", "header", or "cookie". |
name |
Required. The name of the header, query, or cookie parameter to be used. |
AgentCapabilities
Defines optional capabilities supported by an agent.
| Fields | |
|---|---|
extensions[] |
A list of protocol extensions supported by the agent. |
streaming |
Indicates if the agent supports streaming responses. |
push_notifications |
Indicates if the agent supports sending push notifications for asynchronous task updates. |
extended_agent_card |
Indicates if the agent supports providing an extended agent card when authenticated. |
AgentCard
A self-describing manifest for an agent. It provides essential metadata including the agent's identity, capabilities, skills, supported communication methods, and security requirements. Next ID: 20
| Fields | |
|---|---|
name |
Required. A human readable name for the agent. Example: "Recipe Agent" |
description |
Required. A human-readable description of the agent, assisting users and other agents in understanding its purpose. Example: "Agent that helps users with recipes and cooking." |
supported_interfaces[] |
Required. Ordered list of supported interfaces. The first entry is preferred. |
provider |
The service provider of the agent. |
version |
Required. The version of the agent. Example: "1.0.0" |
capabilities |
Required. A2A Capability set supported by the agent. |
security_schemes |
The security scheme details used for authenticating with this agent. |
security_requirements[] |
Security requirements for contacting the agent. |
default_input_modes[] |
Required. protolint:enable REPEATED_FIELD_NAMES_PLURALIZED The set of interaction modes that the agent supports across all skills. This can be overridden per skill. Defined as media types. |
default_output_modes[] |
Required. The media types supported as outputs from this agent. |
skills[] |
Required. Skills represent the abilities of an agent. It is largely a descriptive concept but represents a more focused set of behaviors that the agent is likely to succeed at. |
signatures[] |
JSON Web Signatures computed for this |
documentation_url |
A URL providing additional documentation about the agent. |
icon_url |
Optional. A URL to an icon for the agent. |
AgentCardSignature
AgentCardSignature represents a JWS signature of an AgentCard. This follows the JSON format of an RFC 7515 JSON Web Signature (JWS).
| Fields | |
|---|---|
protected |
Required. Required. The protected JWS header for the signature. This is always a base64url-encoded JSON object. |
signature |
Required. The computed signature, base64url-encoded. |
header |
The unprotected JWS header values. |
AgentExtension
A declaration of a protocol extension supported by an Agent.
| Fields | |
|---|---|
uri |
The unique URI identifying the extension. |
description |
A human-readable description of how this agent uses the extension. |
required |
If true, the client must understand and comply with the extension's requirements. |
params |
Optional. Extension-specific configuration parameters. |
AgentInterface
Declares a combination of a target URL, transport and protocol version for interacting with the agent. This allows agents to expose the same functionality over multiple protocol binding mechanisms.
| Fields | |
|---|---|
url |
Required. The URL where this interface is available. Must be a valid absolute HTTPS URL in production. Example: "https://api.example.com/a2a/v1", "https://grpc.example.com/a2a" |
protocol_binding |
Required. The protocol binding supported at this URL. This is an open form string, to be easily extended for other protocol bindings. The core ones officially supported are |
tenant |
Tenant ID to be used in the request when calling the agent. |
protocol_version |
Required. The version of the A2A protocol this interface exposes. Use the latest supported minor version per major version. Examples: "0.3", "1.0" |
AgentProvider
Represents the service provider of an agent.
| Fields | |
|---|---|
url |
Required. A URL for the agent provider's website or relevant documentation. Example: "https://ai.google.dev" |
organization |
Required. The name of the agent provider's organization. Example: "Google" |
AgentSkill
Represents a distinct capability or function that an agent can perform.
| Fields | |
|---|---|
id |
Required. A unique identifier for the agent's skill. |
name |
Required. A human-readable name for the skill. |
description |
Required. A detailed description of the skill. |
tags[] |
Required. A set of keywords describing the skill's capabilities. |
examples[] |
Example prompts or scenarios that this skill can handle. |
input_modes[] |
The set of supported input media types for this skill, overriding the agent's defaults. |
output_modes[] |
The set of supported output media types for this skill, overriding the agent's defaults. |
security_requirements[] |
Security schemes necessary for this skill. |
Artifact
Artifacts represent task outputs.
| Fields | |
|---|---|
artifact_id |
Required. Unique identifier (e.g. UUID) for the artifact. It must be unique within a task. |
name |
A human readable name for the artifact. |
description |
Optional. A human readable description of the artifact. |
parts[] |
Required. The content of the artifact. Must contain at least one part. |
metadata |
Optional. Metadata included with the artifact. |
extensions[] |
The URIs of extensions that are present or contributed to this Artifact. |
AuthenticationInfo
Defines authentication details, used for push notifications.
| Fields | |
|---|---|
scheme |
Required. HTTP Authentication Scheme from the IANA registry. Examples: |
credentials |
Push Notification credentials. Format depends on the scheme (e.g., token for Bearer). |
AuthorizationCodeOAuthFlow
Defines configuration details for the OAuth 2.0 Authorization Code flow.
| Fields | |
|---|---|
authorization_url |
Required. The authorization URL to be used for this flow. |
token_url |
Required. The token URL to be used for this flow. |
refresh_url |
The URL to be used for obtaining refresh tokens. |
scopes |
Required. The available scopes for the OAuth2 security scheme. |
pkce_required |
Indicates if PKCE (RFC 7636) is required for this flow. PKCE should always be used for public clients and is recommended for all clients. |
CancelTaskRequest
Represents a request for the CancelTask method.
| Fields | |
|---|---|
tenant |
Optional. Tenant ID, provided as a path parameter. |
id |
Required. The resource ID of the task to cancel. |
metadata |
A flexible key-value map for passing additional context or parameters. |
ClientCredentialsOAuthFlow
Defines configuration details for the OAuth 2.0 Client Credentials flow.
| Fields | |
|---|---|
token_url |
Required. The token URL to be used for this flow. |
refresh_url |
The URL to be used for obtaining refresh tokens. |
scopes |
Required. The available scopes for the OAuth2 security scheme. |
DeleteTaskPushNotificationConfigRequest
Represents a request for the DeleteTaskPushNotificationConfig method.
| Fields | |
|---|---|
tenant |
Optional. Tenant ID, provided as a path parameter. |
task_id |
Required. The parent task resource ID. |
id |
Required. The resource ID of the configuration to delete. |
DeviceCodeOAuthFlow
Defines configuration details for the OAuth 2.0 Device Code flow (RFC 8628). This flow is designed for input-constrained devices such as IoT devices, and CLI tools where the user authenticates on a separate device.
| Fields | |
|---|---|
device_authorization_url |
Required. The device authorization endpoint URL. |
token_url |
Required. The token URL to be used for this flow. |
refresh_url |
The URL to be used for obtaining refresh tokens. |
scopes |
Required. The available scopes for the OAuth2 security scheme. |
GetExtendedAgentCardRequest
Represents a request for the GetExtendedAgentCard method.
| Fields | |
|---|---|
tenant |
Optional. Tenant ID, provided as a path parameter. |
GetTaskPushNotificationConfigRequest
Represents a request for the GetTaskPushNotificationConfig method.
| Fields | |
|---|---|
tenant |
Optional. Tenant ID, provided as a path parameter. |
task_id |
Required. The parent task resource ID. |
id |
Required. The resource ID of the configuration to retrieve. |
GetTaskRequest
Represents a request for the GetTask method.
| Fields | |
|---|---|
tenant |
Optional. Tenant ID, provided as a path parameter. |
id |
Required. The resource ID of the task to retrieve. |
history_length |
The maximum number of most recent messages from the task's history to retrieve. An unset value means the client does not impose any limit. A value of zero is a request to not include any messages. The server MUST NOT return more messages than the provided value, but MAY apply a lower limit. |
HTTPAuthSecurityScheme
Defines a security scheme using HTTP authentication.
| Fields | |
|---|---|
description |
An optional description for the security scheme. |
scheme |
Required. The name of the HTTP Authentication scheme to be used in the Authorization header, as defined in RFC7235 (e.g., "Bearer"). This value should be registered in the IANA Authentication Scheme registry. |
bearer_format |
A hint to the client to identify how the bearer token is formatted (e.g., "JWT"). Primarily for documentation purposes. |
ImplicitOAuthFlow
Deprecated: Use Authorization Code + PKCE instead.
| Fields | |
|---|---|
authorization_url |
The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS |
refresh_url |
The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. |
scopes |
The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. |
ListTaskPushNotificationConfigsRequest
Represents a request for the ListTaskPushNotificationConfigs method.
| Fields | |
|---|---|
tenant |
Optional. Tenant ID, provided as a path parameter. |
task_id |
Required. The parent task resource ID. |
page_size |
The maximum number of configurations to return. |
page_token |
A page token received from a previous |
ListTaskPushNotificationConfigsResponse
Represents a successful response for the ListTaskPushNotificationConfigs method.
| Fields | |
|---|---|
configs[] |
The list of push notification configurations. |
next_page_token |
A token to retrieve the next page of results, or empty if there are no more results in the list. |
ListTasksRequest
Parameters for listing tasks with optional filtering criteria.
| Fields | |
|---|---|
tenant |
Tenant ID, provided as a path parameter. |
context_id |
Filter tasks by context ID to get tasks from a specific conversation or session. |
status |
Filter tasks by their current status state. |
page_token |
A page token, received from a previous |
status_timestamp_after |
Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., "2023-10-27T10:00:00Z"). Only tasks with a status timestamp time greater than or equal to this value will be returned. |
page_size |
The maximum number of tasks to return. The service may return fewer than this value. If unspecified, at most 50 tasks will be returned. The minimum value is 1. The maximum value is 100. |
history_length |
The maximum number of messages to include in each task's history. |
include_artifacts |
Whether to include artifacts in the returned tasks. Defaults to false to reduce payload size. |
ListTasksResponse
Result object for ListTasks method containing an array of tasks and pagination information.
| Fields | |
|---|---|
tasks[] |
Required. Array of tasks matching the specified criteria. |
next_page_token |
Required. A token to retrieve the next page of results, or empty if there are no more results in the list. |
page_size |
Required. The page size used for this response. |
total_size |
Required. Total number of tasks available (before pagination). |
Message
Message is one unit of communication between client and server. It can be associated with a context and/or a task. For server messages, context_id must be provided, and task_id only if a task was created. For client messages, both fields are optional, with the caveat that if both are provided, they have to match (the context_id has to be the one that is set on the task). If only task_id is provided, the server will infer context_id from it.
| Fields | |
|---|---|
message_id |
Required. The unique identifier (e.g. UUID) of the message. This is created by the message creator. |
context_id |
Optional. The context id of the message. If set, the message will be associated with the given context. |
task_id |
Optional. The task id of the message. If set, the message will be associated with the given task. |
role |
Required. Identifies the sender of the message. |
parts[] |
Required. Parts is the container of the message content. |
metadata |
Optional. Any metadata to provide along with the message. |
extensions[] |
The URIs of extensions that are present or contributed to this Message. |
reference_task_ids[] |
A list of task IDs that this message references for additional context. |
MutualTlsSecurityScheme
Defines a security scheme using mTLS authentication.
| Fields | |
|---|---|
description |
An optional description for the security scheme. |
OAuth2SecurityScheme
Defines a security scheme using OAuth 2.0.
| Fields | |
|---|---|
description |
An optional description for the security scheme. |
flows |
Required. An object containing configuration information for the supported OAuth 2.0 flows. |
oauth2_metadata_url |
URL to the OAuth2 authorization server metadata RFC 8414. TLS is required. |
OAuthFlows
Defines the configuration for the supported OAuth 2.0 flows.
| Fields | |
|---|---|
Union field
|
|
authorization_code |
Configuration for the OAuth Authorization Code flow. |
client_credentials |
Configuration for the OAuth Client Credentials flow. |
implicit |
Deprecated: Use Authorization Code + PKCE instead. |
password |
Deprecated: Use Authorization Code + PKCE or Device Code. |
device_code |
Configuration for the OAuth Device Code flow. |
OpenIdConnectSecurityScheme
Defines a security scheme using OpenID Connect.
| Fields | |
|---|---|
description |
An optional description for the security scheme. |
open_id_connect_url |
Required. The OpenID Connect Discovery URL for the OIDC provider's metadata. |
Part
Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).
| Fields | |
|---|---|
metadata |
Optional. metadata associated with this part. |
filename |
An optional |
media_type |
The |
Union field
|
|
text |
The string content of the |
raw |
The |
url |
A |
data |
Arbitrary structured |
PasswordOAuthFlow
Deprecated: Use Authorization Code + PKCE or Device Code.
| Fields | |
|---|---|
token_url |
The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. |
refresh_url |
The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. |
scopes |
The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. |
Role
Defines the sender of a message in A2A protocol communication.
| Enums | |
|---|---|
ROLE_UNSPECIFIED |
The role is unspecified. |
ROLE_USER |
The message is from the client to the server. |
ROLE_AGENT |
The message is from the server to the client. |
SecurityRequirement
Defines the security requirements for an agent.
| Fields | |
|---|---|
schemes |
A map of security schemes to the required scopes. |
SecurityScheme
Defines a security scheme that can be used to secure an agent's endpoints. This is a discriminated union type based on the OpenAPI 3.2 Security Scheme Object. See: https://spec.openapis.org/oas/v3.2.0.html#security-scheme-object
| Fields | |
|---|---|
Union field
|
|
api_key_security_scheme |
API key-based authentication. |
http_auth_security_scheme |
HTTP authentication (Basic, Bearer, etc.). |
oauth2_security_scheme |
OAuth 2.0 authentication. |
open_id_connect_security_scheme |
OpenID Connect authentication. |
mtls_security_scheme |
Mutual TLS authentication. |
SendMessageConfiguration
Configuration of a send message request.
| Fields | |
|---|---|
accepted_output_modes[] |
A list of media types the client is prepared to accept for response parts. Agents SHOULD use this to tailor their output. |
task_push_notification_config |
Configuration for the agent to send push notifications for task updates. Task id should be empty when sending this configuration in a |
return_immediately |
If |
history_length |
The maximum number of most recent messages from the task's history to retrieve in the response. An unset value means the client does not impose any limit. A value of zero is a request to not include any messages. The server MUST NOT return more messages than the provided value, but MAY apply a lower limit. |
SendMessageRequest
Represents a request for the SendMessage method.
| Fields | |
|---|---|
tenant |
Optional. Tenant ID, provided as a path parameter. |
message |
Required. The message to send to the agent. |
configuration |
Configuration for the send request. |
metadata |
A flexible key-value map for passing additional context or parameters. |
SendMessageResponse
Represents the response for the SendMessage method.
| Fields | |
|---|---|
Union field payload. The payload of the response. payload can be only one of the following: |
|
task |
The task created or updated by the message. |
message |
A message from the agent. |
StreamResponse
A wrapper object used in streaming operations to encapsulate different types of response data.
| Fields | |
|---|---|
Union field payload. The payload of the stream response. payload can be only one of the following: |
|
task |
A Task object containing the current state of the task. |
message |
A Message object containing a message from the agent. |
status_update |
An event indicating a task status update. |
artifact_update |
An event indicating a task artifact update. |
StringList
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED A list of strings.
| Fields | |
|---|---|
list[] |
The individual string values. |
SubscribeToTaskRequest
Represents a request for the SubscribeToTask method.
| Fields | |
|---|---|
tenant |
Optional. Tenant ID, provided as a path parameter. |
id |
Required. The resource ID of the task to subscribe to. |
Task
Task is the core unit of action for A2A. It has a current status and when results are created for the task they are stored in the artifact. If there are multiple turns for a task, these are stored in history.
| Fields | |
|---|---|
id |
Required. Unique identifier (e.g. UUID) for the task, generated by the server for a new task. |
context_id |
Unique identifier (e.g. UUID) for the contextual collection of interactions (tasks and messages). |
status |
Required. The current status of a |
artifacts[] |
A set of output artifacts for a |
history[] |
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of interactions from a |
metadata |
protolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to store custom metadata about a task. |
TaskArtifactUpdateEvent
A task delta where an artifact has been generated.
| Fields | |
|---|---|
task_id |
Required. The ID of the task for this artifact. |
context_id |
Required. The ID of the context that this task belongs to. |
artifact |
Required. The artifact that was generated or updated. |
append |
If true, the content of this artifact should be appended to a previously sent artifact with the same ID. |
last_chunk |
If true, this is the final chunk of the artifact. |
metadata |
Optional. Metadata associated with the artifact update. |
TaskPushNotificationConfig
A container associating a push notification configuration with a specific task.
| Fields | |
|---|---|
tenant |
Optional. Tenant ID. |
id |
The push notification configuration details. A unique identifier (e.g. UUID) for this push notification configuration. |
task_id |
The ID of the task this configuration is associated with. |
url |
Required. The URL where the notification should be sent. |
token |
A token unique for this task or session. |
authentication |
Authentication information required to send the notification. |
TaskState
Defines the possible lifecycle states of a Task.
| Enums | |
|---|---|
TASK_STATE_UNSPECIFIED |
The task is in an unknown or indeterminate state. |
TASK_STATE_SUBMITTED |
Indicates that a task has been successfully submitted and acknowledged. |
TASK_STATE_WORKING |
Indicates that a task is actively being processed by the agent. |
TASK_STATE_COMPLETED |
Indicates that a task has finished successfully. This is a terminal state. |
TASK_STATE_FAILED |
Indicates that a task has finished with an error. This is a terminal state. |
TASK_STATE_CANCELED |
Indicates that a task was canceled before completion. This is a terminal state. |
TASK_STATE_INPUT_REQUIRED |
Indicates that the agent requires additional user input to proceed. This is an interrupted state. |
TASK_STATE_REJECTED |
Indicates that the agent has decided to not perform the task. This may be done during initial task creation or later once an agent has determined it can't or won't proceed. This is a terminal state. |
TASK_STATE_AUTH_REQUIRED |
Indicates that authentication is required to proceed. This is an interrupted state. |
TaskStatus
A container for the status of a task
| Fields | |
|---|---|
state |
Required. The current state of this task. |
message |
A message associated with the status. |
timestamp |
ISO 8601 Timestamp when the status was recorded. Example: "2023-10-27T10:00:00Z" |
TaskStatusUpdateEvent
An event sent by the agent to notify the client of a change in a task's status.
| Fields | |
|---|---|
task_id |
Required. The ID of the task that has changed. |
context_id |
Required. The ID of the context that the task belongs to. |
status |
Required. The new status of the task. |
metadata |
Optional. Metadata associated with the task update. |