feat: 第四轮功能增强 - LLM 思维记忆优化、DevTools 记忆UI、9个新工具、5分钟自我思考

- 优化 LLM 思维方式和记忆方法(类别/重要性/关键词/相似度合并/衰减)
- DevTools 记忆查询 UI 重新设计(类别筛选/排序/星标/搜索)
- 新增 9 个 LLM 工具:calculator, datetime, file_ops, http_request, json_ops, text, random, crypto, markdown
- 管理员主对话 5 分钟自我思考增强(工具调用/记忆提取/记忆维护)
This commit is contained in:
2026-05-18 12:13:49 +08:00
parent 07781eda0e
commit b6ec36886c
20 changed files with 4654 additions and 320 deletions
@@ -243,3 +243,59 @@ type IotExampleConfig struct {
Action string `yaml:"action"`
Text string `yaml:"text"`
}
// ThinkingGuidelines 思维指南配置
type ThinkingGuidelines struct {
Enabled bool `yaml:"enabled"`
Steps []ThinkingStep `yaml:"steps"`
}
// ThinkingStep 思维步骤
type ThinkingStep struct {
Step int `yaml:"step"`
Name string `yaml:"name"`
Description string `yaml:"description"`
}
// MemoryGuidelines 记忆管理指南配置
type MemoryGuidelines struct {
ShouldRemember []MemoryGuidelineItem `yaml:"should_remember"`
ShouldUpdate []MemoryGuidelineUpdate `yaml:"should_update"`
ShouldNotRemember []MemoryGuidelineNotItem `yaml:"should_not_remember"`
}
// MemoryGuidelineItem 应该记住的项目
type MemoryGuidelineItem struct {
Description string `yaml:"description"`
Category string `yaml:"category"`
Importance int `yaml:"importance"`
}
// MemoryGuidelineUpdate 应该更新的项目
type MemoryGuidelineUpdate struct {
Description string `yaml:"description"`
Action string `yaml:"action"`
}
// MemoryGuidelineNotItem 不需要记住的项目
type MemoryGuidelineNotItem struct {
Description string `yaml:"description"`
}
// ReflectionGuidelines 自我反思指南配置
type ReflectionGuidelines struct {
AfterConversation []ReflectionItem `yaml:"after_conversation"`
Periodic PeriodicReflection `yaml:"periodic"`
}
// ReflectionItem 反思项目
type ReflectionItem struct {
Question string `yaml:"question"`
Action string `yaml:"action"`
}
// PeriodicReflection 周期性反思
type PeriodicReflection struct {
Frequency string `yaml:"frequency"`
Actions []string `yaml:"actions"`
}