Baida07 commited on
Commit
0eec8d5
Β·
verified Β·
1 Parent(s): bddf4e9

fix: add missing router = APIRouter() in agent_loop_routes.py

Browse files
Files changed (1) hide show
  1. api/agent_loop_routes.py +2 -0
api/agent_loop_routes.py CHANGED
@@ -55,6 +55,8 @@ async def run_loop_removed():
55
 
56
  # ── SSE run-stream ────────────────────────────────────────────────────────────
57
 
 
 
58
  @router.post('/api/agent/run-stream')
59
  async def agent_run_stream(body: ReasonLoopIn, request: Request):
60
  # S-BENCH: auth guard β€” consistente con /api/exec e /api/execute-shell
 
55
 
56
  # ── SSE run-stream ────────────────────────────────────────────────────────────
57
 
58
+ router = APIRouter()
59
+
60
  @router.post('/api/agent/run-stream')
61
  async def agent_run_stream(body: ReasonLoopIn, request: Request):
62
  # S-BENCH: auth guard β€” consistente con /api/exec e /api/execute-shell