- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- AgentInterface
- AgentProvider
- AgentCapabilities
- AgentExtension
- SecurityScheme
- APIKeySecurityScheme
- HTTPAuthSecurityScheme
- OAuth2SecurityScheme
- OAuthFlows
- AuthorizationCodeOAuthFlow
- ClientCredentialsOAuthFlow
- ImplicitOAuthFlow
- PasswordOAuthFlow
- OpenIdConnectSecurityScheme
- MutualTlsSecurityScheme
- Security
- StringList
- AgentSkill
- AgentCardSignature
agents.getCard returns the agent card for the agent.
HTTP request
GET https://discoveryengine.googleapis.com/{tenant=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*}/card
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
tenant |
Optional tenant, provided as a path parameter. Experimental, might still change for 1.0 release. |
Request body
The request body must be empty.
Response body
AgentCard conveys key information: - Overall details (version, name, description, uses) - Skills; a set of actions/solutions the agent can perform - Default modalities/content types supported by the agent. - Authentication requirements Next id: 19
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ "protocolVersion": string, "name": string, "description": string, "url": string, "preferredTransport": string, "additionalInterfaces": [ { object ( |
| Fields | |
|---|---|
protocolVersion |
The version of the A2A protocol this agent supports. |
name |
A human readable name for the agent. Example: "Recipe Agent" |
description |
A description of the agent's domain of action/solution space. Example: "Agent that helps users with recipes and cooking." |
url |
A URL to the address the agent is hosted at. This represents the preferred endpoint as declared by the agent. |
preferredTransport |
The transport of the preferred endpoint. If empty, defaults to JSONRPC. |
additionalInterfaces[] |
Announcement of additional supported transports. client can use any of the supported transports. |
provider |
The service provider of the agent. |
version |
The version of the agent. Example: "1.0.0" |
documentationUrl |
A url to provide additional documentation about the agent. |
capabilities |
A2A Capability set supported by the agent. |
securitySchemes |
The security scheme details used for authenticating with this agent. |
security[] |
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security requirements for contacting the agent. This list can be seen as an OR of ANDs. Each object in the list describes one possible set of security requirements that must be present on a request. This allows specifying, for example, "callers must either use OAuth OR an API Key AND mTLS." Example: security { schemes { key: "oauth" value { list: ["read"] } } } security { schemes { key: "api-key" } schemes { key: "mtls" } } |
defaultInputModes[] |
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 mime types. |
defaultOutputModes[] |
The mime types supported as outputs from this agent. |
skills[] |
Skills represent a unit of ability an agent can perform. This may somewhat abstract but represents a more focused set of actions that the agent is highly likely to succeed at. |
supportsAuthenticatedExtendedCard |
Whether the agent supports providing an extended agent card when the user is authenticated, i.e. is the card from .well-known different than the card from agents.getCard. |
signatures[] |
JSON Web Signatures computed for this AgentCard. |
iconUrl |
An optional URL to an icon for the agent. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
AgentInterface
Defines additional transport information for the agent.
| JSON representation |
|---|
{ "url": string, "transport": string, "tenant": string } |
| Fields | |
|---|---|
url |
The url this interface is found at. |
transport |
The transport supported this url. This is an open form string, to be easily extended for many transport protocols. The core ones officially supported are JSONRPC, GRPC and HTTP+JSON. |
tenant |
Tenant to be set in the request when calling the agent. Experimental, might still change for 1.0 release. |
AgentProvider
Represents information about the service provider of an agent.
| JSON representation |
|---|
{ "url": string, "organization": string } |
| Fields | |
|---|---|
url |
The providers reference url Example: "https://ai.google.dev" |
organization |
The providers organization name Example: "Google" |
AgentCapabilities
Defines the A2A feature set supported by the agent
| JSON representation |
|---|
{
"streaming": boolean,
"pushNotifications": boolean,
"extensions": [
{
object ( |
| Fields | |
|---|---|
streaming |
If the agent will support streaming responses |
pushNotifications |
If the agent can send push notifications to the clients webhook |
extensions[] |
Extensions supported by this agent. |
AgentExtension
A declaration of an extension supported by an Agent.
| JSON representation |
|---|
{ "uri": string, "description": string, "required": boolean, "params": { object } } |
| Fields | |
|---|---|
uri |
The URI of the extension. Example: "https://developers.google.com/identity/protocols/oauth2" |
description |
A description of how this agent uses this extension. Example: "Google OAuth 2.0 authentication" |
required |
Whether the client must follow specific requirements of the extension. Example: false |
params |
Optional configuration for the extension. |
SecurityScheme
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field
|
|
apiKeySecurityScheme |
|
httpAuthSecurityScheme |
|
oauth2SecurityScheme |
|
openIdConnectSecurityScheme |
|
mtlsSecurityScheme |
|
APIKeySecurityScheme
| JSON representation |
|---|
{ "description": string, "location": string, "name": string } |
| Fields | |
|---|---|
description |
description of this security scheme. |
location |
Location of the API key, valid values are "query", "header", or "cookie" |
name |
name of the header, query or cookie parameter to be used. |
HTTPAuthSecurityScheme
| JSON representation |
|---|
{ "description": string, "scheme": string, "bearerFormat": string } |
| Fields | |
|---|---|
description |
description of this security scheme. |
scheme |
The name of the HTTP Authentication scheme to be used in the Authorization header as defined in RFC7235. The values used SHOULD be registered in the IANA Authentication Scheme registry. The value is case-insensitive, as defined in RFC7235. |
bearerFormat |
A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. |
OAuth2SecurityScheme
| JSON representation |
|---|
{
"description": string,
"flows": {
object ( |
| Fields | |
|---|---|
description |
description of this security scheme. |
flows |
An object containing configuration information for the flow types supported |
oauth2MetadataUrl |
URL to the oauth2 authorization server metadata RFC8414. TLS is required. |
OAuthFlows
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field
|
|
authorizationCode |
|
clientCredentials |
|
implicit |
|
password |
|
AuthorizationCodeOAuthFlow
| JSON representation |
|---|
{ "authorizationUrl": string, "tokenUrl": string, "refreshUrl": string, "scopes": { string: string, ... } } |
| Fields | |
|---|---|
authorizationUrl |
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 |
tokenUrl |
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. |
refreshUrl |
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. |
ClientCredentialsOAuthFlow
| JSON representation |
|---|
{ "tokenUrl": string, "refreshUrl": string, "scopes": { string: string, ... } } |
| Fields | |
|---|---|
tokenUrl |
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. |
refreshUrl |
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. |
ImplicitOAuthFlow
| JSON representation |
|---|
{ "authorizationUrl": string, "refreshUrl": string, "scopes": { string: string, ... } } |
| Fields | |
|---|---|
authorizationUrl |
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 |
refreshUrl |
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. |
PasswordOAuthFlow
| JSON representation |
|---|
{ "tokenUrl": string, "refreshUrl": string, "scopes": { string: string, ... } } |
| Fields | |
|---|---|
tokenUrl |
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. |
refreshUrl |
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. |
OpenIdConnectSecurityScheme
| JSON representation |
|---|
{ "description": string, "openIdConnectUrl": string } |
| Fields | |
|---|---|
description |
description of this security scheme. |
openIdConnectUrl |
Well-known URL to discover the [[OpenID-Connect-Discovery]] provider metadata. |
MutualTlsSecurityScheme
| JSON representation |
|---|
{ "description": string } |
| Fields | |
|---|---|
description |
description of this security scheme. |
Security
| JSON representation |
|---|
{
"schemes": {
string: {
object ( |
| Fields | |
|---|---|
schemes |
|
StringList
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
| JSON representation |
|---|
{ "list": [ string ] } |
| Fields | |
|---|---|
list[] |
|
AgentSkill
AgentSkill represents a unit of action/solution that the agent can perform. One can think of this as a type of highly reliable solution that an agent can be tasked to provide. Agents have the autonomy to choose how and when to use specific skills, but clients should have confidence that if the skill is defined that unit of action can be reliably performed.
| JSON representation |
|---|
{
"id": string,
"name": string,
"description": string,
"tags": [
string
],
"examples": [
string
],
"inputModes": [
string
],
"outputModes": [
string
],
"security": [
{
object ( |
| Fields | |
|---|---|
id |
Unique identifier of the skill within this agent. |
name |
A human readable name for the skill. |
description |
A human (or llm) readable description of the skill details and behaviors. |
tags[] |
A set of tags for the skill to enhance categorization/utilization. Example: ["cooking", "customer support", "billing"] |
examples[] |
A set of example queries that this skill is designed to address. These examples should help the caller to understand how to craft requests to the agent to achieve specific goals. Example: ["I need a recipe for bread"] |
inputModes[] |
Possible input modalities supported. |
outputModes[] |
Possible output modalities produced |
security[] |
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill. As in the overall AgentCard.security, this list represents a logical OR of security requirement objects. Each object is a set of security schemes that must be used together (a logical AND). protolint:enable REPEATED_FIELD_NAMES_PLURALIZED |
AgentCardSignature
AgentCardSignature represents a JWS signature of an AgentCard. This follows the JSON format of an RFC 7515 JSON Web signature (JWS).
| JSON representation |
|---|
{ "protected": string, "signature": string, "header": { object } } |
| Fields | |
|---|---|
protected |
Required. The protected JWS header for the signature. This is always a base64url-encoded JSON object. Required. |
signature |
Required. The computed signature, base64url-encoded. Required. |
header |
The unprotected JWS header values. |