sklep-internetowy-systemy-d.../chatbot/modules/state_monitor.py
2024-05-05 21:42:45 +02:00

7 lines
201 B
Python

class DialogueStateMonitor:
def __init__(self) -> None:
self.state = {'last_intent': 'unknown'}
def update_state(self, intent: str) -> None:
self.state['last_intent'] = intent