Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class AgentAssistantFeedback.
Detail feedback of Agent Assist result.
Generated from protobuf message google.cloud.dialogflow.v2.AgentAssistantFeedback
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ answer_relevance
int
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
↳ document_correctness
int
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
↳ document_efficiency
int
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 .
↳ summarization_feedback
Google\Cloud\Dialogflow\V2\AgentAssistantFeedback\SummarizationFeedback
Optional. Feedback for conversation summarization.
↳ knowledge_search_feedback
Google\Cloud\Dialogflow\V2\AgentAssistantFeedback\KnowledgeSearchFeedback
Optional. Feedback for knowledge search.
↳ knowledge_assist_feedback
Google\Cloud\Dialogflow\V2\AgentAssistantFeedback\KnowledgeAssistFeedback
Optional. Feedback for knowledge assist.
getAnswerRelevance
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
int
setAnswerRelevance
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
var
int
$this
getDocumentCorrectness
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
int
setDocumentCorrectness
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
var
int
$this
getDocumentEfficiency
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 .
int
setDocumentEfficiency
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 .
var
int
$this
getSummarizationFeedback
Optional. Feedback for conversation summarization.
hasSummarizationFeedback
clearSummarizationFeedback
setSummarizationFeedback
Optional. Feedback for conversation summarization.
$this
getKnowledgeSearchFeedback
Optional. Feedback for knowledge search.
hasKnowledgeSearchFeedback
clearKnowledgeSearchFeedback
setKnowledgeSearchFeedback
Optional. Feedback for knowledge search.
$this
getKnowledgeAssistFeedback
Optional. Feedback for knowledge assist.
hasKnowledgeAssistFeedback
clearKnowledgeAssistFeedback
setKnowledgeAssistFeedback
Optional. Feedback for knowledge assist.
$this