Skip to content

SlotValueSelectionSetting

Source code in docs_src/capo_lex_models_v2/types/slot_value_selection_setting.py
class SlotValueSelectionSetting(TypedDict, closed=True):
    resolution_strategy: "capo_lex_models_v2.types.slot_value_resolution_strategy.SlotValueResolutionStrategy"
    """<p>Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:</p> <ul> <li> <p> <code>ORIGINAL_VALUE</code> - Returns the value entered by the user, if the user value is similar to the slot value.</p> </li> <li> <p> <code>TOP_RESOLUTION</code> - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.</p> </li> </ul> <p>If you don't specify the <code>valueSelectionStrategy</code>, the default is <code>ORIGINAL_VALUE</code>.</p>"""
    regex_filter: NotRequired[
        "capo_lex_models_v2.types.slot_value_regex_filter.SlotValueRegexFilter"
    ]
    """<p>A regular expression used to validate the value of a slot.</p>"""
    advanced_recognition_setting: NotRequired[
        "capo_lex_models_v2.types.advanced_recognition_setting.AdvancedRecognitionSetting"
    ]
    """<p>Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances.</p>"""

advanced_recognition_setting instance-attribute

advanced_recognition_setting: NotRequired[AdvancedRecognitionSetting]

Provides settings that enable advanced recognition settings for slot values. You can use this to enable using slot values as a custom vocabulary for recognizing user utterances.

regex_filter instance-attribute

regex_filter: NotRequired[SlotValueRegexFilter]

A regular expression used to validate the value of a slot.

resolution_strategy instance-attribute

resolution_strategy: SlotValueResolutionStrategy

Determines the slot resolution strategy that Amazon Lex uses to return slot type values. The field can be set to one of the following values:

  • ORIGINAL_VALUE - Returns the value entered by the user, if the user value is similar to the slot value.

  • TOP_RESOLUTION - If there is a resolution list for the slot, return the first value in the resolution list as the slot type value. If there is no resolution list, null is returned.

If you don't specify the valueSelectionStrategy, the default is ORIGINAL_VALUE.