Current state of the monitor
| 39 | |
| 40 | @dataclass |
| 41 | class MonitorState: |
| 42 | """Current state of the monitor""" |
| 43 | connected: bool = False |
| 44 | session_id: str = "" |
| 45 | is_processing: bool = False |
| 46 | input_tokens: int = 0 |
| 47 | output_tokens: int = 0 |
| 48 | current_text: str = "" |
| 49 | active_tools: dict = field(default_factory=dict) # id -> name |
| 50 | tool_history: list = field(default_factory=list) # recent tool completions |
| 51 | events_received: int = 0 |
| 52 | last_event_time: float = 0 |
| 53 | errors: list = field(default_factory=list) |
| 54 | |
| 55 | |
| 56 | def get_socket_path() -> str: |