- [Resource: Agent](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Agent)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Agent.SCHEMA_REPRESENTATION)
- [AdkAgentDefinition](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AdkAgentDefinition)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AdkAgentDefinition.SCHEMA_REPRESENTATION)
- [AgentToolSettings](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AgentToolSettings)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AgentToolSettings.SCHEMA_REPRESENTATION)
- [ProvisionedReasoningEngine](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#ProvisionedReasoningEngine)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#ProvisionedReasoningEngine.SCHEMA_REPRESENTATION)
- [ManagedAgentDefinition](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#ManagedAgentDefinition)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#ManagedAgentDefinition.SCHEMA_REPRESENTATION)
- [DataScienceAgentConfig](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DataScienceAgentConfig)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DataScienceAgentConfig.SCHEMA_REPRESENTATION)
- [NlQueryConfig](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#NlQueryConfig)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#NlQueryConfig.SCHEMA_REPRESENTATION)
- [Nl2SqlExample](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Nl2SqlExample)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Nl2SqlExample.SCHEMA_REPRESENTATION)
- [DeploymentInfo](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DeploymentInfo)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DeploymentInfo.SCHEMA_REPRESENTATION)
- [A2AAgentDefinition](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#A2AAgentDefinition)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#A2AAgentDefinition.SCHEMA_REPRESENTATION)
- [RemoteAgentcard](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#RemoteAgentcard)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#RemoteAgentcard.SCHEMA_REPRESENTATION)
- [CloudMarketplaceConfig](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#CloudMarketplaceConfig)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#CloudMarketplaceConfig.SCHEMA_REPRESENTATION)
- [DialogflowAgentDefinition](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DialogflowAgentDefinition)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DialogflowAgentDefinition.SCHEMA_REPRESENTATION)
- [Image](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Image)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Image.SCHEMA_REPRESENTATION)
- [AuthorizationConfig](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AuthorizationConfig)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AuthorizationConfig.SCHEMA_REPRESENTATION)
- [DataStoreSpecs](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DataStoreSpecs)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DataStoreSpecs.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#State)
- [AgentInvocationSpec](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AgentInvocationSpec)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AgentInvocationSpec.SCHEMA_REPRESENTATION)
- [StarterPrompt](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#StarterPrompt)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#StarterPrompt.SCHEMA_REPRESENTATION)
- [SharingConfig](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#SharingConfig)
  - [JSON representation](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#SharingConfig.SCHEMA_REPRESENTATION)
- [Scope](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Scope)
- [Methods](https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#METHODS_SUMMARY)

## Resource: Agent

Performs a predefined, specific task.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "description": string, "icon": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Image`) }, "createTime": string, "updateTime": string, "authorizations": [ string ], "authorizationConfig": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AuthorizationConfig`) }, "dataStoreSpecs": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DataStoreSpecs`) }, "state": enum (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#State`), "toolSettings": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AgentToolSettings`) }, "agentInvocationSpec": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AgentInvocationSpec`) }, "languageCode": string, "starterPrompts": [ { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#StarterPrompt`) } ], "customPlaceholderText": string, "sharingConfig": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#SharingConfig`) }, "observabilityConfig": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/ObservabilityConfig`) }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "adkAgentDefinition": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AdkAgentDefinition`) }, "managedAgentDefinition": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#ManagedAgentDefinition`) }, "a2aAgentDefinition": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#A2AAgentDefinition`) }, "dialogflowAgentDefinition": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DialogflowAgentDefinition`) } // End of mutually exclusive fields. // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "suspensionReason": string, "rejectionReason": string, "deploymentFailureReason": string, "creationFailureReason": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. Resource name of the agent. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` |
| `displayName` | `string` Required. Display name of the agent. This might be used by an LLM to automatically select an agent to respond to a user query. |
| `description` | `string` Required. Human-readable description of the agent. This might be used by an LLM to automatically select an agent to respond to a user query. |
| `icon` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Image`)`` Optional. The icon that represents the agent on the UI. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. timestamp when this Agent was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. timestamp when this Agent was most recently updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `authorizations[] (deprecated)` | `string` > [!WARNING] > This item is deprecated! Optional. Deprecated: Use `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Agent.FIELDS.authorization_config` instead. List of required authorizations for this agent. |
| `authorizationConfig` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AuthorizationConfig`)`` Optional. The authorizations that are required by the agent. |
| `dataStoreSpecs` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DataStoreSpecs`)`` Optional. DataStoreSpecs associated with the agent. Not setting this field will result in using all data stores in the engine. |
| `state` | ``enum (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#State`)`` Output only. The lifecycle state of the agent. |
| `toolSettings (deprecated)` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AgentToolSettings`)`` > [!WARNING] > This item is deprecated! Optional. DEPRECATED: Please use agentInvocationSpec instead. |
| `agentInvocationSpec` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AgentInvocationSpec`)`` Optional. The invocation spec of the agent, used by the LLM to decide when to use the agent. |
| `languageCode` | `string` Optional. The code of the language of the text in the description, displayName and starterPrompts fields. |
| `starterPrompts[]` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#StarterPrompt`)`` Optional. The starter prompt suggestions to show the user on the landing page of the agent. |
| `customPlaceholderText` | `string` Optional. The custom placeholder text that appears in the text box before the user enters any text. |
| `sharingConfig` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#SharingConfig`)`` Optional. The sharing config of the agent. |
| `observabilityConfig` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/ObservabilityConfig`)`` Optional. Observability config for the agent. |
| The definition of the agent. LINT.IfChange(definition) The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `adkAgentDefinition` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AdkAgentDefinition`)`` Optional. The behavior of the agent is defined as an ADK agent. |
| `managedAgentDefinition` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#ManagedAgentDefinition`)`` Optional. The behavior of the Google managed agent. |
| `a2aAgentDefinition` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#A2AAgentDefinition`)`` Optional. The behavior of the agent is defined as an A2A agent. |
| `dialogflowAgentDefinition` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DialogflowAgentDefinition`)`` Optional. The behavior of the agent is defined as a Dialogflow agent. |
| End of mutually exclusive fields. ||
| The reason why the agent is in its current state. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `suspensionReason` | `string` Output only. The reason why the agent was suspended. Only set if the state is SUSPENDED. |
| `rejectionReason` | `string` Output only. The reason why the agent was rejected. Only set if the state is PRIVATE, and got there via rejection. |
| `deploymentFailureReason` | `string` Output only. The reason why the agent deployment failed. Only set if the state is DEPLOYMENT_FAILED. |
| `creationFailureReason` | `string` Output only. The reason why the agent creation (provisioning) failed. Only set if the state is CREATION_FAILED. |
| End of mutually exclusive fields. ||

## AdkAgentDefinition

Stores the definition of an agent that uses ADK and is deployed to Agent Engine (formerly known as Reasoning Engine).

| JSON representation |
|---|
| ``` { "toolSettings": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AgentToolSettings`) }, "provisionedReasoningEngine": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#ProvisionedReasoningEngine`) }, "authorizations": [ string ] } ``` |

| Fields ||
|---|---|
| `toolSettings (deprecated)` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AgentToolSettings`)`` > [!WARNING] > This item is deprecated! Optional. The parameters that define how the agent is presented to the planner LLM. DEPRECATED: Use `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Agent.FIELDS.agent_invocation_spec` instead. |
| `provisionedReasoningEngine` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#ProvisionedReasoningEngine`)`` Optional. The reasoning engine that the agent is connected to. |
| `authorizations[] (deprecated)` | `string` > [!WARNING] > This item is deprecated! Optional. DEPRECATED: Use `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Agent.FIELDS.authorizations` instead. Resource names of the required authorizations. If the user is not authorized, the service will return a number of authorization URIs that the user must open in a browser and authorize. Once all authorizations are granted, the user can retry the query, and the authorizations will be forwarded to the agent. Format: `projects/{project}/locations/{location}/authorizations/{authorization}` |

