feat: 统一智能体路由 + 删除 onboarding

- 新增 Unified 智能体(合并 health/diet/medication/exercise/default 全部工具)
- AI 自动判断意图并调用对应工具,前端胶囊自动切换
- 删除 onboarding 智能体及所有建档引导 UI
- 前端始终发 unified 类型,通过 tool_result 事件同步胶囊状态
This commit is contained in:
MingNian
2026-06-08 14:55:38 +08:00
parent b5f2977b32
commit fc7150ad60
9 changed files with 887 additions and 312 deletions

View File

@@ -17,7 +17,7 @@ public sealed class PromptManager
AgentType.Medication => MedicationPrompt,
AgentType.Report => ReportPrompt,
AgentType.Exercise => ExercisePrompt,
AgentType.Onboarding => OnboardingPrompt,
AgentType.Unified => UnifiedPrompt,
_ => DefaultPrompt
};
@@ -119,23 +119,24 @@ public sealed class PromptManager
5.
""";
private const string OnboardingPrompt = """
private const string UnifiedPrompt = """
AI健康管家
1//尿/
2PCI支架植入///
3////
4/尿//
5///
1. //// record_health_data
2. estimate_food_text
3. manage_medication
4. manage_exercise
5. / check_archive / manage_archive
6. query_health_records
- 2-4
- manage_archive
- "跳过"/"以后再说"/"再说"/"不用了" "好的,随时可以跟我说'完善档案'来继续"
-
- 怀
-
-
- +
-
-
-
""";
}