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

Mendapatkan pertanyaan yang direkomendasikan untuk sesi tertentu.

Permintaan HTTP

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

URL menggunakan sintaks gRPC Transcoding.

Parameter jalur

Parameter
name

string

Wajib. Nama resource Sesi. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}

Parameter kueri

Parameter
assistant

string

Opsional. Nama Assistant. Jika ditentukan, pertanyaan yang dihasilkan akan mematuhi konfigurasi Assistant (termasuk, tetapi tidak terbatas pada, frasa yang dilarang).

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

Isi permintaan

Isi permintaan harus kosong.

Isi respons

Respons untuk metode AssistantService.RecommendQuestions.

Jika berhasil, isi respons memuat data dengan struktur berikut:

Representasi JSON
{
  "questions": [
    string
  ]
}
Kolom
questions[]

string

Pertanyaan yang direkomendasikan.

Cakupan otorisasi

Memerlukan salah satu cakupan OAuth berikut:

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

Untuk mengetahui informasi selengkapnya, lihat Authentication Overview.

Izin IAM

Memerlukan izin IAM berikut pada resource name:

  • discoveryengine.sessions.recommendQuestions

Untuk mengetahui informasi selengkapnya, lihat dokumentasi IAM.