Skip to main content

agents

Creates, updates, deletes, gets or lists an agents resource.

Overview

Nameagents
TypeResource
Idgoogle.agentregistry.agents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of an Agent. Format: projects/{project}/locations/{location}/agents/{agent}.
agentIdstringOutput only. A stable, globally unique identifier for agents.
attributesobjectOutput only. Attributes of the Agent. Valid values: * agentregistry.googleapis.com/system/Framework: {"framework": "google-adk"} - the agent framework used to develop the Agent. Example values: "google-adk", "langchain", "custom". * agentregistry.googleapis.com/system/RuntimeIdentity: {"principal": "principal://..."} - the runtime identity associated with the Agent. * agentregistry.googleapis.com/system/RuntimeReference: {"uri": "//..."} - the URI of the underlying resource hosting the Agent, for example, the Reasoning Engine URI.
cardobjectOutput only. Full Agent Card payload, when available. (id: Card)
createTimestring (google-datetime)Output only. Create time.
descriptionstringOutput only. The description of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no description.
displayNamestringOutput only. The display name of the agent, often obtained from the A2A Agent Card.
locationstringOutput only. The location where agent is hosted. The value is defined by the hosting environment (i.e. cloud provider).
protocolsarrayOutput only. The connection details for the Agent.
skillsarrayOutput only. Skills the agent possesses, often obtained from the A2A Agent Card.
uidstringOutput only. A universally unique identifier for the Agent.
updateTimestring (google-datetime)Output only. Update time.
versionstringOutput only. The version of the Agent, often obtained from the A2A Agent Card. Empty if Agent Card has no version or agent is not an A2A Agent.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, agentsIdGets details of a single Agent.
listselectprojectsId, locationsIdfilter, pageSize, pageToken, orderByLists Agents in a given project and location.
searchexecprojectsId, locationsIdSearches Agents in a given project and location.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agentsIdstring
locationsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets details of a single Agent.

SELECT
name,
agentId,
attributes,
card,
createTime,
description,
displayName,
location,
protocols,
skills,
uid,
updateTime,
version
FROM google.agentregistry.agents
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND agentsId = '{{ agentsId }}' -- required
;

Lifecycle Methods

Searches Agents in a given project and location.

EXEC google.agentregistry.agents.search
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required
@@json=
'{
"pageSize": {{ pageSize }},
"searchString": "{{ searchString }}",
"pageToken": "{{ pageToken }}"
}'
;