INNER CODE UNIT · Python
import_local_lab_report_agent_team
wzn1118/AsteriaAnalyst · backend/app/main.py:478
def import_local_lab_report_agent_team(payload: LabReportAgentTeamLocalImportRequest) -> dict[str, object]:
_require_local_skill_installer_enabled()
from app.services.lab_report_agent_team_service import import_lab_report_agent_team_from_local_path
try:
return import_lab_report_agent_team_from_local_path(payload.local_path, mount=payload.mount)
except FileNotFoundError as exc:
raise HTTPException(status_code=404, detail=str(exc)) from exc
except ValueError as exc:
raise HTTPException(status_code=400, detail=str(exc)) from exc
@app.post("/api/lab/report-agent-teams/{team_id}/mount")
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: