diff --git a/backend/src/Health.Domain/Enums/health_enums.cs b/backend/src/Health.Domain/Enums/health_enums.cs index 88fe115..6563515 100644 --- a/backend/src/Health.Domain/Enums/health_enums.cs +++ b/backend/src/Health.Domain/Enums/health_enums.cs @@ -136,10 +136,10 @@ public enum FollowUpStatus public enum AgentType { Default, // 默认对话 - Consultation, // AI 问诊 + Consultation, // AI 对话 Health, // 记数据 Diet, // 拍饮食 - Medication, // 药管家 + Medication, // 药提醒 Report, // 看报告 Exercise, // 运动计划 Unified // 统一入口(自动路由) diff --git a/backend/src/Health.Infrastructure/AI/AgentHandlers/medication_agent_handler.cs b/backend/src/Health.Infrastructure/AI/AgentHandlers/medication_agent_handler.cs index bff17cb..88797fd 100644 --- a/backend/src/Health.Infrastructure/AI/AgentHandlers/medication_agent_handler.cs +++ b/backend/src/Health.Infrastructure/AI/AgentHandlers/medication_agent_handler.cs @@ -3,7 +3,7 @@ using Health.Application.Medications; namespace Health.Infrastructure.AI.AgentHandlers; /// -/// 药管家 Agent 工具处理器。 +/// 药提醒 Agent 工具处理器。 /// public static class MedicationAgentHandler { diff --git a/backend/src/Health.Infrastructure/AI/prompt_manager.cs b/backend/src/Health.Infrastructure/AI/prompt_manager.cs index a68e5a7..e658ccf 100644 --- a/backend/src/Health.Infrastructure/AI/prompt_manager.cs +++ b/backend/src/Health.Infrastructure/AI/prompt_manager.cs @@ -92,7 +92,7 @@ public sealed class PromptManager 4. 遇到以下情况建议立即就医:剧烈胸痛、呼吸困难、心悸 5. 不作任何分析、判断或结论,只整理用户描述的症状 6. 可以客观复述用户说过的症状,不能结合档案推断(如"您有心脏手术史+胸痛,可能是心脏问题") - 7. 问诊结束给出结构化小结,并建议就医评估 + 7. 对话结束给出结构化小结,并建议就医评估 """; private const string HealthDataPrompt = """ diff --git a/health_app/lib/pages/consultation/consultation_pages.dart b/health_app/lib/pages/consultation/consultation_pages.dart index e93005a..91188a7 100644 --- a/health_app/lib/pages/consultation/consultation_pages.dart +++ b/health_app/lib/pages/consultation/consultation_pages.dart @@ -71,7 +71,7 @@ class _DoctorChatPageState extends ConsumerState { Text( state.doctorName.isNotEmpty ? '${state.doctorName} · ${state.doctorDepartment}' - : '问诊对话', + : 'AI对话', style: const TextStyle( fontSize: 19, fontWeight: FontWeight.w600, diff --git a/health_app/lib/pages/home/home_page.dart b/health_app/lib/pages/home/home_page.dart index 38ae51b..e8426f3 100644 --- a/health_app/lib/pages/home/home_page.dart +++ b/health_app/lib/pages/home/home_page.dart @@ -386,7 +386,7 @@ class _HomePageState extends ConsumerState final module = switch (agent) { ActiveAgent.health => fromModule('记数据', AppModuleVisuals.health), ActiveAgent.diet => fromModule('拍饮食', AppModuleVisuals.diet), - ActiveAgent.medication => fromModule('药管家', AppModuleVisuals.medication), + ActiveAgent.medication => fromModule('药提醒', AppModuleVisuals.medication), ActiveAgent.report => fromModule('报告', AppModuleVisuals.report), ActiveAgent.exercise => fromModule('运动', AppModuleVisuals.exercise), _ => null, @@ -402,13 +402,13 @@ class _HomePageState extends ConsumerState return switch (agent) { ActiveAgent.consultation => ( - label: 'AI问诊', + label: 'AI对话', icon: LucideIcons.messageCircle, gradient: AppColors.doctorGradient, iconColor: Colors.white, ), _ => ( - label: 'AI问诊', + label: 'AI对话', icon: LucideIcons.messageCircle, gradient: AppColors.primaryGradient, iconColor: Colors.white, diff --git a/health_app/lib/pages/home/widgets/chat_messages_view.dart b/health_app/lib/pages/home/widgets/chat_messages_view.dart index 8d38c11..3a21304 100644 --- a/health_app/lib/pages/home/widgets/chat_messages_view.dart +++ b/health_app/lib/pages/home/widgets/chat_messages_view.dart @@ -250,28 +250,6 @@ class ChatMessagesView extends ConsumerWidget { height: 206, fit: BoxFit.cover, ), - if (agent == ActiveAgent.consultation) ...[ - const SizedBox(height: 14), - Padding( - padding: const EdgeInsets.symmetric(horizontal: 20), - child: Container( - width: double.infinity, - padding: const EdgeInsets.all(16), - decoration: BoxDecoration( - color: const Color(0xFFF0F4FF), - borderRadius: BorderRadius.circular(14), - ), - child: const Text( - '小脉会陪您一步步梳理症状。请先告诉我哪里不舒服,或说说您现在最担心的问题。', - textAlign: TextAlign.center, - style: TextStyle( - fontSize: 14, - color: AppColors.textSecondary, - ), - ), - ), - ), - ], if (actions.isNotEmpty) ...[ const SizedBox(height: 14), Padding( @@ -1336,11 +1314,11 @@ class ChatMessagesView extends ConsumerWidget { return switch (agent) { ActiveAgent.health => (LucideIcons.heartPulse, '记数据', '录入血压、血糖、心率等日常指标'), ActiveAgent.diet => (AppModuleVisuals.diet.icon, '拍饮食', '拍照识别食物热量和营养成分'), - ActiveAgent.medication => (LucideIcons.pill, '药管家', '管理药品、提醒服药、追踪用量'), + ActiveAgent.medication => (LucideIcons.pill, '药提醒', '管理药品、提醒服药、追踪用量'), ActiveAgent.consultation => ( LucideIcons.messageCircle, - 'AI问诊', - '现在由小脉为您进行预问诊,您可以放心说出身体的不适和疑问', + 'AI对话', + '现在由小脉陪您对话,您可以放心说出身体的不适和疑问', ), ActiveAgent.report => (LucideIcons.fileText, '报告分析', '上传体检报告,AI 辅助解读'), ActiveAgent.exercise => ( @@ -1356,7 +1334,7 @@ class ChatMessagesView extends ConsumerWidget { ActiveAgent.health => '直接说出您的症状或数据,如"血压130/85,心率72"', ActiveAgent.diet => '拍照或描述您吃了什么,如"早餐吃了两个鸡蛋一杯牛奶"', ActiveAgent.medication => '说出药品名称和用法,如"每天早晚各一片阿司匹林"', - ActiveAgent.consultation => '小脉会根据您的回答逐步追问,并给出观察或就医建议', + ActiveAgent.consultation => '小脉会根据您的回答逐步追问,帮您记录和整理症状信息', ActiveAgent.report => '上传您的检查报告,AI 将自动提取指标并解读', ActiveAgent.exercise => '说出运动计划,如"每天散步30分钟坚持一周"', _ => '直接描述您的需求,AI 会自动为您记录和分析',