Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedback
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedback
- 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
-
#answer_relevance ⇒ String
Optional.
-
#document_correctness ⇒ String
Optional.
-
#document_efficiency ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2AgentAssistantFeedback
constructor
A new instance of GoogleCloudDialogflowV2AgentAssistantFeedback.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2AgentAssistantFeedback
Returns a new instance of GoogleCloudDialogflowV2AgentAssistantFeedback.
6018 6019 6020 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 6018 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
6000 6001 6002 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 6000 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
6009 6010 6011 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 6009 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
6016 6017 6018 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 6016 def document_efficiency @document_efficiency end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6023 6024 6025 6026 6027 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 6023 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) end |