@myun/gimi-chat 0.0.8 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/useApi.d.ts +2 -0
- package/dist/apis/useApi.js +50 -2
- package/dist/components/ai-chat-dialogue/index.js +135 -181
- package/dist/components/ai-correction/index.js +25 -38
- package/dist/components/ai-loading/index.js +8 -12
- package/dist/components/answer-item/index.d.ts +3 -0
- package/dist/components/answer-item/index.js +126 -135
- package/dist/components/ask-card/index.js +33 -42
- package/dist/components/chat-input/extension/index.d.ts +2 -0
- package/dist/components/chat-input/extension/index.js +2 -0
- package/dist/components/chat-input/extension/keydown/index.d.ts +3 -0
- package/dist/components/chat-input/extension/keydown/index.js +37 -0
- package/dist/components/chat-input/extension/title-slot/Component.d.ts +4 -0
- package/dist/components/chat-input/extension/title-slot/Component.js +18 -0
- package/dist/components/chat-input/extension/title-slot/index.d.ts +3 -0
- package/dist/components/chat-input/extension/title-slot/index.js +47 -0
- package/dist/components/chat-input/extension/title-slot/index.less +22 -0
- package/dist/components/chat-input/index.d.ts +4 -0
- package/dist/components/chat-input/index.js +144 -145
- package/dist/components/chat-input/index.module.css +7 -0
- package/dist/components/chat-voice/VoiceCommunication.js +21 -23
- package/dist/components/chat-voice/VoiceRecord.js +21 -24
- package/dist/components/conversation-delete/index.js +8 -10
- package/dist/components/dots-loading/index.js +7 -10
- package/dist/components/empty/index.js +7 -12
- package/dist/components/excel-components/ExcelCard.js +3 -7
- package/dist/components/excel-components/ExcelExcuting.js +43 -60
- package/dist/components/excel-components/ExcelFailCard.js +10 -15
- package/dist/components/excel-components/ExcelSuccessCard.d.ts +5 -1
- package/dist/components/excel-components/ExcelSuccessCard.js +13 -6
- package/dist/components/file-card/fileCardSidebar.js +17 -23
- package/dist/components/file-card/index.d.ts +3 -0
- package/dist/components/file-card/index.js +59 -69
- package/dist/components/file-card/index.module.css +1 -1
- package/dist/components/file-preview/index.js +62 -37
- package/dist/components/file-preview/index.module.css +33 -0
- package/dist/components/file-upload/index.js +7 -10
- package/dist/components/file-upload/uploadV1.js +27 -33
- package/dist/components/gimi-sidebar/index.js +13 -20
- package/dist/components/header/index.js +11 -18
- package/dist/components/iconfont-com/index.js +33 -12
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/knowledge-trace/KnowledgeIconComponent.js +22 -28
- package/dist/components/knowledge-trace/classList.js +28 -37
- package/dist/components/knowledge-trace/documentList.js +27 -36
- package/dist/components/knowledge-trace/index.js +21 -28
- package/dist/components/knowledge-trace/videoList.js +36 -46
- package/dist/components/lottie-img/index.js +8 -10
- package/dist/components/message-actions/CopyButton.d.ts +1 -1
- package/dist/components/message-actions/CopyButton.js +22 -25
- package/dist/components/message-actions/LikeButton.js +22 -25
- package/dist/components/message-actions/RegenerateButton.js +18 -21
- package/dist/components/message-actions/UnLikeButton.js +22 -25
- package/dist/components/message-actions/VoicePlay.js +22 -25
- package/dist/components/message-list/index.js +83 -87
- package/dist/components/no-microphone-root/index.js +29 -39
- package/dist/components/preset-agent-content/index.d.ts +1 -0
- package/dist/components/preset-agent-content/index.js +27 -20
- package/dist/components/quoted-content/index.d.ts +3 -0
- package/dist/components/quoted-content/index.js +271 -163
- package/dist/components/quoted-content/index.module.css +20 -0
- package/dist/components/reasoning-content/index.d.ts +3 -2
- package/dist/components/reasoning-content/index.js +50 -61
- package/dist/components/reference-content/index.js +62 -71
- package/dist/components/reference-content/index.module.css +1 -0
- package/dist/components/search-result/index.d.ts +7 -0
- package/dist/components/search-result/index.js +182 -0
- package/dist/components/search-result/index.module.css +235 -0
- package/dist/components/templates/CommonChat.js +75 -79
- package/dist/components/templates/GimiChatComponent.js +6 -13
- package/dist/components/upload-list/index.js +41 -56
- package/dist/components/voice-bars/index.js +19 -22
- package/dist/components/voice-check-dialog/index.js +17 -24
- package/dist/components/voice-recording/index.js +42 -57
- package/dist/components/work-flow-content/index.js +8 -11
- package/dist/hooks/useChatActions.d.ts +1 -1
- package/dist/hooks/useChatActions.js +3 -1
- package/dist/hooks/useCommonChatAPI.d.ts +2 -1
- package/dist/hooks/useCommonChatAPI.js +10 -8
- package/dist/hooks/useQuoted.d.ts +12 -0
- package/dist/hooks/useQuoted.js +202 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/interfaces/index.d.ts +3 -0
- package/dist/interfaces/index.js +3 -0
- package/dist/types/answer.d.ts +16 -0
- package/dist/types/chat.d.ts +124 -0
- package/dist/types/file.d.ts +20 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +3 -0
- package/dist/types/modules.d.ts +36 -0
- package/dist/utils/aes.d.ts +21 -0
- package/dist/utils/aes.js +61 -0
- package/dist/utils/chatInputUtil.d.ts +1 -1
- package/dist/utils/chatInputUtil.js +4 -3
- package/package.json +1 -1
- package/dist/components/templates/demo/demo.d.ts +0 -2
- package/dist/components/templates/demo/demo.js +0 -111
- package/dist/components/work-flow-content/demo.d.ts +0 -3
- package/dist/components/work-flow-content/demo.js +0 -12
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { IChatMessageItem } from "../interfaces/chatMessage";
|
|
2
|
+
import { ChatInputRef } from "../components/chat-input";
|
|
3
|
+
import { Content } from "@douyinfe/semi-ui/lib/cjs/aiChatInput";
|
|
4
|
+
|
|
5
|
+
export interface CommonChatRef {
|
|
6
|
+
messageList: IChatMessageItem[];
|
|
7
|
+
agentDetail?: AgentConfig;
|
|
8
|
+
conversationId?: number | null;
|
|
9
|
+
inputEditor?: ChatInputRef | null;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface IAIInputProps {
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
onContentChange?: (content: Content[]) => void;
|
|
15
|
+
defaultPrompt?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
onBeforeSend?: (text: string) => void;
|
|
18
|
+
onSend?: (text: string) => void;
|
|
19
|
+
onConversationCreated?: (conversationId: number) => void;
|
|
20
|
+
onSendEnd?: (message: IChatMessageItem) => void;
|
|
21
|
+
enableVoiceRecord?: boolean;
|
|
22
|
+
enableVoiceChat?: boolean;
|
|
23
|
+
enableFileUpload?: boolean;
|
|
24
|
+
enableSourceQuote?: boolean;
|
|
25
|
+
style?: React.CSSProperties;
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// 语音情感子接口
|
|
30
|
+
export interface VoiceEmotion {
|
|
31
|
+
name?: string;
|
|
32
|
+
param?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// 语音配置子接口
|
|
36
|
+
export interface VoiceConfig {
|
|
37
|
+
emotions?: VoiceEmotion[];
|
|
38
|
+
gender?: string;
|
|
39
|
+
isSupportMix?: number;
|
|
40
|
+
languageCode?: string;
|
|
41
|
+
languageId?: number;
|
|
42
|
+
languageName?: string;
|
|
43
|
+
scene?: string;
|
|
44
|
+
toneId?: number;
|
|
45
|
+
toneName?: string;
|
|
46
|
+
voiceType?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// 工作流列表子接口
|
|
50
|
+
export interface WorkflowItem {
|
|
51
|
+
botFlowId?: string;
|
|
52
|
+
workflowId?: number;
|
|
53
|
+
workflowName?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// 根接口(对应完整 JSON 结构)
|
|
57
|
+
export interface AgentConfig {
|
|
58
|
+
agentIcon?: string;
|
|
59
|
+
agentId?: number;
|
|
60
|
+
agentIntroduce?: string;
|
|
61
|
+
agentMode?: string;
|
|
62
|
+
agentName?: string;
|
|
63
|
+
agentState?: number;
|
|
64
|
+
agentType?: string;
|
|
65
|
+
botId?: string;
|
|
66
|
+
botInstructionId?: number;
|
|
67
|
+
characterSetting?: null;
|
|
68
|
+
conversationType?: number;
|
|
69
|
+
customizeInstructContent?: null;
|
|
70
|
+
defaultPrompt?: string;
|
|
71
|
+
inputPrompt?: string;
|
|
72
|
+
isCustomizeInstruct?: number;
|
|
73
|
+
isEnableRelated?: number;
|
|
74
|
+
isEnableVoiceCall?: number;
|
|
75
|
+
maxLength?: null;
|
|
76
|
+
modeType?: null;
|
|
77
|
+
openUploadFile?: number;
|
|
78
|
+
productId?: number;
|
|
79
|
+
prologue?: string;
|
|
80
|
+
questionList?: any[]; // 空数组,无具体子结构,使用 any[] 兼容
|
|
81
|
+
showName?: string;
|
|
82
|
+
showNameStatus?: number;
|
|
83
|
+
sourceModelId?: null;
|
|
84
|
+
temperature?: null;
|
|
85
|
+
voiceConfigs?: VoiceConfig[];
|
|
86
|
+
workflowList?: WorkflowItem[];
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface CommonChatProps {
|
|
90
|
+
showInput?: boolean;
|
|
91
|
+
baseUrl?: string;
|
|
92
|
+
token?: string;
|
|
93
|
+
showHeader?: boolean;
|
|
94
|
+
chatInputConfig?: IAIInputProps;
|
|
95
|
+
platform?: 'myun' | 'preview' | 'damai';
|
|
96
|
+
businessType: 'correction' | 'chat';
|
|
97
|
+
bussinessParams?: Record<string, any>;
|
|
98
|
+
defaultMessages?: IChatMessageItem[];
|
|
99
|
+
agentDetail?: AgentConfig;
|
|
100
|
+
agentId?: number,
|
|
101
|
+
showPrologue?: boolean;
|
|
102
|
+
quickQuestionListPosition?: 'top' | 'bottom';
|
|
103
|
+
model?: 'sidebar' | 'fullscreen';
|
|
104
|
+
sidebarConfig?: {
|
|
105
|
+
sidebarTargetElm?: HTMLElement;
|
|
106
|
+
className?: string;
|
|
107
|
+
style?: React.CSSProperties;
|
|
108
|
+
}
|
|
109
|
+
conversationId?: number;
|
|
110
|
+
messageConfig?: MessageConfig;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface MessageConfig {
|
|
114
|
+
onCopyCallback?: () => void;
|
|
115
|
+
onLikeCallback?: () => void;
|
|
116
|
+
onUnLikeCallback?: () => void;
|
|
117
|
+
onDownloadCallback?: () => void;
|
|
118
|
+
enableLike?: boolean;
|
|
119
|
+
enableUnLike?: boolean;
|
|
120
|
+
enableCopy?: boolean;
|
|
121
|
+
enableRegenerate?: boolean;
|
|
122
|
+
enableVoicePlay?: boolean;
|
|
123
|
+
reasoningTitle?: string;
|
|
124
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type FileItem = {
|
|
2
|
+
uid: string;
|
|
3
|
+
name: string;
|
|
4
|
+
size: string;
|
|
5
|
+
status: FileStatus;
|
|
6
|
+
fileUrl?: string;
|
|
7
|
+
fileName?: string; // 后端返回的文件名(可选)
|
|
8
|
+
fileSize?: number; // 后端返回的文件大小(可选)
|
|
9
|
+
fileType?: string; // 后端返回的文件类型(可选)
|
|
10
|
+
fileId?: string; // 后端返回的文件ID(可选)
|
|
11
|
+
fileToken?: string; // 关键!后端返回的文件标识,用于SSE调用
|
|
12
|
+
content?: string; // SSE返回的内容
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface IFileCardProps {
|
|
16
|
+
fileName: string;
|
|
17
|
+
downloadUrl: string;
|
|
18
|
+
size: string;
|
|
19
|
+
fileType: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare module '*.module.scss' {
|
|
2
|
+
const classes: { [key: string]: string };
|
|
3
|
+
export default classes;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module '*.scss' {
|
|
7
|
+
const content: { [key: string]: any };
|
|
8
|
+
export default content;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare module '*.png' {
|
|
12
|
+
const src: string;
|
|
13
|
+
export default src;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare module '*.jpg' {
|
|
17
|
+
const src: string;
|
|
18
|
+
export default src;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare module '*.jpeg' {
|
|
22
|
+
const src: string;
|
|
23
|
+
export default src;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare module '*.svg' {
|
|
27
|
+
const src: string;
|
|
28
|
+
export default src;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare module '*.gif' {
|
|
32
|
+
const src: string;
|
|
33
|
+
export default src;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare module 'crypto-js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AES-ECB 加密(Hex 输出)
|
|
3
|
+
* @param {string} word - 待加密文本
|
|
4
|
+
* @param {string} secretKey - 密钥(默认值)
|
|
5
|
+
* @returns {string} Hex 格式密文(无特殊符号)
|
|
6
|
+
*/
|
|
7
|
+
export declare function aesEncrypt(word: string, secretKey?: string): any;
|
|
8
|
+
/**
|
|
9
|
+
* AES-ECB 加密(Base64 输出)
|
|
10
|
+
* @param {string} word - 待加密文本
|
|
11
|
+
* @param {string} secretKey - 密钥(默认值)
|
|
12
|
+
* @returns {string} Base64 格式密文(无特殊符号)
|
|
13
|
+
*/
|
|
14
|
+
export declare function aesBase64Encrypt(word: string, secretKey?: string): any;
|
|
15
|
+
/**
|
|
16
|
+
* AES-ECB 解密(Hex 输入)
|
|
17
|
+
* @param {string} hexCiphertext - Hex 格式密文
|
|
18
|
+
* @param {string} AES_KEY - 密钥(默认值)
|
|
19
|
+
* @returns {string|number} 解密后的原文(根据需求返回字符串或数字)
|
|
20
|
+
*/
|
|
21
|
+
export declare function aesDecode(hexCiphertext: string, AES_KEY?: string): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import CryptoJS from 'crypto-js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* AES-ECB 加密(Hex 输出)
|
|
5
|
+
* @param {string} word - 待加密文本
|
|
6
|
+
* @param {string} secretKey - 密钥(默认值)
|
|
7
|
+
* @returns {string} Hex 格式密文(无特殊符号)
|
|
8
|
+
*/
|
|
9
|
+
export function aesEncrypt(word) {
|
|
10
|
+
var secretKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'hNfpWalgRLQ7oGmY';
|
|
11
|
+
var key = CryptoJS.enc.Utf8.parse(secretKey);
|
|
12
|
+
var srcs = CryptoJS.enc.Utf8.parse(word);
|
|
13
|
+
var encrypted = CryptoJS.AES.encrypt(srcs, key, {
|
|
14
|
+
mode: CryptoJS.mode.ECB,
|
|
15
|
+
padding: CryptoJS.pad.Pkcs7
|
|
16
|
+
});
|
|
17
|
+
// 直接返回 Hex 格式(无需再次 toString)
|
|
18
|
+
return encrypted.ciphertext.toString(CryptoJS.enc.Hex);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* AES-ECB 加密(Base64 输出)
|
|
23
|
+
* @param {string} word - 待加密文本
|
|
24
|
+
* @param {string} secretKey - 密钥(默认值)
|
|
25
|
+
* @returns {string} Base64 格式密文(无特殊符号)
|
|
26
|
+
*/
|
|
27
|
+
export function aesBase64Encrypt(word) {
|
|
28
|
+
var secretKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'hNfpWalgRLQ7oGmY';
|
|
29
|
+
var key = CryptoJS.enc.Utf8.parse(secretKey);
|
|
30
|
+
var srcs = CryptoJS.enc.Utf8.parse(word);
|
|
31
|
+
var encrypted = CryptoJS.AES.encrypt(srcs, key, {
|
|
32
|
+
mode: CryptoJS.mode.ECB,
|
|
33
|
+
padding: CryptoJS.pad.Pkcs7
|
|
34
|
+
});
|
|
35
|
+
return encrypted.toString();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* AES-ECB 解密(Hex 输入)
|
|
40
|
+
* @param {string} hexCiphertext - Hex 格式密文
|
|
41
|
+
* @param {string} AES_KEY - 密钥(默认值)
|
|
42
|
+
* @returns {string|number} 解密后的原文(根据需求返回字符串或数字)
|
|
43
|
+
*/
|
|
44
|
+
export function aesDecode(hexCiphertext) {
|
|
45
|
+
var AES_KEY = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'hNfpWalgRLQ7oGmY';
|
|
46
|
+
var key = CryptoJS.enc.Utf8.parse(AES_KEY);
|
|
47
|
+
|
|
48
|
+
// 将 Hex 字符串转换为 CryptoJS 的 WordArray
|
|
49
|
+
var ciphertext = CryptoJS.enc.Hex.parse(hexCiphertext);
|
|
50
|
+
var cipherParams = CryptoJS.lib.CipherParams.create({
|
|
51
|
+
ciphertext: ciphertext
|
|
52
|
+
});
|
|
53
|
+
var decrypt = CryptoJS.AES.decrypt(cipherParams, key, {
|
|
54
|
+
mode: CryptoJS.mode.ECB,
|
|
55
|
+
padding: CryptoJS.pad.Pkcs7
|
|
56
|
+
});
|
|
57
|
+
var decryptedStr = CryptoJS.enc.Utf8.stringify(decrypt);
|
|
58
|
+
|
|
59
|
+
// 根据需求返回字符串或数字
|
|
60
|
+
return Number.isNaN(Number(decryptedStr)) ? decryptedStr : Number(decryptedStr);
|
|
61
|
+
}
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
* // 我要生成一个<input-slot placeholder="[模板名称,如PVM模板]" />,用于<input-slot placeholder="[使用场景,如分析增长力]" />。数据如下:
|
|
16
16
|
* // <input-slot placeholder="[直接输入或上传数据进行建模]" />
|
|
17
17
|
*/
|
|
18
|
-
export declare const transformToInputSlots: (templateString: string) => string;
|
|
18
|
+
export declare const transformToInputSlots: (templateString: string, titleSlot: string) => string;
|
|
19
19
|
export declare const debounce: <T extends (...args: any[]) => any>(func: T, wait: number) => (...args: Parameters<T>) => void;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* // 我要生成一个<input-slot placeholder="[模板名称,如PVM模板]" />,用于<input-slot placeholder="[使用场景,如分析增长力]" />。数据如下:
|
|
16
16
|
* // <input-slot placeholder="[直接输入或上传数据进行建模]" />
|
|
17
17
|
*/
|
|
18
|
-
export var transformToInputSlots = function transformToInputSlots(templateString) {
|
|
18
|
+
export var transformToInputSlots = function transformToInputSlots(templateString, titleSlot) {
|
|
19
19
|
// 1. 定义正则表达式
|
|
20
20
|
var placeholderRegex = /\{\{(.*?)\}\}/g;
|
|
21
21
|
// 2. 使用 replace 方法,并传入一个替换函数
|
|
@@ -23,10 +23,11 @@ export var transformToInputSlots = function transformToInputSlots(templateString
|
|
|
23
23
|
var resultString = templateString.replace(placeholderRegex, function (match, capturedContent) {
|
|
24
24
|
// match 参数是完整匹配的子串,例如: "{{模板名称,如PVM模板}}"
|
|
25
25
|
// capturedContent 参数是捕获组(.*?)匹配到的内容,例如: "模板名称,如PVM模板"
|
|
26
|
-
return "<input-slot placeholder=\"[".concat(capturedContent, "]\"></input-slot>");
|
|
26
|
+
return "<input-slot placeholder=\"[".concat(capturedContent, "]\"></input-slot> ");
|
|
27
27
|
});
|
|
28
|
+
var titleSlotTemplate = titleSlot ? "<title-slot>".concat(titleSlot, "</title-slot>") : '';
|
|
28
29
|
// 3. 返回最终结果
|
|
29
|
-
return resultString;
|
|
30
|
+
return titleSlotTemplate + resultString;
|
|
30
31
|
};
|
|
31
32
|
export var debounce = function debounce(func, wait) {
|
|
32
33
|
var timeoutId = null;
|
package/package.json
CHANGED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import GimiChatComponent from "../GimiChatComponent";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
export default function Demo() {
|
|
5
|
-
return /*#__PURE__*/_jsx("div", {
|
|
6
|
-
style: {
|
|
7
|
-
height: '600px'
|
|
8
|
-
},
|
|
9
|
-
children: /*#__PURE__*/_jsx(GimiChatComponent, {
|
|
10
|
-
baseUrl: 't-mgateway.gaodunwangxiao.com',
|
|
11
|
-
businessType: "correction",
|
|
12
|
-
token: 'eyJhZ2VuY3kiOjk1NTU1LCJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJHYW9kdW4iLCJpYXQiOjE3Njg4OTEyMzIsInN1YiI6IjE1Mjg4NzQiLCJpc3MiOiJHYW9kdW4iLCJleHAiOjE3NzE0ODMyMzJ9.6JpEbaJnxMKiER78Ko5irwVpGFfKOP1zxYSUYXPL00Y',
|
|
13
|
-
platform: "myun",
|
|
14
|
-
agentId: 79
|
|
15
|
-
// bussinessParams={
|
|
16
|
-
// {
|
|
17
|
-
// "ANSWER_ID": 19923,
|
|
18
|
-
// "QUESTION_ID": 77595
|
|
19
|
-
// }
|
|
20
|
-
// }
|
|
21
|
-
// agentDetail={{
|
|
22
|
-
// "agentIcon": "https://mstatic.gaodunwangxiao.com/image/2025/09/24/Excel建模-1758706152601.png",
|
|
23
|
-
// "agentId": 65,
|
|
24
|
-
// "agentIntroduce": "帮你智能搭建财务数据表格信息",
|
|
25
|
-
// "agentMode": "workflow",
|
|
26
|
-
// "agentName": "智能Excel建模",
|
|
27
|
-
// "agentState": 1,
|
|
28
|
-
// "agentType": "product",
|
|
29
|
-
// "botId": "BOT1757402118115",
|
|
30
|
-
// "botInstructionId": 0,
|
|
31
|
-
// "characterSetting": null,
|
|
32
|
-
// "conversationType": 2,
|
|
33
|
-
// "customizeInstructContent": null,
|
|
34
|
-
// "defaultPrompt": "我要生成一个{{输入模板名称,如PVM模板}},用于{{输入使用场景,如分析收入增长主要驱动力}}。关键数据:{{输入数据}}",
|
|
35
|
-
// "inputPrompt": "",
|
|
36
|
-
// "isCustomizeInstruct": 0,
|
|
37
|
-
// "isEnableRelated": 1,
|
|
38
|
-
// "isEnableVoiceCall": 0,
|
|
39
|
-
// "maxLength": null,
|
|
40
|
-
// "modeType": null,
|
|
41
|
-
// "openUploadFile": 1,
|
|
42
|
-
// "productId": 36842,
|
|
43
|
-
// "prologue": "帮你智能搭建财务数据表格信息",
|
|
44
|
-
// "questionList": [
|
|
45
|
-
// {
|
|
46
|
-
// "id": 127,
|
|
47
|
-
// "question": "会计是现代社会经济活动开展的重要基础,也是推动国际经贸往来的重要保障"
|
|
48
|
-
// },
|
|
49
|
-
// {
|
|
50
|
-
// "id": 128,
|
|
51
|
-
// "question": "全面预算的执行和监控中可以采用什么方式做好业务支持和预算管控?"
|
|
52
|
-
// }
|
|
53
|
-
// ],
|
|
54
|
-
// "showName": "智能Excel建模",
|
|
55
|
-
// "showNameStatus": 1,
|
|
56
|
-
// "sourceModelId": null,
|
|
57
|
-
// "temperature": null,
|
|
58
|
-
// "voiceConfigs": [
|
|
59
|
-
// {
|
|
60
|
-
// "emotions": [
|
|
61
|
-
// {
|
|
62
|
-
// "name": "悲伤",
|
|
63
|
-
// "param": "sad"
|
|
64
|
-
// },
|
|
65
|
-
// {
|
|
66
|
-
// "name": "恐惧",
|
|
67
|
-
// "param": "fear"
|
|
68
|
-
// },
|
|
69
|
-
// {
|
|
70
|
-
// "name": "厌恶",
|
|
71
|
-
// "param": "hate"
|
|
72
|
-
// },
|
|
73
|
-
// {
|
|
74
|
-
// "name": "中性",
|
|
75
|
-
// "param": "neutral"
|
|
76
|
-
// }
|
|
77
|
-
// ],
|
|
78
|
-
// "gender": "female",
|
|
79
|
-
// "isSupportMix": 0,
|
|
80
|
-
// "languageCode": "zh-CN",
|
|
81
|
-
// "languageId": 1,
|
|
82
|
-
// "languageName": "中文",
|
|
83
|
-
// "scene": "多情感",
|
|
84
|
-
// "toneId": 2,
|
|
85
|
-
// "toneName": "甜心小美(多情感)",
|
|
86
|
-
// "voiceType": "zh_female_tianxinxiaomei_emo_v2_mars_bigtts"
|
|
87
|
-
// }
|
|
88
|
-
// ],
|
|
89
|
-
// "workflowList": [
|
|
90
|
-
// {
|
|
91
|
-
// "botFlowId": "MC-2CDBD8AB38B6410A8C14EE503C9ADBCE",
|
|
92
|
-
// "workflowId": 315,
|
|
93
|
-
// "workflowName": "excel生成926(第3版)"
|
|
94
|
-
// }
|
|
95
|
-
// ]
|
|
96
|
-
// }}
|
|
97
|
-
,
|
|
98
|
-
showPrologue: true,
|
|
99
|
-
model: 'fullscreen',
|
|
100
|
-
conversationId: 8394,
|
|
101
|
-
chatInputConfig: {
|
|
102
|
-
enableFileUpload: true,
|
|
103
|
-
enableVoiceChat: true,
|
|
104
|
-
enableVoiceRecord: true
|
|
105
|
-
},
|
|
106
|
-
messageConfig: {
|
|
107
|
-
enableRegenerate: true
|
|
108
|
-
}
|
|
109
|
-
})
|
|
110
|
-
});
|
|
111
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import WorkFlowContent from "./index";
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
var Demo = function Demo() {
|
|
5
|
-
return /*#__PURE__*/_jsx(WorkFlowContent, {
|
|
6
|
-
chatItem: {
|
|
7
|
-
mcp: '这是一条工作流内容',
|
|
8
|
-
status: 'executeWorkflowByDescription'
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
export default Demo;
|