change act types from enums to dicts

This commit is contained in:
s444510 2023-05-05 00:06:09 +02:00
parent 5bf25d0b2b
commit d63f926b49
2 changed files with 41 additions and 42 deletions

View File

@ -1,20 +1,18 @@
from enum import Enum, unique
@unique
class SystemActType(Enum):
affirm = 0,
bye = 1,
confirm_domain = 2,
negate = 3,
repeat = 4,
reqmore = 5,
welcomemsg = 6,
canthelp = 7,
canthelp_missing_slot_value = 8,
expl_conf = 9,
impl_conf = 10,
inform = 11,
offer = 12,
request = 13,
select = 14
SystemActType = dict(
affirm='affirm',
bye='bye',
canthear='canthear',
confirm_domain='confirm-domain',
negate='negate',
repeat='repeat',
reqmore='reqmore',
welcomemsg='welcomemsg',
canthelp='canthelp',
canthelp_missing_slot_value='canthelp.missing_slot_value',
expl_conf='expl-conf',
impl_conf='inform-conf',
inform='infomr',
offer='offer',
request='request',
select='select'
)

View File

@ -1,22 +1,23 @@
from enum import Enum, unique
@unique
class UserActType(Enum):
ack = 0,
affirm = 1,
bye = 2,
hello = 3,
help = 4,
negate = 5,
null = 6,
repeat = 7,
requalts = 8,
reqmore = 9,
restart = 10,
silence = 11,
thankyou = 12,
confirm = 13,
deny = 14,
inform = 15,
request = 16
UserActType = dict(
ack='ack',
affirm='affirm',
bye='bye',
hello='hello',
help='help',
negate='negate',
null='null',
repeat='repeat',
requalts='requalts',
reqmore='reqmore',
restart='restart',
silence='silence',
thankyou='thankyou',
confirm='confirm',
deny='deny',
inform='inform',
request='request',
order='order',
delivery='delivery',
payment='payment',
price='price'
)