Struct google_api_proto::google::cloud::dialogflow::v2::AgentAssistantFeedback
source · pub struct AgentAssistantFeedback {
pub answer_relevance: i32,
pub document_correctness: i32,
pub document_efficiency: i32,
pub summarization_feedback: Option<SummarizationFeedback>,
pub knowledge_search_feedback: Option<KnowledgeSearchFeedback>,
pub knowledge_assist_feedback: Option<KnowledgeAssistFeedback>,
}
Expand description
Detail feedback of Agent Assist result.
Fields§
§answer_relevance: i32
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][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
document_correctness: i32
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: i32
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][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency] is [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
summarization_feedback: Option<SummarizationFeedback>
Optional. Feedback for conversation summarization.
knowledge_search_feedback: Option<KnowledgeSearchFeedback>
Optional. Feedback for knowledge search.
knowledge_assist_feedback: Option<KnowledgeAssistFeedback>
Optional. Feedback for knowledge assist.
Implementations§
source§impl AgentAssistantFeedback
impl AgentAssistantFeedback
sourcepub fn answer_relevance(&self) -> AnswerRelevance
pub fn answer_relevance(&self) -> AnswerRelevance
Returns the enum value of answer_relevance
, or the default if the field is set to an invalid enum value.
sourcepub fn set_answer_relevance(&mut self, value: AnswerRelevance)
pub fn set_answer_relevance(&mut self, value: AnswerRelevance)
Sets answer_relevance
to the provided enum value.
sourcepub fn document_correctness(&self) -> DocumentCorrectness
pub fn document_correctness(&self) -> DocumentCorrectness
Returns the enum value of document_correctness
, or the default if the field is set to an invalid enum value.
sourcepub fn set_document_correctness(&mut self, value: DocumentCorrectness)
pub fn set_document_correctness(&mut self, value: DocumentCorrectness)
Sets document_correctness
to the provided enum value.
sourcepub fn document_efficiency(&self) -> DocumentEfficiency
pub fn document_efficiency(&self) -> DocumentEfficiency
Returns the enum value of document_efficiency
, or the default if the field is set to an invalid enum value.
sourcepub fn set_document_efficiency(&mut self, value: DocumentEfficiency)
pub fn set_document_efficiency(&mut self, value: DocumentEfficiency)
Sets document_efficiency
to the provided enum value.
Trait Implementations§
source§impl Clone for AgentAssistantFeedback
impl Clone for AgentAssistantFeedback
source§fn clone(&self) -> AgentAssistantFeedback
fn clone(&self) -> AgentAssistantFeedback
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AgentAssistantFeedback
impl Debug for AgentAssistantFeedback
source§impl Default for AgentAssistantFeedback
impl Default for AgentAssistantFeedback
source§impl Message for AgentAssistantFeedback
impl Message for AgentAssistantFeedback
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for AgentAssistantFeedback
impl PartialEq for AgentAssistantFeedback
source§fn eq(&self, other: &AgentAssistantFeedback) -> bool
fn eq(&self, other: &AgentAssistantFeedback) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AgentAssistantFeedback
Auto Trait Implementations§
impl Freeze for AgentAssistantFeedback
impl RefUnwindSafe for AgentAssistantFeedback
impl Send for AgentAssistantFeedback
impl Sync for AgentAssistantFeedback
impl Unpin for AgentAssistantFeedback
impl UnwindSafe for AgentAssistantFeedback
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request