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.



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

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)


3027
3028
3029
# File 'lib/google/apis/ces_v1/classes.rb', line 3027

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)


3032
3033
3034
# File 'lib/google/apis/ces_v1/classes.rb', line 3032

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)


3038
3039
3040
# File 'lib/google/apis/ces_v1/classes.rb', line 3038

def semantic_similarity_success_threshold
  @semantic_similarity_success_threshold
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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