Struct aws_sdk_lexruntimev2::types::Interpretation
source · #[non_exhaustive]pub struct Interpretation {
pub nlu_confidence: Option<ConfidenceScore>,
pub sentiment_response: Option<SentimentResponse>,
pub intent: Option<Intent>,
pub interpretation_source: Option<InterpretationSource>,
}Expand description
An object containing information about an intent that Amazon Lex V2 determined might satisfy the user's utterance. The intents are ordered by the confidence score.
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.nlu_confidence: Option<ConfidenceScore>Determines the threshold where Amazon Lex V2 will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a response. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot.
sentiment_response: Option<SentimentResponse>The sentiment expressed in an utterance.
When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.
intent: Option<Intent>A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.
interpretation_source: Option<InterpretationSource>Specifies the service that interpreted the input.
Implementations§
source§impl Interpretation
impl Interpretation
sourcepub fn nlu_confidence(&self) -> Option<&ConfidenceScore>
pub fn nlu_confidence(&self) -> Option<&ConfidenceScore>
Determines the threshold where Amazon Lex V2 will insert the AMAZON.FallbackIntent, AMAZON.KendraSearchIntent, or both when returning alternative intents in a response. AMAZON.FallbackIntent and AMAZON.KendraSearchIntent are only inserted if they are configured for the bot.
sourcepub fn sentiment_response(&self) -> Option<&SentimentResponse>
pub fn sentiment_response(&self) -> Option<&SentimentResponse>
The sentiment expressed in an utterance.
When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.
sourcepub fn intent(&self) -> Option<&Intent>
pub fn intent(&self) -> Option<&Intent>
A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.
sourcepub fn interpretation_source(&self) -> Option<&InterpretationSource>
pub fn interpretation_source(&self) -> Option<&InterpretationSource>
Specifies the service that interpreted the input.
source§impl Interpretation
impl Interpretation
sourcepub fn builder() -> InterpretationBuilder
pub fn builder() -> InterpretationBuilder
Creates a new builder-style object to manufacture Interpretation.
Trait Implementations§
source§impl Clone for Interpretation
impl Clone for Interpretation
source§fn clone(&self) -> Interpretation
fn clone(&self) -> Interpretation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for Interpretation
impl Debug for Interpretation
source§impl PartialEq for Interpretation
impl PartialEq for Interpretation
source§fn eq(&self, other: &Interpretation) -> bool
fn eq(&self, other: &Interpretation) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for Interpretation
Auto Trait Implementations§
impl Freeze for Interpretation
impl RefUnwindSafe for Interpretation
impl Send for Interpretation
impl Sync for Interpretation
impl Unpin for Interpretation
impl UnwindSafe for Interpretation
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
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more