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

Function get_session_root

webui/backend/api.py:24–31  ·  view source on GitHub ↗
(session_id: str)

Source from the content-addressed store, hash-verified

22
23
24def get_session_root(session_id: str) -> Path:
25 if not session_id or not str(session_id).strip():
26 raise HTTPException(status_code=400, detail='session_id is required')
27
28 backend_root = get_backend_root()
29 work_dir = (backend_root / 'work_dir' / str(session_id)).resolve()
30 work_dir.mkdir(parents=True, exist_ok=True)
31 return work_dir
32
33
34# Request/Response Models

Callers 3

list_output_filesFunction · 0.85
read_file_contentFunction · 0.85
stream_fileFunction · 0.85

Calls 2

get_backend_rootFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected