Baida-ari7 commited on
Commit
cbdeaec
·
verified ·
1 Parent(s): 6a7ce02

sync: 121 file da Baida98/AI@1a4e0e8e (2026-06-27 12:01 UTC)

Browse files
Files changed (2) hide show
  1. agents/unified_loop_tools.py +2 -2
  2. api/agent.py +5 -2
agents/unified_loop_tools.py CHANGED
@@ -757,7 +757,7 @@ class DirectToolsMixin:
757
  except Exception as _exc:
758
  return f"[python_analyze: errore — {str(_exc)[:200]}]"
759
 
760
- _parallel_results = await asyncio.gather(
761
  _sem_wrap(_t_get_weather()),
762
  _sem_wrap(_t_read_page()),
763
  _sem_wrap(_t_calculate()),
@@ -793,7 +793,7 @@ class DirectToolsMixin:
793
  "[STRUTTURA PROGETTO", # S764: directory_tree
794
  "[FILE TROVATI", # S764: file_search
795
  "[NOTIZIE",
796
- "[STATO GIT", # S764: git_status
797
  "[ANALISI PYTHON", # P30-B1: python_analyze
798
  )
799
  _n_success = sum(1 for r in results if any(r.startswith(p) for p in _REAL_DATA_PREFIXES))
 
757
  except Exception as _exc:
758
  return f"[python_analyze: errore — {str(_exc)[:200]}]"
759
 
760
+ _parallel_results = await asyncio.gather(
761
  _sem_wrap(_t_get_weather()),
762
  _sem_wrap(_t_read_page()),
763
  _sem_wrap(_t_calculate()),
 
793
  "[STRUTTURA PROGETTO", # S764: directory_tree
794
  "[FILE TROVATI", # S764: file_search
795
  "[NOTIZIE",
796
+ "[STATO GIT", # S764: git_status
797
  "[ANALISI PYTHON", # P30-B1: python_analyze
798
  )
799
  _n_success = sum(1 for r in results if any(r.startswith(p) for p in _REAL_DATA_PREFIXES))
api/agent.py CHANGED
@@ -73,8 +73,11 @@ router = APIRouter()
73
  @router.post('/run_loop', deprecated=True)
74
  async def run_loop():
75
  """Deprecated — use /agent/task instead."""
76
- from fastapi import HTTPException
77
- raise HTTPException(status_code=410, detail="run_loop is deprecated. Use /agent/task.")
 
 
 
78
 
79
 
80
  # ─── P17-F5: Persona helpers ──────────────────────────────────────────────────
 
73
  @router.post('/run_loop', deprecated=True)
74
  async def run_loop():
75
  """Deprecated — use /agent/task instead."""
76
+ from fastapi.responses import JSONResponse
77
+ return JSONResponse(status_code=410, content={
78
+ "detail": "run_loop is deprecated. Use /api/agent/tasks.",
79
+ "migration": "/api/agent/tasks",
80
+ })
81
 
82
 
83
  # ─── P17-F5: Persona helpers ──────────────────────────────────────────────────