Struct aws_sdk_lexruntimev2::types::builders::InterpretationBuilder
source · #[non_exhaustive]pub struct InterpretationBuilder { /* private fields */ }
Expand description
A builder for Interpretation
.
Implementations§
source§impl InterpretationBuilder
impl InterpretationBuilder
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 get_nlu_confidence(&self) -> &Option<ConfidenceScore>
pub fn get_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, 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 get_sentiment_response(&self) -> &Option<SentimentResponse>
pub fn get_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.
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 get_intent(&self) -> &Option<Intent>
pub fn get_intent(&self) -> &Option<Intent>
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
.
Trait Implementations§
source§impl Clone for InterpretationBuilder
impl Clone for InterpretationBuilder
source§fn clone(&self) -> InterpretationBuilder
fn clone(&self) -> InterpretationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InterpretationBuilder
impl Debug for InterpretationBuilder
source§impl Default for InterpretationBuilder
impl Default for InterpretationBuilder
source§fn default() -> InterpretationBuilder
fn default() -> InterpretationBuilder
source§impl PartialEq<InterpretationBuilder> for InterpretationBuilder
impl PartialEq<InterpretationBuilder> for InterpretationBuilder
source§fn eq(&self, other: &InterpretationBuilder) -> bool
fn eq(&self, other: &InterpretationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.