diff --git a/ai-hub/app/api/routes/agents.py b/ai-hub/app/api/routes/agents.py index dcc32c8..9d008d7 100644 --- a/ai-hub/app/api/routes/agents.py +++ b/ai-hub/app/api/routes/agents.py @@ -190,7 +190,7 @@ if sync: # Synchronous blocking mode try: - answer = await AgentExecutor.run(db, instance.id, prompt, services.rag_service, services.user_service) + answer = await AgentExecutor.run(instance.id, prompt, services.rag_service, services.user_service) return {"status": "success", "response": answer} except Exception as e: raise HTTPException(status_code=500, detail=f"Agent execution failed: {str(e)}")