INNER CODE UNIT · Python

lab_report_agent_teams

wzn1118/AsteriaAnalyst · backend/app/main.py:471

def lab_report_agent_teams() -> dict[str, object]:
    from app.services.lab_report_agent_team_service import list_lab_report_agent_teams

    return list_lab_report_agent_teams()


@app.post("/api/lab/report-agent-teams/import-local")
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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…