Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer
- Inherits:
-
Object
- Object
- Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer
- 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
-
#answer_text ⇒ String
The piece of text from the
sourcethat answers this suggested query. -
#faq_source ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource
Details about source of FAQ answer.
-
#generative_source ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource
Details about source of Generative answer.
-
#intent_matching_source ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource
Details about source of Intent Matching answer.
-
#match_confidence ⇒ Float
The system's confidence score that this answer is a good match for this conversational query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer
constructor
A new instance of GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer
Returns a new instance of GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer.
6561 6562 6563 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6561 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer_text ⇒ String
The piece of text from the source that answers this suggested query.
Corresponds to the JSON property answerText
6537 6538 6539 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6537 def answer_text @answer_text end |
#faq_source ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource
Details about source of FAQ answer.
Corresponds to the JSON property faqSource
6542 6543 6544 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6542 def faq_source @faq_source end |
#generative_source ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource
Details about source of Generative answer.
Corresponds to the JSON property generativeSource
6547 6548 6549 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6547 def generative_source @generative_source end |
#intent_matching_source ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource
Details about source of Intent Matching answer.
Corresponds to the JSON property intentMatchingSource
6552 6553 6554 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6552 def intent_matching_source @intent_matching_source end |
#match_confidence ⇒ Float
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
6559 6560 6561 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6559 def match_confidence @match_confidence end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6566 6567 6568 6569 6570 6571 6572 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 6566 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 |