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

Method update_session

webui/backend/session_manager.py:54–61  ·  view source on GitHub ↗

Update session data

(self, session_id: str, updates: Dict[str, Any])

Source from the content-addressed store, hash-verified

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"""
56 if session_id not in self._sessions:
57 return False
58
59 with self._lock:
60 self._sessions[session_id].update(updates)
61 return True
62
63 def delete_session(self, session_id: str) -> bool:
64 """Delete a session"""

Callers 6

start_agentFunction · 0.80
stop_agentFunction · 0.80
send_inputFunction · 0.80
on_agent_completeFunction · 0.80
on_agent_errorFunction · 0.80

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected