Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion
- Inherits:
-
Object
- Object
- Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/contactcenterinsights_v1/classes.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb
Overview
A single question to be scored by the Insights QA feature.
Instance Attribute Summary collapse
-
#abbreviation ⇒ String
Short, descriptive string, used in the UI where it's not practical to display the full question body.
-
#answer_choices ⇒ Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice>
A list of valid answers to the question, which the LLM must choose from.
-
#answer_instructions ⇒ String
Instructions describing how to determine the answer.
-
#create_time ⇒ String
Output only.
-
#metrics ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestionMetrics
A wrapper representing metrics calculated against a test-set on a LLM that was fine tuned for this question.
-
#name ⇒ String
Identifier.
-
#order ⇒ Fixnum
Defines the order of the question within its parent scorecard revision.
-
#question_body ⇒ String
Question text.
-
#tags ⇒ Array<String>
User-defined list of arbitrary tags for the question.
-
#tuning_metadata ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata
Metadata about the tuning operation for the question.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1QaQuestion
constructor
A new instance of GoogleCloudContactcenterinsightsV1QaQuestion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1QaQuestion
Returns a new instance of GoogleCloudContactcenterinsightsV1QaQuestion.
4341 4342 4343 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4341 def initialize(**args) update!(**args) end |
Instance Attribute Details
#abbreviation ⇒ String
Short, descriptive string, used in the UI where it's not practical to display
the full question body. E.g., "Greeting".
Corresponds to the JSON property abbreviation
4284 4285 4286 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4284 def abbreviation @abbreviation end |
#answer_choices ⇒ Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice>
A list of valid answers to the question, which the LLM must choose from.
Corresponds to the JSON property answerChoices
4289 4290 4291 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4289 def answer_choices @answer_choices end |
#answer_instructions ⇒ String
Instructions describing how to determine the answer.
Corresponds to the JSON property answerInstructions
4294 4295 4296 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4294 def answer_instructions @answer_instructions end |
#create_time ⇒ String
Output only. The time at which this question was created.
Corresponds to the JSON property createTime
4299 4300 4301 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4299 def create_time @create_time end |
#metrics ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestionMetrics
A wrapper representing metrics calculated against a test-set on a LLM that was
fine tuned for this question.
Corresponds to the JSON property metrics
4305 4306 4307 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4305 def metrics @metrics end |
#name ⇒ String
Identifier. The resource name of the question. Format: projects/project
/
locations/location
/qaScorecards/qa_scorecard
/revisions/revision
/
qaQuestions/qa_question
Corresponds to the JSON property name
4312 4313 4314 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4312 def name @name end |
#order ⇒ Fixnum
Defines the order of the question within its parent scorecard revision.
Corresponds to the JSON property order
4317 4318 4319 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4317 def order @order end |
#question_body ⇒ String
Question text. E.g., "Did the agent greet the customer?"
Corresponds to the JSON property questionBody
4322 4323 4324 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4322 def question_body @question_body end |
#tags ⇒ Array<String>
User-defined list of arbitrary tags for the question. Used for grouping/
organization and for weighting the score of each question.
Corresponds to the JSON property tags
4328 4329 4330 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4328 def @tags end |
#tuning_metadata ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata
Metadata about the tuning operation for the question. Will only be set if a
scorecard containing this question has been tuned.
Corresponds to the JSON property tuningMetadata
4334 4335 4336 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4334 def @tuning_metadata end |
#update_time ⇒ String
Output only. The most recent time at which the question was updated.
Corresponds to the JSON property updateTime
4339 4340 4341 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4339 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4346 def update!(**args) @abbreviation = args[:abbreviation] if args.key?(:abbreviation) @answer_choices = args[:answer_choices] if args.key?(:answer_choices) @answer_instructions = args[:answer_instructions] if args.key?(:answer_instructions) @create_time = args[:create_time] if args.key?(:create_time) @metrics = args[:metrics] if args.key?(:metrics) @name = args[:name] if args.key?(:name) @order = args[:order] if args.key?(:order) @question_body = args[:question_body] if args.key?(:question_body) @tags = args[:tags] if args.key?(:tags) @tuning_metadata = args[:tuning_metadata] if args.key?(:tuning_metadata) @update_time = args[:update_time] if args.key?(:update_time) end |