base_entities#
- class besser.bot.library.entity.base_entities.BaseEntities(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
Enum
Enumeration of supported base entity types. This enumeration defines their names.
- ANY = 'base.any'#
The any base entity.
- DATETIME = 'base.date-time'#
The date-time base entity.
- NUMBER = 'base.number'#
The number base entity.
- besser.bot.library.entity.base_entities.any_entity = <besser.bot.core.entity.entity.Entity object>#
The any base entity.
- besser.bot.library.entity.base_entities.datetime_entity = <besser.bot.core.entity.entity.Entity object>#
The date-time base entity.
- besser.bot.library.entity.base_entities.number_entity = <besser.bot.core.entity.entity.Entity object>#
The number base entity.
- besser.bot.library.entity.base_entities.ordered_base_entities = [BaseEntities.DATETIME, BaseEntities.NUMBER, BaseEntities.ANY]#
This list specifies the order in which base entities must be searched in a user message. For instance, in an intent with a number and a date-time parameter, the number is searched after date-times have been searched since a date-time can contain numbers and matching first a number would interfere in the date-time entity.