Skip to content

SlotCaptureSetting

Source code in docs_src/capo_lex_models_v2/types/slot_capture_setting.py
class SlotCaptureSetting(TypedDict, closed=True):
    capture_response: NotRequired[
        "capo_lex_models_v2.types.response_specification.ResponseSpecification"
    ]
    capture_next_step: NotRequired["capo_lex_models_v2.types.dialog_state.DialogState"]
    """<p>Specifies the next step that the bot runs when the slot value is captured before the code hook times out.</p>"""
    capture_conditional: NotRequired[
        "capo_lex_models_v2.types.conditional_specification.ConditionalSpecification"
    ]
    """<p>A list of conditional branches to evaluate after the slot value is captured.</p>"""
    failure_response: NotRequired[
        "capo_lex_models_v2.types.response_specification.ResponseSpecification"
    ]
    failure_next_step: NotRequired["capo_lex_models_v2.types.dialog_state.DialogState"]
    """<p>Specifies the next step that the bot runs when the slot value code is not recognized.</p>"""
    failure_conditional: NotRequired[
        "capo_lex_models_v2.types.conditional_specification.ConditionalSpecification"
    ]
    """<p>A list of conditional branches to evaluate when the slot value isn't captured.</p>"""
    code_hook: NotRequired[
        "capo_lex_models_v2.types.dialog_code_hook_invocation_setting.DialogCodeHookInvocationSetting"
    ]
    """<p>Code hook called after Amazon Lex successfully captures a slot value.</p>"""
    elicitation_code_hook: NotRequired[
        "capo_lex_models_v2.types.elicitation_code_hook_invocation_setting.ElicitationCodeHookInvocationSetting"
    ]
    """<p>Code hook called when Amazon Lex doesn't capture a slot value.</p>"""

capture_conditional instance-attribute

capture_conditional: NotRequired[ConditionalSpecification]

A list of conditional branches to evaluate after the slot value is captured.

capture_next_step instance-attribute

capture_next_step: NotRequired[DialogState]

Specifies the next step that the bot runs when the slot value is captured before the code hook times out.

capture_response instance-attribute

capture_response: NotRequired[ResponseSpecification]

code_hook instance-attribute

code_hook: NotRequired[DialogCodeHookInvocationSetting]

Code hook called after Amazon Lex successfully captures a slot value.

elicitation_code_hook instance-attribute

elicitation_code_hook: NotRequired[ElicitationCodeHookInvocationSetting]

Code hook called when Amazon Lex doesn't capture a slot value.

failure_conditional instance-attribute

failure_conditional: NotRequired[ConditionalSpecification]

A list of conditional branches to evaluate when the slot value isn't captured.

failure_next_step instance-attribute

failure_next_step: NotRequired[DialogState]

Specifies the next step that the bot runs when the slot value code is not recognized.

failure_response instance-attribute

failure_response: NotRequired[ResponseSpecification]