Skip to content

SlotDict

Dictionary Type

SlotDict

Bases: TypedDict

Dictionary form of Slot.

Attributes

shape instance-attribute
shape: str | 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 instance-attribute
sub_slots: Mapping[str, Slot | SlotDict] | None

The constituent sub slots of a composite slot.

value instance-attribute
value: Value | ValueDict | None

The current value of the slot.

values instance-attribute
values: Sequence[Slot | SlotDict] | 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."