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

View File

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