refactor: 删除 config.json + 内置工具抽离 + 统一接口
删除:
- config.rs / config.json(AppConfig/LmStudioConfig)
- LM Studio 残留(lmstudio.rs 已在之前删除)
- main.rs 中散落的内置工具 match arms
新增:
- src/tools/builtin.rs — BuiltinRegistry 统一切入
get_current_datetime、manage_memos 为核心内置工具
统一参数校验、风险等级、错误返回
改动:
- 模型名直接从 DEEPSEEK_MODEL 环境变量读取
- builtin 工具与 skills 工具统一经过 SkillRegistry 审批
- query_capabilities 合并内置 + 外部技能列表
This commit is contained in:
@@ -1,36 +1,8 @@
|
||||
# manage_memos
|
||||
|
||||
管理备忘录:添加、列出、删除。
|
||||
|
||||
备忘录存储在 `.data/memos.json` 文件中。
|
||||
|
||||
管理备忘录(添加/列出/删除)。内置 Rust 实现,无脚本依赖。
|
||||
## Risk Level
|
||||
High
|
||||
|
||||
## Parameters
|
||||
```json
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string",
|
||||
"description": "操作类型",
|
||||
"enum": ["add", "list", "delete"]
|
||||
},
|
||||
"content": {
|
||||
"type": "string",
|
||||
"description": "备忘内容(add 时需要)"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"description": "备忘编号(delete 时需要)"
|
||||
}
|
||||
},
|
||||
"required": ["action"]
|
||||
}
|
||||
```
|
||||
|
||||
## Execute
|
||||
```bash
|
||||
scripts/memo.sh
|
||||
# Builtin: Rust
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user