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

回答を取得します。