#[non_exhaustive]pub struct AgentAssistantFeedback {
pub answer_relevance: AnswerRelevance,
pub document_correctness: DocumentCorrectness,
pub document_efficiency: DocumentEfficiency,
pub summarization_feedback: Option<SummarizationFeedback>,
pub knowledge_search_feedback: Option<KnowledgeSearchFeedback>,
pub knowledge_assist_feedback: Option<KnowledgeAssistFeedback>,
/* private fields */
}answer-records only.Expand description
Detail feedback of Agent Assist result.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.answer_relevance: AnswerRelevanceOptional. 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: DocumentCorrectnessOptional. 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: DocumentEfficiencyOptional. 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: 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 set_answer_relevance<T: Into<AnswerRelevance>>(self, v: T) -> Self
pub fn set_answer_relevance<T: Into<AnswerRelevance>>(self, v: T) -> Self
Sets the value of answer_relevance.
§Example
use google_cloud_dialogflow_v2::model::agent_assistant_feedback::AnswerRelevance;
let x0 = AgentAssistantFeedback::new().set_answer_relevance(AnswerRelevance::Irrelevant);
let x1 = AgentAssistantFeedback::new().set_answer_relevance(AnswerRelevance::Relevant);Sourcepub fn set_document_correctness<T: Into<DocumentCorrectness>>(
self,
v: T,
) -> Self
pub fn set_document_correctness<T: Into<DocumentCorrectness>>( self, v: T, ) -> Self
Sets the value of document_correctness.
§Example
use google_cloud_dialogflow_v2::model::agent_assistant_feedback::DocumentCorrectness;
let x0 = AgentAssistantFeedback::new().set_document_correctness(DocumentCorrectness::Incorrect);
let x1 = AgentAssistantFeedback::new().set_document_correctness(DocumentCorrectness::Correct);Sourcepub fn set_document_efficiency<T: Into<DocumentEfficiency>>(self, v: T) -> Self
pub fn set_document_efficiency<T: Into<DocumentEfficiency>>(self, v: T) -> Self
Sets the value of document_efficiency.
§Example
use google_cloud_dialogflow_v2::model::agent_assistant_feedback::DocumentEfficiency;
let x0 = AgentAssistantFeedback::new().set_document_efficiency(DocumentEfficiency::Inefficient);
let x1 = AgentAssistantFeedback::new().set_document_efficiency(DocumentEfficiency::Efficient);Sourcepub fn set_summarization_feedback<T>(self, v: T) -> Selfwhere
T: Into<SummarizationFeedback>,
pub fn set_summarization_feedback<T>(self, v: T) -> Selfwhere
T: Into<SummarizationFeedback>,
Sets the value of summarization_feedback.
§Example
use google_cloud_dialogflow_v2::model::agent_assistant_feedback::SummarizationFeedback;
let x = AgentAssistantFeedback::new().set_summarization_feedback(SummarizationFeedback::default()/* use setters */);Sourcepub fn set_or_clear_summarization_feedback<T>(self, v: Option<T>) -> Selfwhere
T: Into<SummarizationFeedback>,
pub fn set_or_clear_summarization_feedback<T>(self, v: Option<T>) -> Selfwhere
T: Into<SummarizationFeedback>,
Sets or clears the value of summarization_feedback.
§Example
use google_cloud_dialogflow_v2::model::agent_assistant_feedback::SummarizationFeedback;
let x = AgentAssistantFeedback::new().set_or_clear_summarization_feedback(Some(SummarizationFeedback::default()/* use setters */));
let x = AgentAssistantFeedback::new().set_or_clear_summarization_feedback(None::<SummarizationFeedback>);Sourcepub fn set_knowledge_search_feedback<T>(self, v: T) -> Selfwhere
T: Into<KnowledgeSearchFeedback>,
pub fn set_knowledge_search_feedback<T>(self, v: T) -> Selfwhere
T: Into<KnowledgeSearchFeedback>,
Sets the value of knowledge_search_feedback.
§Example
use google_cloud_dialogflow_v2::model::agent_assistant_feedback::KnowledgeSearchFeedback;
let x = AgentAssistantFeedback::new().set_knowledge_search_feedback(KnowledgeSearchFeedback::default()/* use setters */);Sourcepub fn set_or_clear_knowledge_search_feedback<T>(self, v: Option<T>) -> Selfwhere
T: Into<KnowledgeSearchFeedback>,
pub fn set_or_clear_knowledge_search_feedback<T>(self, v: Option<T>) -> Selfwhere
T: Into<KnowledgeSearchFeedback>,
Sets or clears the value of knowledge_search_feedback.
§Example
use google_cloud_dialogflow_v2::model::agent_assistant_feedback::KnowledgeSearchFeedback;
let x = AgentAssistantFeedback::new().set_or_clear_knowledge_search_feedback(Some(KnowledgeSearchFeedback::default()/* use setters */));
let x = AgentAssistantFeedback::new().set_or_clear_knowledge_search_feedback(None::<KnowledgeSearchFeedback>);Sourcepub fn set_knowledge_assist_feedback<T>(self, v: T) -> Selfwhere
T: Into<KnowledgeAssistFeedback>,
pub fn set_knowledge_assist_feedback<T>(self, v: T) -> Selfwhere
T: Into<KnowledgeAssistFeedback>,
Sets the value of knowledge_assist_feedback.
§Example
use google_cloud_dialogflow_v2::model::agent_assistant_feedback::KnowledgeAssistFeedback;
let x = AgentAssistantFeedback::new().set_knowledge_assist_feedback(KnowledgeAssistFeedback::default()/* use setters */);Sourcepub fn set_or_clear_knowledge_assist_feedback<T>(self, v: Option<T>) -> Selfwhere
T: Into<KnowledgeAssistFeedback>,
pub fn set_or_clear_knowledge_assist_feedback<T>(self, v: Option<T>) -> Selfwhere
T: Into<KnowledgeAssistFeedback>,
Sets or clears the value of knowledge_assist_feedback.
§Example
use google_cloud_dialogflow_v2::model::agent_assistant_feedback::KnowledgeAssistFeedback;
let x = AgentAssistantFeedback::new().set_or_clear_knowledge_assist_feedback(Some(KnowledgeAssistFeedback::default()/* use setters */));
let x = AgentAssistantFeedback::new().set_or_clear_knowledge_assist_feedback(None::<KnowledgeAssistFeedback>);Trait Implementations§
Source§impl Clone for AgentAssistantFeedback
impl Clone for AgentAssistantFeedback
Source§fn clone(&self) -> AgentAssistantFeedback
fn clone(&self) -> AgentAssistantFeedback
1.0.0 (const: unstable) · 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§fn default() -> AgentAssistantFeedback
fn default() -> AgentAssistantFeedback
Source§impl Message for AgentAssistantFeedback
impl Message for AgentAssistantFeedback
Source§impl PartialEq for AgentAssistantFeedback
impl PartialEq for AgentAssistantFeedback
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 UnsafeUnpin 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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