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

指定されたセッションにおすすめの質問を取得します。

HTTP リクエスト

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

この URL では gRPC Transcoding 構文を使用します。

パスパラメータ

パラメータ
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 のドキュメントをご覧ください。