INNER CODE UNIT · Python
run_lab_feature_trial_endpoint
wzn1118/AsteriaAnalyst · backend/app/main.py:458
def run_lab_feature_trial_endpoint(payload: LabFeatureTrialRunRequest) -> dict[str, object]:
_require_local_skill_installer_enabled()
from app.services.lab_feature_trial_service import run_lab_feature_trial
try:
return run_lab_feature_trial(payload)
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.get("/api/lab/report-agent-teams")
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()