- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
Returns a AgentView for a given Agent, which contains additional information about the Agent.
HTTP request
GET https://discoveryengine.googleapis.com/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*}:getAgentView
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name |
Required. The name of the Agent to get. Format: |
Query parameters
| Parameters | |
|---|---|
languageCode |
Optional. The UI language currently shown to the user. Specifying this field request that the texts in the |
maxSuggestedPrompts |
Optional. The maximum number of suggested prompts to return per agent. |
adminView |
Optional. Indicates whether to consider if the caller is an admin. If set, and the caller is an admin, the response will consider admin-only permissions. Otherwise, a caller with admin permissions will get a response as an unprivileged user. |
Request body
The request body must be empty.
Response body
Response message for the AgentService.GetAgentView method.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"agentView": {
object ( |
| Fields | |
|---|---|
agentView |
The data for displaying an Agent. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/discoveryengine.readwritehttps://www.googleapis.com/auth/discoveryengine.assist.readwrite
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name resource:
discoveryengine.agents.getAgentView
For more information, see the IAM documentation.