企業生產級參考實現,目標是一套可直接部署的模板工程,包含:
- FastAPI HTTP API(任務提交、狀態查詢)
- Celery 異步任務隊列(Redis Broker)
- PostgreSQL + pgvector(向量存儲,RAG)
- SQLAlchemy + Alembic(ORM 與遷移)
- AutoGen 多智能體編排(Planner / Coder / Executor)
- 安全的代碼執行沙盒(Executor 采用容器化、資源限制)
- 日志、監控、配置、CI 建議
本倉庫結構、核心文件、關鍵實現代碼和部署說明都包含在下面。你可以按需把某些模塊替換為公司內部實現(例如模型 SDK、私有向量服務等)。
倉庫結構
autogen-enterprise/
├── app/
│ ├── main.py
│ ├── api/
│ │ └── v1/
│ │ ├── routers.py
│ │ └── schemas.py
│ ├── core/
│ │ ├── config.py
│ │ └── logging.py
│ ├── db/
│ │ ├── base.py
│ │ ├── session.py
│ │ └── models.py
│ ├── services/
│ │ ├── autogen_agents.