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
+2 -2
View File
@@ -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/`(工具装载 / 图预留)