Google Cloud Dialogflow V2 Client - Class AgentAssistantFeedback (1.9.0)

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
NameDescription
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.

getAnswerRelevance

Optional. Whether or not the suggested answer is relevant.

For example:

Returns
TypeDescription
int

setAnswerRelevance

Optional. Whether or not the suggested answer is relevant.

For example:

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$this

getSummarizationFeedback

Optional. Feedback for conversation summarization.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\AgentAssistantFeedback\SummarizationFeedback|null

hasSummarizationFeedback

clearSummarizationFeedback

setSummarizationFeedback

Optional. Feedback for conversation summarization.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\AgentAssistantFeedback\SummarizationFeedback
Returns
TypeDescription
$this

getKnowledgeSearchFeedback

Optional. Feedback for knowledge search.

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\AgentAssistantFeedback\KnowledgeSearchFeedback|null

hasKnowledgeSearchFeedback

clearKnowledgeSearchFeedback

setKnowledgeSearchFeedback

Optional. Feedback for knowledge search.

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\AgentAssistantFeedback\KnowledgeSearchFeedback
Returns
TypeDescription
$this