Interface NluImprovementSpecification.Builder

  • Method Details

    • enabled

      Determines whether the Assisted NLU feature is enabled for the bot. When set to true, Amazon Lex uses advanced models to improve intent recognition and slot resolution, with the default being false.

      Parameters:
      enabled - Determines whether the Assisted NLU feature is enabled for the bot. When set to true, Amazon Lex uses advanced models to improve intent recognition and slot resolution, with the default being false.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • assistedNluMode

      NluImprovementSpecification.Builder assistedNluMode(String assistedNluMode)

      Specifies the mode for Assisted NLU operation. Use Primary to make Assisted NLU the primary intent recognition method, or Fallback to use it only when standard NLU confidence is low.

      Parameters:
      assistedNluMode - Specifies the mode for Assisted NLU operation. Use Primary to make Assisted NLU the primary intent recognition method, or Fallback to use it only when standard NLU confidence is low.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • assistedNluMode

      NluImprovementSpecification.Builder assistedNluMode(AssistedNluMode assistedNluMode)

      Specifies the mode for Assisted NLU operation. Use Primary to make Assisted NLU the primary intent recognition method, or Fallback to use it only when standard NLU confidence is low.

      Parameters:
      assistedNluMode - Specifies the mode for Assisted NLU operation. Use Primary to make Assisted NLU the primary intent recognition method, or Fallback to use it only when standard NLU confidence is low.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • intentDisambiguationSettings

      NluImprovementSpecification.Builder intentDisambiguationSettings(IntentDisambiguationSettings intentDisambiguationSettings)

      An object containing specifications for the Intent Disambiguation feature within the Assisted NLU settings. These settings determine how the bot handles ambiguous user inputs that could match multiple intents.

      Parameters:
      intentDisambiguationSettings - An object containing specifications for the Intent Disambiguation feature within the Assisted NLU settings. These settings determine how the bot handles ambiguous user inputs that could match multiple intents.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • intentDisambiguationSettings

      default NluImprovementSpecification.Builder intentDisambiguationSettings(Consumer<IntentDisambiguationSettings.Builder> intentDisambiguationSettings)

      An object containing specifications for the Intent Disambiguation feature within the Assisted NLU settings. These settings determine how the bot handles ambiguous user inputs that could match multiple intents.

      This is a convenience method that creates an instance of the IntentDisambiguationSettings.Builder avoiding the need to create one manually via IntentDisambiguationSettings.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to intentDisambiguationSettings(IntentDisambiguationSettings).

      Parameters:
      intentDisambiguationSettings - a consumer that will call methods on IntentDisambiguationSettings.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: