Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetail

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

Overview

Aggregated result on metric level. This contains the evaluation results of all the sections.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetail

Returns a new instance of GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetail.



22929
22930
22931
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22929

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

Instance Attribute Details

#metricString

Output only. Metrics name. e.g. accuracy, adherence, completeness. Corresponds to the JSON property metric

Returns:

  • (String)


22917
22918
22919
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22917

def metric
  @metric
end

#scoreFloat

Output only. Aggregated(average) score on this metric across all sections. Corresponds to the JSON property score

Returns:

  • (Float)


22922
22923
22924
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22922

def score
  @score
end

#section_detailsArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsConversationDetailMetricDetailSectionDetail>

Output only. List of section details. Corresponds to the JSON property sectionDetails



22927
22928
22929
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22927

def section_details
  @section_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22934
22935
22936
22937
22938
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 22934

def update!(**args)
  @metric = args[:metric] if args.key?(:metric)
  @score = args[:score] if args.key?(:score)
  @section_details = args[:section_details] if args.key?(:section_details)
end