## AgentToolSettings

> [!WARNING]
> This item is deprecated!

DEPRECATED: Use `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AgentInvocationSpec` instead. Settings for the tool that represents the agent to the Agentspace planner LLM.

| JSON representation |
|---|
| ``` { "toolDescription": string, "inputParameterName": string, "inputParameterDescription": string } ``` |

| Fields ||
|---|---|
| `toolDescription` | `string` Required. This might be used by an LLM to describe when the agent should be used. |
| `inputParameterName` | `string` Optional. Parameter name for the function call. This parameter name will hint the LLM what type of content the parameter is expected to contain, e.g. a "question", a "command", a "searchQuery", etc. |
| `inputParameterDescription` | `string` Optional. Parameter description for the function call. This description will give the LLM more information about the parameter, e.g. what kind of content is expected to be passed in and what actions should be performed on it. |

## ProvisionedReasoningEngine

Keeps track of the reasoning engine that the agent is connected to. This message is not intended to keep track of agent's lifecycle. Instead it is only used to define parameters to connect to the agent that is already deployed to a reasoning engine.

| JSON representation |
|---|
| ``` { "reasoningEngine": string } ``` |

| Fields ||
|---|---|
| `reasoningEngine` | `string` Required. The reasoning engine that the agent is connected to. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoningEngine}` |

## ManagedAgentDefinition

Stores the definition of a Google managed agent.

| JSON representation |
|---|
| ``` { "toolSettings": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AgentToolSettings`) }, "authorizations": [ string ], "deploymentInfo": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DeploymentInfo`) }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "dataScienceAgentConfig": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DataScienceAgentConfig`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `toolSettings (deprecated)` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AgentToolSettings`)`` > [!WARNING] > This item is deprecated! Optional. The parameters that define how the agent is presented to the planner LLM. DEPRECATED: Use `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Agent.FIELDS.agent_invocation_spec` instead. |
| `authorizations[] (deprecated)` | `string` > [!WARNING] > This item is deprecated! Optional. DEPRECATED: Use `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Agent.FIELDS.authorizations` instead. Resource names of the required authorizations. If the user is not authorized, the service will return a number of authorization URIs that the user must open in a browser and authorize. Once all authorizations are granted, the user can retry the query, and the authorizations will be forwarded to the agent. Format: `projects/{project}/locations/{location}/authorizations/{authorization}` |
| `deploymentInfo` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DeploymentInfo`)`` Output only. Automatic deployment information for the agent. |
| Agent type specific configuration. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `dataScienceAgentConfig` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#DataScienceAgentConfig`)`` Optional. Configuration specific to Google premade data science agents. This data structure is intended to store deployment and request time configuration for the agent. |
| End of mutually exclusive fields. ||

