Skip to content

ConditionalBranch

Source code in docs_src/capo_lex_models_v2/types/conditional_branch.py
class ConditionalBranch(TypedDict, closed=True):
    name: "capo_lex_models_v2.types.name.Name"
    """<p>The name of the branch. </p>"""
    condition: "capo_lex_models_v2.types.condition.Condition"
    """<p>Contains the expression to evaluate. If the condition is true, the branch's actions are taken.</p>"""
    next_step: "capo_lex_models_v2.types.dialog_state.DialogState"
    """<p>The next step in the conversation.</p>"""
    response: NotRequired[
        "capo_lex_models_v2.types.response_specification.ResponseSpecification"
    ]

condition instance-attribute

condition: Condition

Contains the expression to evaluate. If the condition is true, the branch's actions are taken.

name instance-attribute

name: Name

The name of the branch.

next_step instance-attribute

next_step: DialogState

The next step in the conversation.

response instance-attribute

response: NotRequired[ResponseSpecification]