v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-132661,4471.5 MB
projects

Creates an agent.

post/v1/{+parent}/agents

Path parameters

parentstring required

Required. The resource name of the location to create the agent in. Format: projects/{project}/locations/{location}.

Request body

{"stackTrail":"components:schemas:GoogleCloudAiplatformV1Agent:properties:base_environment","oasType":"schema","type":"unknown","description":"Optional. The base environment configuration for the agent. Valid types: * A string value for the environment ID, or `remote` for the default. * A struct value for the `environment_config`."}
base_agentstring

Required. The base agent for the agent. Supported values: * antigravity-preview-05-2026

createdstring google-datetime

Output only. The time the agent was created.

metadataobject

Optional. The metadata for the agent.

system_instructionstring

Optional. The instructions for the agent to follow. These instructions are passed to the LLM as a system instruction.

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, Vertex AI 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])?.

updatedstring google-datetime

Output only. The time the agent was last updated.

objectstring

Output only. The object type of the resource. For agents, the value is agent.

descriptionstring

Optional. The description of the agent.

Response

Successful response