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 \ V2
Methods
__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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow V2 Client - Class AgentAssistantFeedback (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.AgentAssistantFeedback)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.AgentAssistantFeedback)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.AgentAssistantFeedback)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.AgentAssistantFeedback)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.AgentAssistantFeedback)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.AgentAssistantFeedback)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.AgentAssistantFeedback)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.AgentAssistantFeedback)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.AgentAssistantFeedback)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.AgentAssistantFeedback)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.AgentAssistantFeedback)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.AgentAssistantFeedback)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.AgentAssistantFeedback)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.AgentAssistantFeedback)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.AgentAssistantFeedback)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.AgentAssistantFeedback)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.AgentAssistantFeedback)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.AgentAssistantFeedback)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.AgentAssistantFeedback)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.AgentAssistantFeedback) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class AgentAssistantFeedback.\n\nDetail feedback of Agent Assist result.\n\nGenerated from protobuf message `google.cloud.dialogflow.v2.AgentAssistantFeedback`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAnswerRelevance\n\nOptional. Whether or not the suggested answer is relevant.\n\nFor example:\n\n- Query: \"Can I change my mailing address?\"\n- Suggested document says: \"Items must be returned/exchanged within 60 days of the purchase date.\"\n- [answer_relevance](/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback__getAnswerRelevance__): [AnswerRelevance.IRRELEVANT](/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.AnswerRelevance#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback_AnswerRelevance__IRRELEVANT)\n\n### setAnswerRelevance\n\nOptional. Whether or not the suggested answer is relevant.\n\nFor example:\n\n- Query: \"Can I change my mailing address?\"\n- Suggested document says: \"Items must be returned/exchanged within 60 days of the purchase date.\"\n- [answer_relevance](/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback__getAnswerRelevance__): [AnswerRelevance.IRRELEVANT](/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.AnswerRelevance#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback_AnswerRelevance__IRRELEVANT)\n\n### getDocumentCorrectness\n\nOptional. Whether or not the information in the document is correct.\n\nFor example:\n\n- Query: \"Can I return the package in 2 days once received?\"\n- Suggested document says: \"Items must be returned/exchanged within 60 days of the purchase date.\"\n- Ground truth: \"No return or exchange is allowed.\"\n- [document_correctness](/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback__getDocumentCorrectness__): [INCORRECT](/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.DocumentCorrectness#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback_DocumentCorrectness__INCORRECT)\n\n### setDocumentCorrectness\n\nOptional. Whether or not the information in the document is correct.\n\nFor example:\n\n- Query: \"Can I return the package in 2 days once received?\"\n- Suggested document says: \"Items must be returned/exchanged within 60 days of the purchase date.\"\n- Ground truth: \"No return or exchange is allowed.\"\n- [document_correctness](/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback__getDocumentCorrectness__): [INCORRECT](/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.DocumentCorrectness#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback_DocumentCorrectness__INCORRECT)\n\n### getDocumentEfficiency\n\nOptional. Whether or not the suggested document is efficient. For example,\nif the document is poorly written, hard to understand, hard to use or\ntoo long to find useful information,\n[document_efficiency](/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback__getDocumentEfficiency__)\nis\n[DocumentEfficiency.INEFFICIENT](/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.DocumentEfficiency#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback_DocumentEfficiency__INEFFICIENT).\n\n### setDocumentEfficiency\n\nOptional. Whether or not the suggested document is efficient. For example,\nif the document is poorly written, hard to understand, hard to use or\ntoo long to find useful information,\n[document_efficiency](/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback__getDocumentEfficiency__)\nis\n[DocumentEfficiency.INEFFICIENT](/php/docs/reference/cloud-dialogflow/latest/V2.AgentAssistantFeedback.DocumentEfficiency#_Google_Cloud_Dialogflow_V2_AgentAssistantFeedback_DocumentEfficiency__INEFFICIENT).\n\n### getSummarizationFeedback\n\nOptional. Feedback for conversation summarization.\n\n### hasSummarizationFeedback\n\n### clearSummarizationFeedback\n\n### setSummarizationFeedback\n\nOptional. Feedback for conversation summarization.\n\n### getKnowledgeSearchFeedback\n\nOptional. Feedback for knowledge search.\n\n### hasKnowledgeSearchFeedback\n\n### clearKnowledgeSearchFeedback\n\n### setKnowledgeSearchFeedback\n\nOptional. Feedback for knowledge search.\n\n### getKnowledgeAssistFeedback\n\nOptional. Feedback for knowledge assist.\n\n### hasKnowledgeAssistFeedback\n\n### clearKnowledgeAssistFeedback\n\n### setKnowledgeAssistFeedback\n\nOptional. Feedback for knowledge assist."]]