[][src]Struct gcp_client::google::cloud::dialogflow::v2beta1::knowledge_answers::Answer

pub struct Answer {
    pub source: String,
    pub faq_question: String,
    pub answer: String,
    pub match_confidence_level: i32,
    pub match_confidence: f32,
}

An answer from Knowledge Connector.

Fields

source: String

Indicates which Knowledge Document this answer was extracted from. Format: projects/<Project ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>.

faq_question: String

The corresponding FAQ question if the answer was extracted from a FAQ Document, empty otherwise.

answer: String

The piece of text from the source knowledge base document that answers this conversational query.

match_confidence_level: i32

The system's confidence level that this knowledge answer is a good match for this conversational query. NOTE: The confidence level for a given <query, answer> pair may change without notice, as it depends on models that are constantly being improved. However, it will change less frequently than the confidence score below, and should be preferred for referencing the quality of an answer.

match_confidence: f32

The system's confidence score that this Knowledge answer is a good match for this conversational query. The range is from 0.0 (completely uncertain) to 1.0 (completely certain). Note: The confidence score is likely to vary somewhat (possibly even for identical requests), as the underlying model is under constant improvement. It may be deprecated in the future. We recommend using match_confidence_level which should be generally more stable.

Implementations

impl Answer[src]

pub fn match_confidence_level(&self) -> MatchConfidenceLevel[src]

Returns the enum value of match_confidence_level, or the default if the field is set to an invalid enum value.

pub fn set_match_confidence_level(&mut self, value: MatchConfidenceLevel)[src]

Sets match_confidence_level to the provided enum value.

Trait Implementations

impl Clone for Answer[src]

impl Debug for Answer[src]

impl Default for Answer[src]

impl Message for Answer[src]

impl PartialEq<Answer> for Answer[src]

impl StructuralPartialEq for Answer[src]

Auto Trait Implementations

impl RefUnwindSafe for Answer

impl Send for Answer

impl Sync for Answer

impl Unpin for Answer

impl UnwindSafe for Answer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

impl<T> WithSubscriber for T[src]