Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsAdherenceRubric

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

Rubric result of the adherence evaluation. A rubric is ued to determine if the summary adheres to all aspects of the given instructions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SummarizationEvaluationMetricsAdherenceRubric

Returns a new instance of GoogleCloudDialogflowV2SummarizationEvaluationMetricsAdherenceRubric.



18144
18145
18146
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18144

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

Instance Attribute Details

#is_addressedBoolean Also known as: is_addressed?

Output only. A boolean that indicates whether the rubric question is addressed or not. Corresponds to the JSON property isAddressed

Returns:

  • (Boolean)


18130
18131
18132
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18130

def is_addressed
  @is_addressed
end

#questionString

Output only. The question generated from instruction that used to evaluate summary. Corresponds to the JSON property question

Returns:

  • (String)


18137
18138
18139
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18137

def question
  @question
end

#reasoningString

Output only. The reasoning of the rubric question is addressed or not. Corresponds to the JSON property reasoning

Returns:

  • (String)


18142
18143
18144
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18142

def reasoning
  @reasoning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18149
18150
18151
18152
18153
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18149

def update!(**args)
  @is_addressed = args[:is_addressed] if args.key?(:is_addressed)
  @question = args[:question] if args.key?(:question)
  @reasoning = args[:reasoning] if args.key?(:reasoning)
end