class Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer

An answer from Knowledge Connector.

Attributes

answer[RW]

The piece of text from the `source` knowledge base document that answers this conversational query. Corresponds to the JSON property `answer` @return [String]

faq_question[RW]

The corresponding FAQ question if the answer was extracted from a FAQ Document, empty otherwise. Corresponds to the JSON property `faqQuestion` @return [String]

match_confidence[RW]

The system's confidence score that this Knowledge answer is a good match for this conversational query. The range is from 0.0 (completely uncertain) to 1.0 (completely certain). Note: The confidence score is likely to vary somewhat ( possibly even for identical requests), as the underlying model is under constant improvement. It may be deprecated in the future. We recommend using ` match_confidence_level` which should be generally more stable. Corresponds to the JSON property `matchConfidence` @return [Float]

match_confidence_level[RW]

The system's confidence level that this knowledge answer is a good match for this conversational query. NOTE: The confidence level for a given “ pair may change without notice, as it depends on models that are constantly being improved. However, it will change less frequently than the confidence score below, and should be preferred for referencing the quality of an answer. Corresponds to the JSON property `matchConfidenceLevel` @return [String]

source[RW]

Indicates which Knowledge Document this answer was extracted from. Format: ` projects//knowledgeBases//documents/`. Corresponds to the JSON property `source` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v3/classes.rb, line 13097
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dialogflow_v3/classes.rb, line 13102
def update!(**args)
  @answer = args[:answer] if args.key?(:answer)
  @faq_question = args[:faq_question] if args.key?(:faq_question)
  @match_confidence = args[:match_confidence] if args.key?(:match_confidence)
  @match_confidence_level = args[:match_confidence_level] if args.key?(:match_confidence_level)
  @source = args[:source] if args.key?(:source)
end