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.
Parameters | |
---|---|
Name | Description |
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. |
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
Returns | |
---|---|
Type | Description |
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
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$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
Returns | |
---|---|
Type | Description |
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
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$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.
Returns | |
---|---|
Type | Description |
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.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getSummarizationFeedback
Optional. Feedback for conversation summarization.
Returns | |
---|---|
Type | Description |
Google\Cloud\Dialogflow\V2\AgentAssistantFeedback\SummarizationFeedback|null |
hasSummarizationFeedback
clearSummarizationFeedback
setSummarizationFeedback
Optional. Feedback for conversation summarization.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Dialogflow\V2\AgentAssistantFeedback\SummarizationFeedback
|
Returns | |
---|---|
Type | Description |
$this |