Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsSummarizationEvaluationResult

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SummarizationEvaluationMetricsSummarizationEvaluationResult

Returns a new instance of GoogleCloudDialogflowV2SummarizationEvaluationMetricsSummarizationEvaluationResult.



18439
18440
18441
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18439

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

Instance Attribute Details

#decompositionsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsDecomposition>

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



18407
18408
18409
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18407

def decompositions
  @decompositions
end

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

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



18412
18413
18414
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18412

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)


18417
18418
18419
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18417

def metric
  @metric
end

#scoreFloat

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

Returns:

  • (Float)


18422
18423
18424
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18422

def score
  @score
end

#sectionString

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

Returns:

  • (String)


18427
18428
18429
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18427

def section
  @section
end

#section_summaryString

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

Returns:

  • (String)


18432
18433
18434
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18432

def section_summary
  @section_summary
end

#session_idString

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

Returns:

  • (String)


18437
18438
18439
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18437

def session_id
  @session_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18444
18445
18446
18447
18448
18449
18450
18451
18452
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18444

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