namespace Amazon.Lambda.LexV2Events { /// /// An intent that Amazon Lex V2 determined might satisfy the user's utterance. The intents are ordered by the confidence score. /// https://docs.aws.amazon.com/lexv2/latest/dg/API_runtime_Interpretation.html /// public class LexV2Interpretation { /// /// Intents that might satisfy the user's utterance. /// public LexV2Intent Intent { get; set; } /// /// Represents a score that indicates the confidence that Amazon Lex V2 has that an intent is the one that satisfies the user's intent. 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. /// public double? NluConfidence { get; set; } /// /// The sentiment expressed in an utterance. /// /// public LexV2SentimentResponse SentimentResponse { get; set; } } /// /// Provides information about the sentiment expressed in a user's response in a conversation. Sentiments are determined using Amazon Comprehend. /// Sentiments are only returned if they are enabled for the bot. /// https://docs.aws.amazon.com/lexv2/latest/dg/API_runtime_SentimentResponse.html /// public class LexV2SentimentResponse { /// /// The overall sentiment expressed in the user's response. This is the sentiment most likely expressed by the user based on the analysis by Amazon Comprehend. /// public string Sentiment { get; set; } /// /// The individual sentiment responses for the utterance. /// public LexV2SentimentScore SentimentScore { get; set; } } /// /// The class that represents the individual sentiment responses for the utterance. /// https://docs.aws.amazon.com/lexv2/latest/dg/API_runtime_SentimentScore.html /// public class LexV2SentimentScore { /// /// The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED sentiment. /// public double? Mixed { get; set; } /// /// The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE sentiment. /// public double? Negative { get; set; } /// /// The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL sentiment. /// public double? Neutral { get; set; } /// /// The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE sentiment. /// public double? Positive { get; set; } } }