Method: projects.locations.autoLabelingRules.test

測試對話的自動標籤規則。

HTTP 要求

POST https://{endpoint}/v1/{parent=projects/*/locations/*}/autoLabelingRules:test

其中 {endpoint} 是支援的服務端點。

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

路徑參數

參數
parent

string

這是必要旗標,上層專案和位置。格式:projects/{project}/locations/{location}

要求主體

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

JSON 表示法
{
  "conversation": {
    object (Conversation)
  },
  "autoLabelingRule": {
    object (AutoLabelingRule)
  }
}
欄位
conversation

object (Conversation)

這是必要旗標,要測試規則的對話資料。

autoLabelingRule

object (AutoLabelingRule)

這是必要旗標,要測試的自動標籤規則。

回應主體

測試自動標籤規則的回應訊息。

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

JSON 表示法
{
  "labelResult": string
}
欄位
labelResult

string

測試自動標籤規則的結果。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱Authentication Overview。