Systemy_DialogowePon15-30/presenter/chatbot_modules/DialoguePolicy.py

14 lines
385 B
Python
Raw Normal View History

from model.SystemActFrame import SystemActFrame
2021-04-19 16:59:42 +02:00
class DialoguePolicy:
def resolve_system_acts(self, dialogueState):
system_acts = []
for act in dialogueState.currentActs:
if "request()" in act.act:
if 'imię' in act.parameters:
system_acts.append(SystemActFrame("inform()", ["imię"]))
2021-04-26 14:26:52 +02:00
return system_acts