feat: 扩展饮食记录确认流程,支持选择选项和响应处理
- 在教练页面中新增AI选择选项和食物确认选项的数据结构 - 扩展消息结构以支持选择选项和交互类型 - 实现非流式JSON响应的处理逻辑,支持用户确认选择 - 添加选择选项的UI组件,提升用户交互体验 - 更新样式以适应新功能,确保视觉一致性
This commit is contained in:
@@ -4,6 +4,11 @@ export type AiCoachChatMessage = {
|
||||
id: string;
|
||||
role: 'user' | 'assistant';
|
||||
content: string;
|
||||
attachments?: any[];
|
||||
choices?: any[];
|
||||
interactionType?: string;
|
||||
pendingData?: any;
|
||||
context?: any;
|
||||
};
|
||||
|
||||
export type AiCoachSessionCache = {
|
||||
|
||||
Reference in New Issue
Block a user