Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestion

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1QaQuestion

Returns a new instance of GoogleCloudContactcenterinsightsV1QaQuestion.



5488
5489
5490
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 5488

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

Instance Attribute Details

#abbreviationString

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

Returns:

  • (String)


5415
5416
5417
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 5415

def abbreviation
  @abbreviation
end

#answer_choicesArray<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice>

A list of valid answers to the question, which the LLM must choose from. Corresponds to the JSON property answerChoices



5420
5421
5422
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 5420

def answer_choices
  @answer_choices
end

#answer_instructionsString

Instructions describing how to determine the answer. Corresponds to the JSON property answerInstructions

Returns:

  • (String)


5425
5426
5427
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 5425

def answer_instructions
  @answer_instructions
end

#create_timeString

Output only. The time at which this question was created. Corresponds to the JSON property createTime

Returns:

  • (String)


5430
5431
5432
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 5430

def create_time
  @create_time
end

#metricsGoogle::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



5436
5437
5438
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 5436

def metrics
  @metrics
end

#nameString

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

Returns:

  • (String)


5443
5444
5445
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 5443

def name
  @name
end

#orderFixnum

Defines the order of the question within its parent scorecard revision. Corresponds to the JSON property order

Returns:

  • (Fixnum)


5448
5449
5450
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 5448

def order
  @order
end

#predefined_question_configGoogle::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaQuestionPredefinedQuestionConfig

Configuration for a predefined question. This field will only be set if the Question Type is predefined. Corresponds to the JSON property predefinedQuestionConfig



5454
5455
5456
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 5454

def predefined_question_config
  @predefined_question_config
end

#question_bodyString

Question text. E.g., "Did the agent greet the customer?" Corresponds to the JSON property questionBody

Returns:

  • (String)


5459
5460
5461
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 5459

def question_body
  @question_body
end

#question_typeString

The type of question. Corresponds to the JSON property questionType

Returns:

  • (String)


5464
5465
5466
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 5464

def question_type
  @question_type
end

#tagsArray<String>

Questions are tagged for categorization and scoring. Tags can either be: - Default Tags: These are predefined categories. They are identified by their string value (e.g., "BUSINESS", "COMPLIANCE", and "CUSTOMER"). - Custom Tags: These are user-defined categories. They are identified by their full resource name (e.g., projects/project/locations/location/qaQuestionTags/ qa_question_tag). Both default and custom tags are used to group questions and to influence the scoring of each question. Corresponds to the JSON property tags

Returns:

  • (Array<String>)


5475
5476
5477
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 5475

def tags
  @tags
end

#tuning_metadataGoogle::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



5481
5482
5483
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 5481

def 
  @tuning_metadata
end

#update_timeString

Output only. The most recent time at which the question was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


5486
5487
5488
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 5486

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 5493

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)
  @predefined_question_config = args[:predefined_question_config] if args.key?(:predefined_question_config)
  @question_body = args[:question_body] if args.key?(:question_body)
  @question_type = args[:question_type] if args.key?(:question_type)
  @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