| | |
| | | export const enum AnswerType { |
| | | Knowledge = 'knowledge', |
| | | RecordSet = 'recordset', |
| | | Text = 'text', |
| | | Summary = 'summary', |
| | | Url = 'url', |
| | | Map = 'map', |
| | | import { STATIC_FILE_BASE_URL } from "@/config/constants"; |
| | | |
| | | export const AnswerType ={ |
| | | Knowledge : 'knowledge', |
| | | RecordSet : 'recordset', |
| | | Text : 'text', |
| | | Summary : 'summary', |
| | | Url : 'url', |
| | | Map : 'map', |
| | | } |
| | | export type AnswerTypeType = typeof AnswerType; |
| | | |
| | | // export const answerTypeMapCom = { |
| | | // [AnswerType.Knowledge]: knowledgeCom, |
| | |
| | | }; |
| | | |
| | | export type ChatContent = { |
| | | type: AnswerType; |
| | | type: AnswerTypeType[keyof AnswerTypeType]; |
| | | values: any; |
| | | askMoreList?: ContextHistory[]; |
| | | errCode?: string; |
| | |
| | | } |
| | | |
| | | export const roleImageMap = { |
| | | [RoleEnum.user]: '/assets/images/user.png', |
| | | [RoleEnum.assistant]: '/assets/images/assistant.jpg', |
| | | [RoleEnum.user]: STATIC_FILE_BASE_URL+'/static/images/role/user.svg', |
| | | [RoleEnum.assistant]:STATIC_FILE_BASE_URL+ '/static/images/role/assistant.jpg', |
| | | }; |