Resource: Agent
Performs a predefined, specific task.
| JSON representation | 
|---|
{ "name": string, "displayName": string, "description": string, "icon": { object (  | 
              
| Fields | |
|---|---|
name | 
                
                   
 Identifier. Resource name of the agent. Format:   | 
              
displayName | 
                
                   
 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 | 
                
                   
 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 | 
                
                   
 Optional. The icon that represents the agent on the UI.  | 
              
createTime | 
                
                   
 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:   | 
              
updateTime | 
                
                   
 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:   | 
              
authorizations[] | 
                
                   
 Optional. Deprecated: Use   | 
              
authorizationConfig | 
                
                   
 Optional. The authorizations that are required by the agent.  | 
              
dataStoreSpecs | 
                
                   
 Optional. DataStoreSpecs associated with the agent. Not setting this field will result in using all data stores in the engine.  | 
              
state | 
                
                   
 Output only. The lifecycle state of the agent.  | 
              
toolSettings | 
                
                   
 Optional. DEPRECATED: Planned migration to AgentCard definition.  | 
              
languageCode | 
                
                   
 Optional. The code of the language of the text in the description, displayName and starterPrompts fields.  | 
              
starterPrompts[] | 
                
                   
 Optional. The starter prompt suggestions to show the user on the landing page of the agent.  | 
              
customPlaceholderText | 
                
                   
 Optional. The custom placeholder text that appears in the text box before the user enters any text.  | 
              
Union field definition. The definition of the agent. LINT.IfChange(definition) definition can be only one of the following: | 
              |
adkAgentDefinition | 
                
                   
 Optional. The behavior of the agent is defined as an ADK agent.  | 
              
managedAgentDefinition | 
                
                   
 Optional. The behavior of the Google managed agent.  | 
              
a2aAgentDefinition | 
                
                   
 Optional. The behavior of the agent is defined as an A2A agent.  | 
              
dialogflowAgentDefinition | 
                
                   
 Optional. The behavior of the agent is defined as a Dialogflow agent.  | 
              
Union field agent_state_reason. The reason why the agent is in its current state. agent_state_reason can be only one of the following: | 
              |
suspensionReason | 
                
                   
 Output only. The reason why the agent was suspended. Only set if the state is SUSPENDED.  | 
              
rejectionReason | 
                
                   
 Output only. The reason why the agent was rejected. Only set if the state is PRIVATE, and got there via rejection.  | 
              
deploymentFailureReason | 
                
                   
 Output only. The reason why the agent deployment failed. Only set if the state is DEPLOYMENT_FAILED.  | 
              
Methods | 
            |
|---|---|
                
 | 
              
                Creates an Agent. | 
            
                
 | 
              
                Deletes an Agent. | 
            
                
 | 
              
                Deploys an Agent. | 
            
                
 | 
              Disables an Agent. | 
                
 | 
              Enables an Agent. | 
                
 | 
              
                Gets an Agent. | 
            
                
 | 
              
                Returns a AgentView for a given Agent, which contains additional information about the Agent. | 
            
                
 | 
              Gets the access control policy for an agent resource. | 
                
 | 
              
                Lists all Agents under an Assistant which were created by the caller. | 
            
                
 | 
              
                Updates an Agent | 
            
                
 | 
              Rejects an Agent offered to the public. | 
                
 | 
              Presents an Agent to admins by making it available for review. | 
                
 | 
              Sets the access control policy for an agent resource. | 
                
 | 
              Suspends an Agent. | 
                
 | 
              Withdraws an Agent offered to the public. |