## DataScienceAgentConfig

Configuration specific to Google premade data science agents. This data structure is intended to store deployment and request time configuration for the agent.

| JSON representation |
|---|
| ``` { "bqProjectId": string, "bqDatasetId": string, "blocklistTables": [ string ], "allowlistTables": [ string ], "nlQueryConfig": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#NlQueryConfig`) } } ``` |

| Fields ||
|---|---|
| `bqProjectId` | `string` Required. The BigQuery project ID where the dataset is located. |
| `bqDatasetId` | `string` Required. The BigQuery dataset ID to use for the agent. The dataset must be in the project specified by `bqProjectId`. |
| `blocklistTables[]` | `string` Optional. The BigQuery tables to block from being used by the agent. |
| `allowlistTables[]` | `string` Optional. The BigQuery tables to allow to be used by the agent. |
| `nlQueryConfig` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#NlQueryConfig`)`` Optional. Customer provided configuration. |

## NlQueryConfig

Define the customer provided configurations specific to natural language translation to SQL/Python code.

| JSON representation |
|---|
| ``` { "nl2sqlPrompt": string, "nl2pyPrompt": string, "nl2sqlExamples": [ { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Nl2SqlExample`) } ], "schemaDescription": string, "bqSqlGenUseCustomPrompt": boolean } ``` |

| Fields ||
|---|---|
| `nl2sqlPrompt` | `string` Optional. The customer provided NL2SQL instructions |
| `nl2pyPrompt` | `string` Optional. The customer provided instructions for LLM to write python code for data analysis. |
| `nl2sqlExamples[]` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Nl2SqlExample`)`` Optional. The customer provided NL2SQL examples, including both input and expected sql. |
| `schemaDescription` | `string` Optional. The natural language description of the schema of the BigQuery dataset. |
| `bqSqlGenUseCustomPrompt` | `boolean` Optional. Whether to use the custom prompt for the BigQuery SQL Gen service. |

