Slot Processing#
This module provides wrappers for SlotManager
’s API as BaseProcessing
subclasses.
- class Extract(*slots, success_only=True)[source]#
Bases:
BaseProcessing
Extract slots listed slots. This will override all slots even if they are already extracted.
-
slots:
List
[str
]# A list of slot names to extract.
-
success_only:
bool
# If set, only successfully extracted values will be stored in the slot storage.
-
slots:
- class Unset(*slots)[source]#
Bases:
BaseProcessing
Mark specified slots as not extracted and clear extracted values.
-
slots:
List
[str
]# A list of slot names to extract.
-
slots:
- class UnsetAll(**data)[source]#
Bases:
BaseProcessing
Mark all slots as not extracted and clear all extracted values.
- class FillTemplate(**data)[source]#
Bases:
BaseProcessing
Fill the response template in the current node.
Response message of the current node should be a format-string: e.g.
"Your username is {profile.username}"
.