Skip to content

Lex Runtime V2  >  Structures  >  Slot

Slot

Structure Class

Slot dataclass

A value that Amazon Lex V2 uses to fulfill an intent.

Attributes

shape class-attribute instance-attribute
shape: Shape | None = None

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 class-attribute instance-attribute
sub_slots: dict[str, Slot] | None = None

The constituent sub slots of a composite slot.

value class-attribute instance-attribute
value: Value | None = None

The current value of the slot.

values class-attribute instance-attribute
values: list[Slot] | None = None

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."