Reference documentation and code samples for the Google Cloud Ces V1 Client class TurnLevelMetricsThresholds.
Turn level metrics thresholds.
Generated from protobuf message google.cloud.ces.v1.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholds
Namespace
Google \ Cloud \ Ces \ V1 \ EvaluationMetricsThresholds \ GoldenEvaluationMetricsThresholdsMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ semantic_similarity_success_threshold |
int
Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is >= 3. |
↳ overall_tool_invocation_correctness_threshold |
float
Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0. |
↳ semantic_similarity_channel |
int
Optional. The semantic similarity channel to use for evaluation. |
getSemanticSimilaritySuccessThreshold
Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is >= 3.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasSemanticSimilaritySuccessThreshold
clearSemanticSimilaritySuccessThreshold
setSemanticSimilaritySuccessThreshold
Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is >= 3.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOverallToolInvocationCorrectnessThreshold
Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasOverallToolInvocationCorrectnessThreshold
clearOverallToolInvocationCorrectnessThreshold
setOverallToolInvocationCorrectnessThreshold
Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSemanticSimilarityChannel
Optional. The semantic similarity channel to use for evaluation.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type SemanticSimilarityChannel. |
setSemanticSimilarityChannel
Optional. The semantic similarity channel to use for evaluation.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type SemanticSimilarityChannel. |
| Returns | |
|---|---|
| Type | Description |
$this |
|