Resource: Agent
A Vertex agent contains instructions and configurations for the LLM to execute a certain task.
namestring
Identifier. The resource name of the agent. Format: projects/{project}/locations/{location}/agents/{agent}.
idstring
Immutable. The user-specified id for the agent. This id becomes the final component of the agent resource name. If not provided, Agent Platform will generate a value for this id. The id can be up to 63 characters and must match the regular expression [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
Output only. The time the 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".
Output only. The time the agent was last 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".
objectstring
Output only. The object type of the resource. For agents, the value is agent.
base_agentstring
Required. The base agent for the agent. Supported values: * antigravity-preview-05-2026
metadatamap (key: string, value: string)
Optional. The metadata for the agent.
descriptionstring
Optional. The description of the agent.
system_instructionstring
Optional. The instructions for the agent to follow. These instructions are passed to the LLM as a system instruction.
Optional. The tools available to the agent.
environmentUnion type
environment can be only one of the following:Optional. The base environment configuration for the agent. Valid types:
- A string value for the environment id, or
remotefor the default. - A struct value for the
environment_config.
| JSON representation |
|---|
{
"name": string,
"id": string,
"created": string,
"updated": string,
"object": string,
"base_agent": string,
"metadata": {
string: string,
...
},
"description": string,
"system_instruction": string,
"tools": [
{
object ( |
AgentTool
A tool provides a list of actions available to the Agent during the process of executing a task.
typestring
Required. The type of the tool. Supported types:
code_executionfilesystemgoogle_searchmcp_serverurl_context
namestring
Optional. The name of the MCP server. Only applicable when type is mcp_server.
urlstring
Optional. The URL for the MCP server endpoint. Only applicable when type is mcp_server.
headersmap (key: string, value: string)
Optional. The headers for the MCP server, such as for authentication. Only applicable when type is mcp_server.
| JSON representation |
|---|
{ "type": string, "name": string, "url": string, "headers": { string: string, ... } } |
Methods |
|
|---|---|
|
Creates an agent. |
|
Deletes an agent. |
|
Retrieves an agent. |
|
Lists agents in a location. |
|
Updates an agent. |