Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer

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

Represents an answer from Knowledge. Cuurently supports FAQ and Generative answers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer

Returns a new instance of GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer.



2398
2399
2400
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2398

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

Instance Attribute Details

#answer_textString

The piece of text from the source that answers this suggested query. Corresponds to the JSON property answerText

Returns:

  • (String)


2374
2375
2376
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2374

def answer_text
  @answer_text
end

#faq_sourceGoogle::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource

Details about source of FAQ answer. Corresponds to the JSON property faqSource



2379
2380
2381
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2379

def faq_source
  @faq_source
end

#generative_sourceGoogle::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource

Details about source of Generative answer. Corresponds to the JSON property generativeSource



2384
2385
2386
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2384

def generative_source
  @generative_source
end

#intent_matching_sourceGoogle::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource

Details about source of Intent Matching answer. Corresponds to the JSON property intentMatchingSource



2389
2390
2391
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2389

def intent_matching_source
  @intent_matching_source
end

#match_confidenceFloat

The system's confidence score that this answer is a good match for this conversational query. The range is from 0.0 (completely uncertain) to 1.0 ( completely certain). Corresponds to the JSON property matchConfidence

Returns:

  • (Float)


2396
2397
2398
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2396

def match_confidence
  @match_confidence
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2403
2404
2405
2406
2407
2408
2409
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2403

def update!(**args)
  @answer_text = args[:answer_text] if args.key?(:answer_text)
  @faq_source = args[:faq_source] if args.key?(:faq_source)
  @generative_source = args[:generative_source] if args.key?(:generative_source)
  @intent_matching_source = args[:intent_matching_source] if args.key?(:intent_matching_source)
  @match_confidence = args[:match_confidence] if args.key?(:match_confidence)
end