feat: 重构 Agent 目录为 api/agent/infrastructure 分层并更新启动入口

This commit is contained in:
2026-09-20 11:15:10 +08:00
parent 02e7c4b881
commit 177036cf3d
32 changed files with 95 additions and 44 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ deploy/ # 部署 TUI(原 ecom-deploy),流程见 deploy/MANU
- Python 3.11+;设计 `apps/agent/DESIGN.md`
- `cd apps/agent && python -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt`
- 配置 `.env`(参考 `.env.example`):`JWT_SECRET` 须与 Java `jwt.secret` 一致
- 运行:`uvicorn app.main:app --reload --port 8200`
- 运行:`uvicorn api.main:app --reload --port 8200`
- 租户自管 OpenAI Compatible 凭证(Mongo 加密 + Redis 缓存);聊天/会话在 Agent Mongo 库
## 授权(apps/license-server)