Interface IntentDisambiguationSettings.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<IntentDisambiguationSettings.Builder,,IntentDisambiguationSettings> SdkBuilder<IntentDisambiguationSettings.Builder,,IntentDisambiguationSettings> SdkPojo
- Enclosing class:
IntentDisambiguationSettings
@Mutable
@NotThreadSafe
public static interface IntentDisambiguationSettings.Builder
extends SdkPojo, CopyableBuilder<IntentDisambiguationSettings.Builder,IntentDisambiguationSettings>
-
Method Summary
Modifier and TypeMethodDescriptioncustomDisambiguationMessage(String customDisambiguationMessage) Provides a custom message that will be displayed before presenting the disambiguation options to users.Determines whether the Intent Disambiguation feature is enabled.maxDisambiguationIntents(Integer maxDisambiguationIntents) Specifies the maximum number of intent options (2-5) to present to users when disambiguation is needed.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
enabled
Determines whether the Intent Disambiguation feature is enabled. When set to
true, Amazon Lex will present disambiguation options to users when multiple intents could match their input, with the default beingfalse.- Parameters:
enabled- Determines whether the Intent Disambiguation feature is enabled. When set totrue, Amazon Lex will present disambiguation options to users when multiple intents could match their input, with the default beingfalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxDisambiguationIntents
Specifies the maximum number of intent options (2-5) to present to users when disambiguation is needed. This setting determines how many intent options will be shown to users when the system detects ambiguous input. The default value is 3.
- Parameters:
maxDisambiguationIntents- Specifies the maximum number of intent options (2-5) to present to users when disambiguation is needed. This setting determines how many intent options will be shown to users when the system detects ambiguous input. The default value is 3.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customDisambiguationMessage
IntentDisambiguationSettings.Builder customDisambiguationMessage(String customDisambiguationMessage) Provides a custom message that will be displayed before presenting the disambiguation options to users. This message helps set the context for users and can be customized to match your bot's tone and brand. If not specified, a default message will be used.
- Parameters:
customDisambiguationMessage- Provides a custom message that will be displayed before presenting the disambiguation options to users. This message helps set the context for users and can be customized to match your bot's tone and brand. If not specified, a default message will be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-