Struct aws_sdk_lexruntimev2::model::interpretation::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for Interpretation.
Implementations§
source§impl Builder
impl Builder
sourcepub fn nlu_confidence(self, input: ConfidenceScore) -> Self
pub fn nlu_confidence(self, input: ConfidenceScore) -> Self
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 set_nlu_confidence(self, input: Option<ConfidenceScore>) -> Self
pub fn set_nlu_confidence(self, input: Option<ConfidenceScore>) -> Self
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, input: SentimentResponse) -> Self
pub fn sentiment_response(self, input: SentimentResponse) -> Self
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 set_sentiment_response(self, input: Option<SentimentResponse>) -> Self
pub fn set_sentiment_response(self, input: Option<SentimentResponse>) -> Self
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, input: Intent) -> Self
pub fn intent(self, input: Intent) -> Self
A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.
sourcepub fn set_intent(self, input: Option<Intent>) -> Self
pub fn set_intent(self, input: Option<Intent>) -> Self
A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.
sourcepub fn build(self) -> Interpretation
pub fn build(self) -> Interpretation
Consumes the builder and constructs a Interpretation.