Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsConversationDetailMetricDetailSectionDetail

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

Overview

Section level result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SummarizationEvaluationMetricsConversationDetailMetricDetailSectionDetail

Returns a new instance of GoogleCloudDialogflowV2SummarizationEvaluationMetricsConversationDetailMetricDetailSectionDetail.



18284
18285
18286
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18284

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

Instance Attribute Details

#evaluation_resultsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsEvaluationResult>

Output only. List of evaluation result. The list only contains one kind of the evaluation result. Corresponds to the JSON property evaluationResults



18266
18267
18268
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18266

def evaluation_results
  @evaluation_results
end

#scoreFloat

Output only. Aggregated(average) score on this section across all evaluation results. Either decompositions or rubrics. Corresponds to the JSON property score

Returns:

  • (Float)


18272
18273
18274
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18272

def score
  @score
end

#sectionString

Output only. The name of the summary instruction. Corresponds to the JSON property section

Returns:

  • (String)


18277
18278
18279
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18277

def section
  @section
end

#section_summaryString

Output only. Summary for this section Corresponds to the JSON property sectionSummary

Returns:

  • (String)


18282
18283
18284
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18282

def section_summary
  @section_summary
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18289
18290
18291
18292
18293
18294
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18289

def update!(**args)
  @evaluation_results = args[:evaluation_results] if args.key?(:evaluation_results)
  @score = args[:score] if args.key?(:score)
  @section = args[:section] if args.key?(:section)
  @section_summary = args[:section_summary] if args.key?(:section_summary)
end