Method: projects.locations.collections.engines.agents.getAgentView

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/*/agents/*}:getAgentView

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the Agent to get. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}

Query parameters

Parameters
languageCode

string

Optional. The UI language currently shown to the user. Specifying this field request that the texts in the AgentView in the response should be translated to this language.

maxSuggestedPrompts

integer

Optional. The maximum number of suggested prompts to return per agent.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of GetAgentViewResponse.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.