refactor(aibox): extract hardcoded prompts to template files
- Move all default prompt content from PromptManager._ensure_* methods into aibox/prompts/ template files - Add 8 new template files: 00_IDENTITY, 100_STATUS, 1_memory_search, 2_memory_save, 5_memo_management, 8_identity_management, 9_language_instruction, 11_emotion_management - Refactor _ensure_* methods to copy from template directory via _ensure_from_template() - _ensure_skill_files now auto-discovers N_*.md files instead of hardcoded list - Update README.md with complete file manifest - Single source of truth: aibox/prompts/ is the only prompt template source
This commit is contained in:
1 parent
e77ef8cf76
commit
0cfb3a7581
10 files changed
+228
-475
No files matched your search
@@ -0,0 +1,25 @@
|
||||
# 记忆保存习惯
|
||||
|
||||
## 重要习惯
|
||||
在对话结束时,**必须**使用 `save_memory_and_end_conversation` 工具保存本次对话的重要内容。
|
||||
|
||||
## 保存什么?
|
||||
- 讨论的主要话题
|
||||
- 达成的共识和结论
|
||||
- 用户的重要需求和偏好
|
||||
- 你的当前状态和下一步计划
|
||||
|
||||
## 如何保存
|
||||
```
|
||||
save_memory_and_end_conversation(
|
||||
summary="详细的对话总结(至少50字)",
|
||||
current_status="你当前的状态描述",
|
||||
topic="对话主题(可选)"
|
||||
)
|
||||
```
|
||||
|
||||
## 示例总结格式
|
||||
```
|
||||
本次对话讨论了用户的项目进度,用户提到项目已经完成80%,
|
||||
预计下周完成。用户对目前的进展表示满意,希望下周能完成测试阶段。
|
||||
```
|
||||
Reference in new issue
Block a user