Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedback

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Overview

Detail feedback of Agent Assist result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2AgentAssistantFeedback

Returns a new instance of GoogleCloudDialogflowV2AgentAssistantFeedback.



7732
7733
7734
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7732

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

Instance Attribute Details

#answer_relevanceString

Optional. Whether or not the suggested answer is relevant. For example: * Query: "Can I change my mailing address?" * Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date." * answer_relevance: AnswerRelevance.IRRELEVANT Corresponds to the JSON property answerRelevance

Returns:

  • (String)


7699
7700
7701
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7699

def answer_relevance
  @answer_relevance
end

#document_correctnessString

Optional. Whether or not the information in the document is correct. For example: * Query: "Can I return the package in 2 days once received?" * Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date." * Ground truth: "No return or exchange is allowed." * [ document_correctness]: INCORRECT Corresponds to the JSON property documentCorrectness

Returns:

  • (String)


7708
7709
7710
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7708

def document_correctness
  @document_correctness
end

#document_efficiencyString

Optional. Whether or not the suggested document is efficient. For example, if the document is poorly written, hard to understand, hard to use or too long to find useful information, document_efficiency is DocumentEfficiency.INEFFICIENT. Corresponds to the JSON property documentEfficiency

Returns:

  • (String)


7715
7716
7717
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7715

def document_efficiency
  @document_efficiency
end

#knowledge_assist_feedbackGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeAssistFeedback

Feedback for knowledge assist. Corresponds to the JSON property knowledgeAssistFeedback



7720
7721
7722
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7720

def knowledge_assist_feedback
  @knowledge_assist_feedback
end

#knowledge_search_feedbackGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback

Feedback for knowledge search. Corresponds to the JSON property knowledgeSearchFeedback



7725
7726
7727
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7725

def knowledge_search_feedback
  @knowledge_search_feedback
end

#summarization_feedbackGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback

Feedback for conversation summarization. Corresponds to the JSON property summarizationFeedback



7730
7731
7732
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7730

def summarization_feedback
  @summarization_feedback
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7737
7738
7739
7740
7741
7742
7743
7744
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7737

def update!(**args)
  @answer_relevance = args[:answer_relevance] if args.key?(:answer_relevance)
  @document_correctness = args[:document_correctness] if args.key?(:document_correctness)
  @document_efficiency = args[:document_efficiency] if args.key?(:document_efficiency)
  @knowledge_assist_feedback = args[:knowledge_assist_feedback] if args.key?(:knowledge_assist_feedback)
  @knowledge_search_feedback = args[:knowledge_search_feedback] if args.key?(:knowledge_search_feedback)
  @summarization_feedback = args[:summarization_feedback] if args.key?(:summarization_feedback)
end