This commit is contained in:
2026-03-24 18:07:22 +08:00
parent e062368ef2
commit 9a16f738d8
121 changed files with 8904 additions and 3940 deletions
+29
View File
@@ -0,0 +1,29 @@
# Services 模块
## 目录说明
`services` 负责底层能力封装,包括模型、检索、存储、工具路由和异常体系。
```
services/
├── core/ # LLM / Prompt / 表匹配 / SQL Prompt 管理
├── integrations/ # RAGFlow / Nacos 等外部集成
├── storage/ # 消息存储、日志、缓存
├── tools/ # 工具路由
├── common/ # 通用错误定义
└── README.md
```
## 核心职责
- 为 Agent 提供可复用的基础服务
- 屏蔽外部系统交互细节
- 提供统一的数据持久化与缓存能力
## 文件
- `core/`:模型构建、提示词加载、表匹配、SQL Prompt 管理
- `integrations/`:RAGFlow 与 Nacos 外部接入
- `storage/`:缓存、消息存储、结构化日志
- `tools/`:工具路由
- `common/`:错误码与应用异常