2022-04-19 23:22:44 +02:00
|
|
|
|
2022-06-08 10:23:01 +02:00
|
|
|
def taktyka_dialogu(state, frame):
|
|
|
|
if state['current_context'] in ['hello', 'pomoc', 'bye']:
|
|
|
|
return short_thread(state)
|
|
|
|
else:
|
|
|
|
return long_thread(state)
|
2022-04-19 23:22:44 +02:00
|
|
|
|
2022-06-08 10:23:01 +02:00
|
|
|
def short_thread(state):
|
|
|
|
if state['current_context'] == 'pomoc':
|
|
|
|
pass
|
|
|
|
#TODO
|
|
|
|
else:
|
|
|
|
return state['current_context']
|
2022-04-19 23:22:44 +02:00
|
|
|
|
2022-06-08 10:23:01 +02:00
|
|
|
def long_thread(state):
|
|
|
|
state['topics']
|
2022-04-19 23:22:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2022-06-01 12:53:12 +02:00
|
|
|
|
2022-06-08 10:23:01 +02:00
|
|
|
#todo dodać mock github api
|