11 lines
289 B
Python
11 lines
289 B
Python
|
from src.model.frame import Frame
|
||
|
from src.service.dialog_state_monitor import DialogStateMonitor
|
||
|
|
||
|
|
||
|
# Example
|
||
|
monitor = DialogStateMonitor()
|
||
|
monitor.append(Frame('system', 'hello'))
|
||
|
monitor.append(Frame('user', 'some text'))
|
||
|
print(monitor.get_all()[0].text)
|
||
|
print(monitor.get_last().text)
|