Raised if a slot type is invalid.
Raised if a slot's config is invalid.
Key-value store for storing information during a conversation.
Create a Slot.
name- The name of the slot.
initial_value- The initial value of the slot.
value_reset_delay- After how many turns the slot should be reset to the initial_value. This is behavior is currently not implemented.
Trueif the slot should be filled automatically by entities with the same name.
Truethe slot will be featurized and hence influence the predictions of the dialogue polices.
How many features this single slot creates.
The number of features.
0 if the slot is unfeaturized. The dimensionality
of the array returned by
as_feature needs to correspond to this value.
Indicate if the slot creates any features.
After how many turns the slot should be reset to the initial_value.
If the delay is set to
None, the slot will keep its value forever.
Resets the slot's value to the initial value.
Gets the slot's value.
Sets the slot's value.
Indicates if the slot's value has been set.
Returns a slots class by its type name.
Returns relevant information to persist this slot.
A slot storing a truth value.
Converts bool/float/int/str to bool or raises error
Returns serialized slot.
Slot which can be used to store any value. Users need to create a subclass of
Slot in case the information is supposed to get featurized.
Compares object with other object.