sklep-internetowy-systemy-d.../chatbot/modules/state_monitor.py

7 lines
201 B
Python
Raw Normal View History

2024-05-05 21:42:45 +02:00
class DialogueStateMonitor:
def __init__(self) -> None:
self.state = {'last_intent': 'unknown'}
def update_state(self, intent: str) -> None:
self.state['last_intent'] = intent