Struct aws_sdk_lexruntimev2::model::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
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.
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.
Creates a new builder-style object to manufacture Interpretation
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for Interpretation
impl Send for Interpretation
impl Sync for Interpretation
impl Unpin for Interpretation
impl UnwindSafe for Interpretation
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
