Systemy_dialogowe/system_mockup/taktyka_dialogu.py
Jakub Adamski 38e860cc67 added todo
2022-06-01 12:53:12 +02:00

26 lines
586 B
Python

from enum import Enum
class Questions(Enum):
TIME = "time"
REPO = "repo"
NONE = "none"
#todo taktyka ma zwracać bardziej złożony obiekt
def taktyka_dialogu(frame):
return questions(frame)
#todo dodac wiecej casow
#brac pod uwage stan
def questions(frame):
for slot in frame['slots']:
if slot[0] == "time_when" and slot[1] == None:
return Questions.TIME
if slot[0] == "repo" and (slot[1] == None or slot[1] == ""):
return Questions.REPO
return Questions.NONE
#todo dodać mock github api