Lists all Agent
s under an Assistant
which were created by the caller.
HTTP request
GET https://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*/collections/*/engines/*/assistants/*}/agents
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent resource name. Format: |
Query parameters
Parameters | |
---|---|
pageSize |
Optional. Maximum number of |
pageToken |
Optional. A page token When paginating, all other parameters provided to |
orderBy |
Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * Example: * "updateTime desc" * "isPinned desc,updateTime desc": list sessions by isPinned first, then by updateTime. |
Request body
The request body must be empty.
Response body
Response message for the AgentService.ListAgents
method.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"agents": [
{
object ( |
Fields | |
---|---|
agents[] |
The agents visible to the caller under the parent |
nextPageToken |
A token that can be sent as |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.