MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / _get_or_create

Method _get_or_create

scripts/dashboard.py:553–561  ·  view source on GitHub ↗
(self, path: Path)

Source from the content-addressed store, hash-verified

551 return logs[0].get("path")
552
553 def _get_or_create(self, path: Path) -> LogSession:
554 key = str(path)
555 session = self.sessions.get(key)
556 if session:
557 return session
558 session = LogSession(path, self.socketio, self.shutdown_event)
559 session.load_initial()
560 self.sessions[key] = session
561 return session
562
563 def subscribe(self, sid: str, path: Optional[str]) -> Optional[LogSession]:
564 with self.lock:

Callers 2

subscribeMethod · 0.95
get_stateFunction · 0.80

Calls 3

load_initialMethod · 0.95
LogSessionClass · 0.85
getMethod · 0.80

Tested by

no test coverage detected