Interpretation¶
Structure Class¶
Interpretation
dataclass
¶
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.
Attributes¶
intent
class-attribute
instance-attribute
¶
intent: Intent | None = None
A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.
interpretation_source
class-attribute
instance-attribute
¶
interpretation_source: InterpretationSource | None = None
Specifies the service that interpreted the input.
nlu_confidence
class-attribute
instance-attribute
¶
nlu_confidence: ConfidenceScore | None = None
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
class-attribute
instance-attribute
¶
sentiment_response: SentimentResponse | None = None
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.