MCPcopy Create free account
hub / github.com/1jehuang/jcode / MonitorState

Class MonitorState

scripts/jcode_monitor.py:41–53  ·  view source on GitHub ↗

Current state of the monitor

Source from the content-addressed store, hash-verified

39
40@dataclass
41class 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
56def get_socket_path() -> str:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected