mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 02:29:19 +08:00
feat: 重构 Agent 目录为 api/agent/infrastructure 分层并更新启动入口
This commit is contained in:
@@ -10,7 +10,7 @@ python -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
cp .env.example .env # JWT_SECRET / Mongo / Redis(与 Server 同库) / SERVER_BASE_URL / MCP
|
||||
uvicorn app.main:app --reload --host 0.0.0.0 --port 8200
|
||||
uvicorn api.main:app --reload --host 0.0.0.0 --port 8200
|
||||
```
|
||||
|
||||
健康检查:`GET http://localhost:8200/health`
|
||||
@@ -31,4 +31,4 @@ API 前缀:`/api/agent/...`(会话/聊天/记忆;与前端代理 `/api/age
|
||||
|
||||
## 分层
|
||||
|
||||
`app` → `application` → `domain` ← `infrastructure`
|
||||
`api` → `application` → `domain` ← `infrastructure`;编排在 `agent/`(工具装载 / 图预留)
|
||||
|
||||
Reference in New Issue
Block a user