Interface Interpretation.Builder

    • Method Detail

      • nluConfidence

        Interpretation.Builder nluConfidence​(ConfidenceScore nluConfidence)

        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.

        Parameters:
        nluConfidence - 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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sentimentResponse

        Interpretation.Builder sentimentResponse​(SentimentResponse 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.

        Parameters:
        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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • intent

        Interpretation.Builder intent​(Intent intent)

        A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.

        Parameters:
        intent - A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • interpretationSource

        Interpretation.Builder interpretationSource​(String interpretationSource)

        Specifies the service that interpreted the input.

        Parameters:
        interpretationSource - Specifies the service that interpreted the input.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InterpretationSource, InterpretationSource