notice

This is documentation for Rasa Open Source Documentation v2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (3.x).

Version: 2.x

rasa.core.slots

Slot Objects

class Slot()

feature_dimensionality

| feature_dimensionality() -> int

How many features this single slot creates.

The dimensionality of the array returned by as_feature needs to correspond to this value.

add_default_value

| add_default_value() -> None

Add a default value to a slots user-defined values

has_features

| has_features() -> bool

Indicate if the slot creates any features.

value_reset_delay

| value_reset_delay() -> Optional[int]

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.

resolve_by_type

| @staticmethod
| resolve_by_type(type_name) -> Type["Slot"]

Returns a slots class by its type name.