Resource: AutoLabelingRule
Rule for auto-labeling conversations.
| JSON representation |
|---|
{ "name": string, "active": boolean, "displayName": string, "description": string, "labelKeyType": enum ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the auto-labeling rule. Format: projects/{project}/locations/{location}/autoLabelingRules/{autoLabelingRule} |
active |
Whether the rule is active. |
displayName |
The user-provided display name of the rule. |
description |
The description of the rule. |
labelKeyType |
The type of the label key. |
labelKey |
The label key. This is also the {autoLabelingRule} in the resource name. Only settable if labelKeyType is LABEL_KEY_TYPE_CUSTOM. |
conditions[] |
Conditions to apply for auto-labeling the labelKey. Representing sequential block of if .. else if .. else statements. The value of the first matching condition will be used. |
createTime |
Output only. The time at which this rule was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The most recent time at which the rule was updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
LabelKeyType
The type of the label key.
| Enums | |
|---|---|
LABEL_KEY_TYPE_UNSPECIFIED |
Unspecified label key type. |
LABEL_KEY_TYPE_CUSTOM |
The label key is custom defined by the user. |
LabelingCondition
Condition for auto-labeling conversations.
| JSON representation |
|---|
{ "condition": string, "value": string } |
| Fields | |
|---|---|
condition |
A optional CEL expression to be evaluated as a boolean value. Once evaluated as true, then we will proceed with the value evaluation. An empty condition will be auto evaluated as true. |
value |
CEL expression to be evaluated as the value. |
Methods |
|
|---|---|
|
Creates an auto labeling rule. |
|
Deletes an auto labeling rule. |
|
Gets an auto labeling rule. |
|
Lists auto labeling rules. |
|
Updates an auto labeling rule. |
|
Tests auto labeling rules against a conversation. |