Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsSummarizationEvaluationResult

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

Evaluation result per conversation(&summary), metric and section.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsSummarizationEvaluationResult

Returns a new instance of GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsSummarizationEvaluationResult.



23122
23123
23124
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23122

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

Instance Attribute Details

#decompositionsArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsDecomposition>

Output only. List of decompostion details Corresponds to the JSON property decompositions



23090
23091
23092
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23090

def decompositions
  @decompositions
end

#evaluation_resultsArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationEvaluationMetricsEvaluationResult>

Output only. List of evaluation results. Corresponds to the JSON property evaluationResults



23095
23096
23097
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23095

def evaluation_results
  @evaluation_results
end

#metricString

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

Returns:

  • (String)


23100
23101
23102
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23100

def metric
  @metric
end

#scoreFloat

Output only. score calculated from decompositions Corresponds to the JSON property score

Returns:

  • (Float)


23105
23106
23107
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23105

def score
  @score
end

#sectionString

Output only. section/task name, e.g. action, situation, etc Corresponds to the JSON property section

Returns:

  • (String)


23110
23111
23112
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23110

def section
  @section
end

#section_summaryString

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

Returns:

  • (String)


23115
23116
23117
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23115

def section_summary
  @section_summary
end

#session_idString

Output only. conversation session id Corresponds to the JSON property sessionId

Returns:

  • (String)


23120
23121
23122
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23120

def session_id
  @session_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23127
23128
23129
23130
23131
23132
23133
23134
23135
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 23127

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