Class: Google::Apis::CesV1::EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb

Overview

Turn level metrics thresholds.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds

Returns a new instance of EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds.



3048
3049
3050
# File 'lib/google/apis/ces_v1/classes.rb', line 3048

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#overall_tool_invocation_correctness_thresholdFloat

Optional. The success threshold for overall tool invocation correctness. Must be a float between 0 and 1. Default is 1.0. Corresponds to the JSON property overallToolInvocationCorrectnessThreshold

Returns:

  • (Float)


3035
3036
3037
# File 'lib/google/apis/ces_v1/classes.rb', line 3035

def overall_tool_invocation_correctness_threshold
  @overall_tool_invocation_correctness_threshold
end

#semantic_similarity_channelString

Optional. The semantic similarity channel to use for evaluation. Corresponds to the JSON property semanticSimilarityChannel

Returns:

  • (String)


3040
3041
3042
# File 'lib/google/apis/ces_v1/classes.rb', line 3040

def semantic_similarity_channel
  @semantic_similarity_channel
end

#semantic_similarity_success_thresholdFixnum

Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. Default is >= 3. Corresponds to the JSON property semanticSimilaritySuccessThreshold

Returns:

  • (Fixnum)


3046
3047
3048
# File 'lib/google/apis/ces_v1/classes.rb', line 3046

def semantic_similarity_success_threshold
  @semantic_similarity_success_threshold
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3053
3054
3055
3056
3057
# File 'lib/google/apis/ces_v1/classes.rb', line 3053

def update!(**args)
  @overall_tool_invocation_correctness_threshold = args[:overall_tool_invocation_correctness_threshold] if args.key?(:overall_tool_invocation_correctness_threshold)
  @semantic_similarity_channel = args[:semantic_similarity_channel] if args.key?(:semantic_similarity_channel)
  @semantic_similarity_success_threshold = args[:semantic_similarity_success_threshold] if args.key?(:semantic_similarity_success_threshold)
end