INNER CODE UNIT · Python
health_check
agentscope-ai/agentscope-runtime · src/agentscope_runtime/sandbox/manager/server/app.py:241
async def health_check():
"""Health check endpoint"""
return HealthResponse(
status="healthy",
version=str(_sandbox_manager.default_type),
)
@app.get("/desktop/{sandbox_id}/{path:path}")
async def proxy_vnc_static(sandbox_id: str, path: str):
container_json = _sandbox_manager.container_mapping.get(sandbox_id)
if not container_json:
return Response(status_code=404)
base_url = container_json.get("url")
if not base_url:
return Response(status_code=404)