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>,
}
Expand description
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.
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.
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 ==
.