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":
for order in self.state['belief_state']['order']:
if len(order) > 0:
stage['completed'] = True
return
for o in order:
k, v = o
if k == 'pizza':
stage['completed'] = True
return
elif stage["name"] == "collect_drinks":
for order in self.state['belief_state']['order']:
if order.get("drink"):
stage['completed'] = True
return
for o in order:
k, v = o
if k == 'drink':
stage['completed'] = True
return
elif stage["name"] == "collect_address":
if not len(self.state['belief_state']['address']):
return