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

Function send_status

webui/backend/websocket_handler.py:395–406  ·  view source on GitHub ↗

Send current status to a client

(session_id: str, websocket: WebSocket)

Source from the content-addressed store, hash-verified

393
394
395async def send_status(session_id: str, websocket: WebSocket):
396 """Send current status to a client"""
397 session = session_manager.get_session(session_id)
398 if session:
399 await websocket.send_json({
400 'type':
401 'status',
402 'session':
403 session,
404 'messages':
405 session_manager.get_messages(session_id)
406 })
407
408
409async def on_agent_output(session_id: str, message: Dict[str, Any]):

Callers 1

handle_session_messageFunction · 0.85

Calls 2

get_sessionMethod · 0.80
get_messagesMethod · 0.80

Tested by

no test coverage detected