## Nl2SqlExample

A single NL2SQL example.

| JSON representation |
|---|
| ``` { "query": string, "expectedSql": string, "expectedResponse": string } ``` |

| Fields ||
|---|---|
| `query` | `string` Optional. The natural language query to be answered. |
| `expectedSql` | `string` Optional. The expected SQL output. |
| `expectedResponse` | `string` Optional. The expected response to the query. |

## DeploymentInfo

Automatic deployment information for the agent.

| JSON representation |
|---|
| ``` { "operation": string, "finishTime": string } ``` |

| Fields ||
|---|---|
| `operation` | `string` Output only. Long-running operation resource for the deployment. Can be used to poll the deployment status. When the deployment finishes, this field will be empty. If the deployment fails,the field will contain the resource name of the failed LRO, but the operation resource itself will be deleted automatically after some time. |
| `finishTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Deployment finish time - only set if the deployment is finished or failed. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

## A2AAgentDefinition

Stored definition of an agent that uses A2A.

| JSON representation |
|---|
| ``` { "cloudMarketplaceConfig": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#CloudMarketplaceConfig`) }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "jsonAgentCard": string, "remoteAgentCard": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#RemoteAgentcard`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `cloudMarketplaceConfig` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#CloudMarketplaceConfig`)`` Optional. Configuration specific to agents that are deployed from Cloud Marketplace. |
| Stores agent's name, capabilities, auth info, etc. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `jsonAgentCard` | `string` Optional. The agent card is a JSON string. |
| `remoteAgentCard (deprecated)` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#RemoteAgentcard`)`` > [!WARNING] > This item is deprecated! Optional. Deprecated: do not use for new integrations. Use `jsonAgentCard` instead. A remote agent card (third-party). |
| End of mutually exclusive fields. ||

## RemoteAgentcard

> [!WARNING]
> This item is deprecated!

Deprecated: Definition of an agent card hosted remotely. Do not use for new integrations. Use `jsonAgentCard` instead; the URI of a remote agent card can be embedded inside the JSON payload. Retained for backwards compatibility with existing Agent Registry imports.

| JSON representation |
|---|
| ``` { "uri": string } ``` |

| Fields ||
|---|---|
| `uri (deprecated)` | `string` > [!WARNING] > This item is deprecated! Required. Deprecated: see the enclosing message. The URI of the agent card. |

## CloudMarketplaceConfig

Configuration specific to agents that are deployed from Cloud Marketplace.

| JSON representation |
|---|
| ``` { "entitlement": string, "order": string } ``` |

| Fields ||
|---|---|
| `entitlement` | `string` Required. The Marketplace Entitlement this agent is associated with. Format: `projects/{project}/entitlements/{entitlement}`. |
| `order` | `string` Output only. The Marketplace Order this agent belongs to. Format: `billingAccounts/{billingAccount}/orders/{order}` |

## DialogflowAgentDefinition

Stored definition of an agent that uses a Dialogflow agent.

| JSON representation |
|---|
| ``` { "toolSettings": { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AgentToolSettings`) }, "dialogflowAgent": string } ``` |

| Fields ||
|---|---|
| `toolSettings (deprecated)` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#AgentToolSettings`)`` > [!WARNING] > This item is deprecated! Optional. The parameters that define how the agent is presented to the planner LLM. DEPRECATED: Use agentInvocationSpec instead. |
| `dialogflowAgent` | `string` Required. Resource name of the underlying Dialogflow Agent. Format: `projects/{project}/locations/{location}/agents/{agent}` |

## Image

Represents an image.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "uri": string, "content": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| Can be either a URI or the content encoded as a base64 string. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `uri` | `string` Image URI. |
| `content` | `string` Base64-encoded image file contents. |
| End of mutually exclusive fields. ||

## AuthorizationConfig

Describes the authorizations required.

| JSON representation |
|---|
| ``` { "toolAuthorizations": [ string ], "agentAuthorization": string } ``` |

| Fields ||
|---|---|
| `toolAuthorizations[]` | `string` Optional. List of required authorizations for agent to access other resources. Auth tokens will be passed to the agent as part of the request body. |
| `agentAuthorization` | `string` Optional. The authorization that is required to invoke the agent. Auth tokens will be passed to the agent as part of the request auth header. |

## DataStoreSpecs

Represents a set of data store specs.

| JSON representation |
|---|
| ``` { "specs": [ { object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/DataStoreSpec`) } ] } ``` |

| Fields ||
|---|---|
| `specs[]` | ``object (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/DataStoreSpec`)`` Optional. Specs defining `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.dataStores#DataStore`s to filter on in a search call and configurations for those data stores. This is only considered for `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines#Engine`s with multiple data stores. |

## State

Possible values for the lifecycle state of the agent.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | The state is unspecified. |
| `CONFIGURED` | The agent is configured, but no deployment triggered yet. |
| `DEPLOYING` | The agent is being deployed. |
| `DISABLED` | The agent is available for admins only. |
| `DEPLOYMENT_FAILED` | The agent deployment failed. |
| `PRIVATE` | Agent is available only to its creator.. |
| `ENABLED` | Agent is available for users who have access. |
| `SUSPENDED` | Agent is temporarily unavailable, though visible to users who have access. |
| `CREATING` | Agent is being created. |
| `CREATION_FAILED` | Agent creation (provisioning) failed. Terminal. To retry, the caller must `agents.delete` to clear the failed resource and then create again; there is no in-place overwrite of a failed agent. Only set for asynchronously-provisioned agents. |

## AgentInvocationSpec

Invocation spec for the agent, used by the LLM to decide when to invoke the agent.

| JSON representation |
|---|
| ``` { "description": string } ``` |

| Fields ||
|---|---|
| `description` | `string` Required. description that guides the LLM on when to invoke the agent. A good description clearly and concisely explains the agent's capabilities, for example: "This agent can book flights and check flight statuses." |

## StarterPrompt

The starter prompt suggestion to show the user on the landing page of the agent.

| JSON representation |
|---|
| ``` { "text": string } ``` |

| Fields ||
|---|---|
| `text` | `string` Required. The text of the starter prompt. |

## SharingConfig

Sharing related configuration.

| JSON representation |
|---|
| ``` { "scope": enum (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Scope`) } ``` |

| Fields ||
|---|---|
| `scope` | ``enum (`https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Scope`)`` Optional. The sharing scope of the agent. |

## Scope

The sharing scope of the agent.

| Enums ||
|---|---|
| `SCOPE_UNSPECIFIED` | Default value. Behaves as `RESTRICTED`. |
| `RESTRICTED` | The agent is shared with specific users based on the IAM policy. |
| `ALL_USERS` | The agent is shared with all users. |
| `PRIVATE` | The agent is not shared: it is only accessible to its creator and to administrators. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents/create` | Creates an `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Agent`. |
| ### `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents/delete` | Deletes an `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Agent`. |
| ### `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents/deploy` | Deploys an `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Agent`. |
| ### `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents/get` | Gets an `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Agent`. |
| ### `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents/list` | Lists all `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Agent`s under an `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants#Assistant` which were created by the caller. |
| ### `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents/patch` | Updates an `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents#Agent` |
| ### `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents/rejectAgent` | Rejects an Agent offered to the public. |
| ### `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents/requestAgentReview` | Presents an Agent to admins by making it available for review. |
| ### `https://docs.cloud.google.com/gemini/enterprise/docs/reference/rest/v1alpha/projects.locations.collections.engines.assistants.agents/withdrawAgent` | Withdraws an Agent offered to the public. |