Method: projects.locations.autoLabelingRules.test

针对对话测试自动添加标签规则。

HTTP 请求

POST https://{endpoint}/v1alpha1/{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。