INNER CODE UNIT · Python
mount_lab_report_agent_team
wzn1118/AsteriaAnalyst · backend/app/main.py:491
def mount_lab_report_agent_team(team_id: str) -> dict[str, object]:
_require_local_skill_installer_enabled()
from app.services.lab_report_agent_team_service import set_lab_report_agent_team_mounted
try:
return set_lab_report_agent_team_mounted(team_id, True)
except FileNotFoundError as exc:
raise HTTPException(status_code=404, detail=str(exc)) from exc
@app.post("/api/lab/report-agent-teams/{team_id}/unmount")
def unmount_lab_report_agent_team(team_id: str) -> dict[str, object]:
_require_local_skill_installer_enabled()
from app.services.lab_report_agent_team_service import set_lab_report_agent_team_mounted
try:
return set_lab_report_agent_team_mounted(team_id, False)
except FileNotFoundError as exc: