This commit is contained in:
s495727 2024-06-13 15:56:23 +02:00
parent 24f75db1d8
commit 118099bb37

View File

@ -70,14 +70,18 @@ class DialogStateMonitor:
if stage['name'] == "collect_food": if stage['name'] == "collect_food":
for order in self.state['belief_state']['order']: for order in self.state['belief_state']['order']:
if len(order) > 0: for o in order:
stage['completed'] = True k, v = o
return if k == 'pizza':
stage['completed'] = True
return
elif stage["name"] == "collect_drinks": elif stage["name"] == "collect_drinks":
for order in self.state['belief_state']['order']: for order in self.state['belief_state']['order']:
if order.get("drink"): for o in order:
stage['completed'] = True k, v = o
return if k == 'drink':
stage['completed'] = True
return
elif stage["name"] == "collect_address": elif stage["name"] == "collect_address":
if not len(self.state['belief_state']['address']): if not len(self.state['belief_state']['address']):
return return