dialogy.types.slots package

Module contents

Type definition for Slots. Read Intent and Slot Filling for details.

class Slot(*, name, types=NOTHING, values=NOTHING)[source]

Bases: object

Slot Type

Keys are: - name of the slot - type is a list of types that can fill this slot - values list of entities extracted

add(entity)[source]

Insert the BaseEntity within the current Slot instance.

Return type

Slot

clear()[source]

Remove all BaseEntity within the current Slot instance.

Return type

Slot

json()[source]

Convert the object to a dictionary.

Returns:

Dict[str, Any]

Return type

Dict[str, Any]

name: str
types: List[str]
values: List[dialogy.types.entity.base_entity.BaseEntity]