Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantFeedback
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantFeedback
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Detail feedback of Agent Assistant result.
Instance Attribute Summary collapse
-
#answer_relevance ⇒ String
Optional.
-
#document_correctness ⇒ String
Optional.
-
#document_efficiency ⇒ String
Optional.
-
#knowledge_assist_feedback ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeAssistFeedback
Feedback for knowledge assist.
-
#knowledge_search_feedback ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback
Feedback for knowledge search.
-
#summarization_feedback ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback
Feedback for conversation summarization.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AgentAssistantFeedback
constructor
A new instance of GoogleCloudDialogflowV2beta1AgentAssistantFeedback.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AgentAssistantFeedback
Returns a new instance of GoogleCloudDialogflowV2beta1AgentAssistantFeedback.
11012 11013 11014 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11012 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer_relevance ⇒ String
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
10979 10980 10981 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10979 def answer_relevance @answer_relevance end |
#document_correctness ⇒ String
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
10988 10989 10990 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10988 def document_correctness @document_correctness end |
#document_efficiency ⇒ String
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
10995 10996 10997 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10995 def document_efficiency @document_efficiency end |
#knowledge_assist_feedback ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeAssistFeedback
Feedback for knowledge assist.
Corresponds to the JSON property knowledgeAssistFeedback
11000 11001 11002 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11000 def knowledge_assist_feedback @knowledge_assist_feedback end |
#knowledge_search_feedback ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback
Feedback for knowledge search.
Corresponds to the JSON property knowledgeSearchFeedback
11005 11006 11007 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11005 def knowledge_search_feedback @knowledge_search_feedback end |
#summarization_feedback ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback
Feedback for conversation summarization.
Corresponds to the JSON property summarizationFeedback
11010 11011 11012 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11010 def summarization_feedback @summarization_feedback end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11017 11018 11019 11020 11021 11022 11023 11024 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 11017 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 |