SessionInput

工作階段的輸入內容。

JSON 表示法
{
  "willContinue": boolean,

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "text": string,
  "dtmf": string,
  "audio": string,
  "toolResponses": {
    object (ToolResponses)
  },
  "image": {
    object (Image)
  },
  "blob": {
    object (Blob)
  },
  "variables": {
    object
  },
  "event": {
    object (Event)
  }
  // End of mutually exclusive fields.
}
欄位
willContinue

boolean

選用。這個旗標用於指出目前訊息是否為雙向串流工作階段中較大輸入內容的片段。

設為 true 時,代理會延後處理,直到收到後續訊息 (willContinue 為 false),或系統在音訊輸入中偵測到端點為止。

注意:這個欄位不適用於音訊和 DTMF 輸入內容,因為系統一律會根據終止信號自動處理這些內容。

輸入內容的類型。以下列出互斥欄位。回應中最多會設定一個欄位:
text

string

選用。來自使用者的文字資料。

dtmf

string

選用。使用者的 DTMF 數字。

audio

string (bytes format)

選用。來自使用者的音訊資料。

Base64 編碼字串。

toolResponses

object (ToolResponses)

選用。用戶端工具呼叫的執行結果。

image

object (Image)

選用。來自使用者的圖片資料。

blob

object (Blob)

選用。來自終端使用者的 Blob 資料。

variables

object (Struct format)

選用。工作階段的內容變數,以名稱做為鍵。CES 代理程式只會使用在應用程式中宣告的變數。

無法辨識的變數仍會以額外工作階段參數的形式傳送至 [Dialogflow 代理程式][Agent.RemoteDialogflowAgent]。

event

object (Event)

選用。事件輸入。

互斥欄位的結尾。

ToolResponses

用戶端要求工具呼叫的執行結果。

JSON 表示法
{
  "toolResponses": [
    {
      object (ToolResponse)
    }
  ]
}
欄位
toolResponses[]

object (ToolResponse)

選用。工具執行結果清單。

事件

事件輸入。

JSON 表示法
{
  "event": string,
  "variables": {
    object
  }
}
欄位
event

string

這是必要旗標,活動名稱。

variables

object (Struct format)

選用。與事件相關聯的其他變數。