Method: projects.locations.collections.engines.sessions.recommendQuestions

获取指定会话的推荐问题。

HTTP 请求

GET https://discoveryengine.googleapis.com/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/sessions/*}:recommendQuestions

网址采用 gRPC 转码语法。

路径参数

参数
name

string

必需。会话的资源名称。格式:projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}

查询参数

参数
assistant

string

可选。Assistant 的名称。如果指定,生成的题目将遵循 Assistant 的配置(包括但不限于禁止的短语)。

格式:projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

请求正文

请求正文必须为空。

响应正文

AssistantService.RecommendQuestions 方法的响应。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "questions": [
    string
  ]
}
字段
questions[]

string

推荐问题。

授权范围

需要以下 OAuth 范围之一:

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

如需了解详情,请参阅 Authentication Overview

IAM 权限

需要拥有 name 资源的以下 IAM 权限:

  • discoveryengine.sessions.recommendQuestions

如需了解详情,请参阅 IAM 文档