Method: projects.locations.collections.engines.assistants.agents.message.send

傳送訊息給服務專員。這是會傳回工作 (完成後) 或 LRO (如果要求) 的封鎖呼叫。

HTTP 要求

POST https://discoveryengine.googleapis.com/{tenant=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*}/message:send

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
tenant

string

選用租戶,以路徑參數形式提供。實驗性質,1.0 版發布時可能仍會變更。

要求主體

要求主體包含下列結構的資料:

JSON 表示法
{
  "message": {
    object (Message)
  },
  "configuration": {
    object (SendMessageConfiguration)
  },
  "metadata": {
    object
  }
}
欄位
message

object (Message)

這是必要旗標,要傳送給代理的訊息。

configuration

object (SendMessageConfiguration)

傳送要求的設定。

metadata

object (Struct format)

要求的選用中繼資料。

回應主體

////// Response Messages ///////////

如果成功,回應主體會含有以下結構的資料:

JSON 表示法
{

  // Union field payload can be only one of the following:
  "task": {
    object (Task)
  },
  "message": {
    object (Message)
  }
  // End of list of possible types for union field payload.
}
欄位

聯集欄位 payload

payload 只能是下列其中一項:

task

object (Task)

message

object (Message)

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱Authentication Overview