MCPcopy Create free account
hub / github.com/modelscope/ms-agent / get_session

Method get_session

webui/backend/session_manager.py:50–52  ·  view source on GitHub ↗

Get session by ID

(self, session_id: str)

Source from the content-addressed store, hash-verified

48 return session
49
50 def get_session(self, session_id: str) -> Optional[Dict[str, Any]]:
51 """Get session by ID"""
52 return self._sessions.get(session_id)
53
54 def update_session(self, session_id: str, updates: Dict[str, Any]) -> bool:
55 """Update session data"""

Callers 5

get_project_workflowFunction · 0.80
get_sessionFunction · 0.80
websocket_sessionFunction · 0.80
start_agentFunction · 0.80
send_statusFunction · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected