From 1476d27514874e9c95002451a81878bd9bec8382 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期六, 14 十二月 2024 15:36:53 +0800 Subject: [PATCH] 多轮对话 --- src/components/chat/model/types.ts | 27 +++++++++++++++++---------- 1 files changed, 17 insertions(+), 10 deletions(-) diff --git a/src/components/chat/model/types.ts b/src/components/chat/model/types.ts index f5814e1..90ffaa1 100644 --- a/src/components/chat/model/types.ts +++ b/src/components/chat/model/types.ts @@ -54,21 +54,20 @@ role: RoleEnum; content?: ChatContent; state?: null | '1' | '0'; - sectionAId?:string, - createTime?:string, - stepList?:StepItem[], - stepIsShow?:boolean, + sectionAId?: string; + createTime?: string; + stepList?: StepItem[]; + stepIsShow?: boolean; + isStopMsg?: boolean; /** @description 鏄惁琚�夋嫨鍒嗕韩 */ - isChecked:boolean, - conclusion?:any[] + isChecked: boolean; + conclusion?: any[]; } export const roleImageMap = { [RoleEnum.user]: userPic, [RoleEnum.assistant]: assistantPic, }; - - export const enum StepEnum { Loading, @@ -80,10 +79,18 @@ [StepEnum.Success]: 'process', [StepEnum.Error]: 'process', }; +export const enum MultiChatType { + Select = 'select', +} +type SubStep = { + data:any; + type: MultiChatType.Select; +}; export type StepItem = { title: string; status: StepEnum; // 娑堣�楁椂闂� - ms?:string | number; -}; \ No newline at end of file + ms?: string | number; + subStep?: SubStep[]; +}; -- Gitblit v1.9.3