REST Resource: projects.locations.collections.engines.sessions.answers

資源:Answer

定義答案。

JSON 表示法
{
  "name": string,
  "state": enum (State),
  "answerText": string,
  "citations": [
    {
      object (Citation)
    }
  ],
  "groundingSupports": [
    {
      object (GroundingSupport)
    }
  ],
  "references": [
    {
      object (Reference)
    }
  ],
  "blobAttachments": [
    {
      object (BlobAttachment)
    }
  ],
  "relatedQuestions": [
    string
  ],
  "steps": [
    {
      object (Step)
    }
  ],
  "queryUnderstandingInfo": {
    object (QueryUnderstandingInfo)
  },
  "answerSkippedReasons": [
    enum (AnswerSkippedReason)
  ],
  "createTime": string,
  "completeTime": string,
  "safetyRatings": [
    {
      object (SafetyRating)
    }
  ],
  "groundingScore": number
}
欄位
name

string

不可變動。完整名稱 projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*

state

enum (State)

生成答案的狀態。

answerText

string

文字答案。

citations[]

object (Citation)

參考資料。

groundingSupports[]

object (GroundingSupport)

(選用步驟) 支援建立基準。

references[]

object (Reference)

參考資料。

blobAttachments[]

object (BlobAttachment)

答案中的 Blob 附件清單。

relatedQuestions[]

string

建議的相關問題。

steps[]

object (Step)

生成答案的步驟。

queryUnderstandingInfo

object (QueryUnderstandingInfo)

查詢解讀資訊。

answerSkippedReasons[]

enum (AnswerSkippedReason)

其他跳過回答的原因。這會提供忽略案例的原因。如果沒有略過任何項目,就不會設定這個欄位。

createTime

string (Timestamp format)

僅供輸出。答案建立時間戳記。

使用 RFC 3339,產生的輸出內容一律會經過 Z 標準化,並使用 0、3、6 或 9 個小數點後位數。系統也接受「Z」以外的偏移量。例如:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z""2014-10-02T15:01:23+05:30"

completeTime

string (Timestamp format)

僅供輸出。回答完成時間戳記。

使用 RFC 3339,產生的輸出內容一律會經過 Z 標準化,並使用 0、3、6 或 9 個小數點後位數。系統也接受「Z」以外的偏移量。例如:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z""2014-10-02T15:01:23+05:30"

safetyRatings[]

object (SafetyRating)

(選用步驟) 安全評等。

groundingScore

number

分數範圍為 [0, 1],說明答案與參考內容的關聯程度。

方法

get

取得答案。