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

נדרשת הרשאת IAM הבאה במשאב name:

  • discoveryengine.sessions.recommendQuestions

מידע נוסף מופיע במאמרי העזרה בנושא IAM.