企业生产级参考实现,目标是一套可直接部署的模板工程,包含:
- 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.