Skip to main content

AgentAssistantFeedback

Struct AgentAssistantFeedback 

Source
#[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 */ }
Available on crate feature answer-records only.
Expand description

Detail feedback of Agent Assist result.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§answer_relevance: AnswerRelevance

Optional. Whether or not the suggested answer is relevant.

For example:

§document_correctness: DocumentCorrectness

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: DocumentEfficiency

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: 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

Source

pub fn new() -> Self

Source

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);
Source

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);
Source

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);
Source

pub fn set_summarization_feedback<T>(self, v: T) -> Self

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 */);
Source

pub fn set_or_clear_summarization_feedback<T>(self, v: Option<T>) -> Self

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>);
Source

pub fn set_knowledge_search_feedback<T>(self, v: T) -> Self

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 */);
Source

pub fn set_or_clear_knowledge_search_feedback<T>(self, v: Option<T>) -> Self

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>);
Source

pub fn set_knowledge_assist_feedback<T>(self, v: T) -> Self

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 */);
Source

pub fn set_or_clear_knowledge_assist_feedback<T>(self, v: Option<T>) -> Self

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

Source§

fn clone(&self) -> AgentAssistantFeedback

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AgentAssistantFeedback

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AgentAssistantFeedback

Source§

fn default() -> AgentAssistantFeedback

Returns the “default value” for a type. Read more
Source§

impl Message for AgentAssistantFeedback

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for AgentAssistantFeedback

Source§

fn eq(&self, other: &AgentAssistantFeedback) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for AgentAssistantFeedback

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,