Slot Conditions#
Provides slot-related conditions.
- class SlotsExtracted(*slots, mode='all')[source]#
Bases:
BaseCondition
Check if
slots
are extracted.- Parameters:
mode (
Literal
['any'
,'all'
]) – Whether to check if all slots are extracted or any slot is extracted.
- slots: List[SlotName]#
Names of the slots that need to be checked.
- mode: Literal['any', 'all']#
Whether to check if all slots are extracted or any slot is extracted.