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

View File

@ -70,12 +70,16 @@ class DialogStateMonitor:
if stage['name'] == "collect_food":
for order in self.state['belief_state']['order']:
if len(order) > 0:
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"):
for o in order:
k, v = o
if k == 'drink':
stage['completed'] = True
return
elif stage["name"] == "collect_address":