Skip to content

Slot

Source code in docs_src/capo_lex_runtime_v2/types/slot.py
class Slot(TypedDict, closed=True):
    value: NotRequired["capo_lex_runtime_v2.types.value.Value"]
    """<p>The current value of the slot.</p>"""
    shape: NotRequired["capo_lex_runtime_v2.types.shape.Shape"]
    """<p>When the <code>shape</code> value is <code>List</code>, it indicates that the <code>values</code> field contains a list of slot values. When the value is <code>Scalar</code>, it indicates that the <code>value</code> field contains a single value.</p>"""
    values: NotRequired["capo_lex_runtime_v2.types.values.Values"]
    """<p>A list of one or more values that the user provided for the slot. For example, if a for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple." </p>"""
    sub_slots: NotRequired["capo_lex_runtime_v2.types.slots.Slots"]
    """<p>The constituent sub slots of a composite slot.</p>"""

shape instance-attribute

shape: NotRequired[Shape]

When the shape value is List, it indicates that the values field contains a list of slot values. When the value is Scalar, it indicates that the value field contains a single value.

sub_slots instance-attribute

sub_slots: NotRequired[Slots]

The constituent sub slots of a composite slot.

value instance-attribute

value: NotRequired[Value]

The current value of the slot.

values instance-attribute

values: NotRequired[Values]

A list of one or more values that the user provided for the slot. For example, if a for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."