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, 19 insertions(+), 8 deletions(-) diff --git a/src/components/chat/model/types.ts b/src/components/chat/model/types.ts index e26f603..90ffaa1 100644 --- a/src/components/chat/model/types.ts +++ b/src/components/chat/model/types.ts @@ -54,19 +54,20 @@ role: RoleEnum; content?: ChatContent; state?: null | '1' | '0'; - sectionAId?:string, - createTime?:string, - stepList:StepItem[], - stepIsShow:boolean, - conclusion:any[] + sectionAId?: string; + createTime?: string; + stepList?: StepItem[]; + stepIsShow?: boolean; + isStopMsg?: boolean; + /** @description 鏄惁琚�夋嫨鍒嗕韩 */ + isChecked: boolean; + conclusion?: any[]; } export const roleImageMap = { [RoleEnum.user]: userPic, [RoleEnum.assistant]: assistantPic, }; - - export const enum StepEnum { Loading, @@ -78,8 +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; -}; \ No newline at end of file + // 娑堣�楁椂闂� + ms?: string | number; + subStep?: SubStep[]; +}; -- Gitblit v1.9.3