@ibiz-template-plugin/ai-chat 0.0.8 → 0.0.9

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.
Files changed (61) hide show
  1. package/dist/index.es.js +1122 -947
  2. package/dist/index.legacy.js +1 -1
  3. package/dist/polyfills.legacy.js +1 -1
  4. package/dist/style.css +1 -1
  5. package/package.json +1 -1
  6. package/dist/types/app.d.ts +0 -1
  7. package/dist/types/components/chat-container/chat-container.d.ts +0 -185
  8. package/dist/types/components/chat-input/chat-input.d.ts +0 -12
  9. package/dist/types/components/chat-message-item/chat-message-item.d.ts +0 -30
  10. package/dist/types/components/chat-message-item/error-message/error-message.d.ts +0 -30
  11. package/dist/types/components/chat-message-item/markdown-message/markdown-message.d.ts +0 -30
  12. package/dist/types/components/chat-message-item/unknown-message/unknown-message.d.ts +0 -13
  13. package/dist/types/components/chat-message-item/user-message/user-message.d.ts +0 -23
  14. package/dist/types/components/chat-messages/chat-messages.d.ts +0 -20
  15. package/dist/types/components/chat-toolbar/chat-toolbar.d.ts +0 -41
  16. package/dist/types/components/chat-topic-item/chat-topic-item.d.ts +0 -9
  17. package/dist/types/components/chat-topics/chat-topics.d.ts +0 -12
  18. package/dist/types/components/index.d.ts +0 -1
  19. package/dist/types/components/popup/popup.d.ts +0 -15
  20. package/dist/types/constants/index.d.ts +0 -22
  21. package/dist/types/controller/ai-chat/ai-chat.controller.d.ts +0 -147
  22. package/dist/types/controller/ai-topic/ai-topic.controller.d.ts +0 -96
  23. package/dist/types/controller/chat/chat.controller.d.ts +0 -122
  24. package/dist/types/controller/index.d.ts +0 -3
  25. package/dist/types/entity/chart-topic/chart-topic.d.ts +0 -20
  26. package/dist/types/entity/chat-message/chat-message.d.ts +0 -28
  27. package/dist/types/entity/index.d.ts +0 -2
  28. package/dist/types/global.d.ts +0 -2
  29. package/dist/types/icons/ai-svg.d.ts +0 -1
  30. package/dist/types/icons/audio-svg.d.ts +0 -1
  31. package/dist/types/icons/close-full-screen-svg.d.ts +0 -1
  32. package/dist/types/icons/close-svg.d.ts +0 -1
  33. package/dist/types/icons/copy-svg.d.ts +0 -1
  34. package/dist/types/icons/delete-svg.d.ts +0 -1
  35. package/dist/types/icons/fill-svg.d.ts +0 -1
  36. package/dist/types/icons/full-screen-svg.d.ts +0 -1
  37. package/dist/types/icons/index.d.ts +0 -16
  38. package/dist/types/icons/link-svg.d.ts +0 -3
  39. package/dist/types/icons/minimize-svg.d.ts +0 -1
  40. package/dist/types/icons/more-svg.d.ts +0 -4
  41. package/dist/types/icons/new-dialogue.d.ts +0 -1
  42. package/dist/types/icons/recording-svg.d.ts +0 -1
  43. package/dist/types/icons/refresh-svg.d.ts +0 -1
  44. package/dist/types/icons/remove-svg.d.ts +0 -1
  45. package/dist/types/icons/send-svg.d.ts +0 -1
  46. package/dist/types/index.d.ts +0 -3
  47. package/dist/types/interface/i-chat-container/i-chat-container.d.ts +0 -58
  48. package/dist/types/interface/i-chat-message/i-chat-message.d.ts +0 -83
  49. package/dist/types/interface/i-chat-options/i-chat-options.d.ts +0 -139
  50. package/dist/types/interface/i-chat-toolbar-item/i-chat-toolbar-item.d.ts +0 -53
  51. package/dist/types/interface/i-config-service/i-config-service.d.ts +0 -27
  52. package/dist/types/interface/i-container-options/i-container-options.d.ts +0 -45
  53. package/dist/types/interface/i-message-item-provider/i-message-item-provider.d.ts +0 -18
  54. package/dist/types/interface/i-portal-async-action/i-portal-async-action.d.ts +0 -90
  55. package/dist/types/interface/i-topic-options/i-topic-options.d.ts +0 -102
  56. package/dist/types/interface/index.d.ts +0 -7
  57. package/dist/types/main.d.ts +0 -1
  58. package/dist/types/utils/index.d.ts +0 -4
  59. package/dist/types/utils/plugin-static-resource/plugin-static-resource.d.ts +0 -63
  60. package/dist/types/utils/util/indexdb-util.d.ts +0 -91
  61. package/dist/types/utils/util/util.d.ts +0 -29
@@ -1,122 +0,0 @@
1
- import { IContainerOptions } from '../../interface';
2
- import { AiTopicController } from '../ai-topic/ai-topic.controller';
3
- import { AiChatController } from '../ai-chat/ai-chat.controller';
4
- import { ChatTopic } from '../../entity';
5
- /**
6
- * 聊天器控制器
7
- *
8
- * @author chitanda
9
- * @date 2023-10-13 17:10:47
10
- * @export
11
- * @class ChatController
12
- */
13
- export declare class ChatController {
14
- /**
15
- * 聊天框容器
16
- *
17
- * @author chitanda
18
- * @date 2023-10-13 17:10:03
19
- * @protected
20
- * @type {HTMLDivElement}
21
- */
22
- protected container?: HTMLDivElement;
23
- /**
24
- * 默认模式(聊天框)和话题模式(支持多话题切换),聊天框为默认模式
25
- *
26
- * @author tony001
27
- * @date 2025-02-20 16:02:50
28
- * @protected
29
- * @type {('DEFAULT' | 'TOPIC')}
30
- */
31
- protected mode: 'DEFAULT' | 'TOPIC';
32
- /**
33
- * 是否挂载ai话题
34
- *
35
- * @author tony001
36
- * @date 2025-02-23 16:02:54
37
- * @protected
38
- * @type {boolean}
39
- */
40
- protected isMountedAiTopic: boolean;
41
- /**
42
- * 容器配置备份
43
- *
44
- * @author tony001
45
- * @date 2025-02-24 11:02:49
46
- * @protected
47
- * @type {(IContainerOptions | undefined)}
48
- */
49
- protected backupChatOptions: IContainerOptions | undefined;
50
- /**
51
- * 话题控制器
52
- *
53
- * @author tony001
54
- * @date 2025-02-23 16:02:56
55
- * @public
56
- * @type {AiTopicController}
57
- */
58
- aiTopic: AiTopicController;
59
- /**
60
- * 聊天控制器
61
- *
62
- * @author tony001
63
- * @date 2025-02-23 16:02:09
64
- * @public
65
- * @type {(AiChatController | undefined)}
66
- */
67
- aiChat: AiChatController | undefined;
68
- /**
69
- * Creates an instance of ChatController.
70
- * @author tony001
71
- * @date 2025-02-24 11:02:20
72
- */
73
- constructor();
74
- /**
75
- * 初始化IndexDB
76
- *
77
- * @author tony001
78
- * @date 2025-02-24 18:02:50
79
- * @return {*} {Promise<void>}
80
- */
81
- initIndexDB(): Promise<void>;
82
- /**
83
- * 创建聊天窗口(会同时显示出来)
84
- *
85
- * @author tony001
86
- * @date 2025-02-24 12:02:58
87
- * @param {IContainerOptions} opts
88
- * @return {*} {Promise<AiChatController>}
89
- */
90
- create(opts: IContainerOptions): Promise<AiChatController>;
91
- /**
92
- * 切换聊天控制器
93
- *
94
- * @author tony001
95
- * @date 2025-02-24 11:02:24
96
- * @param {ChatTopic} topic
97
- */
98
- switchAiChatController(topic: ChatTopic): void;
99
- /**
100
- * 隐藏聊天窗口(必须先创建)
101
- *
102
- * @author chitanda
103
- * @date 2023-10-13 17:10:55
104
- */
105
- hidden(): void;
106
- /**
107
- * 显示聊天窗窗口(必须先创建)
108
- *
109
- * @author chitanda
110
- * @date 2023-10-13 17:10:29
111
- */
112
- show(): void;
113
- /**
114
- * 关闭聊天窗口
115
- *
116
- * @author chitanda
117
- * @date 2023-10-13 17:10:10
118
- */
119
- close(): void;
120
- }
121
- declare const chat: ChatController;
122
- export { chat };
@@ -1,3 +0,0 @@
1
- export { AiChatController } from './ai-chat/ai-chat.controller';
2
- export { AiTopicController } from './ai-topic/ai-topic.controller';
3
- export { ChatController, chat } from './chat/chat.controller';
@@ -1,20 +0,0 @@
1
- import { ITopic } from '../../interface';
2
- /**
3
- * 话题实体
4
- *
5
- * @author tony001
6
- * @date 2025-02-20 16:02:29
7
- * @export
8
- * @class ChatTopic
9
- * @implements {ITopic}
10
- */
11
- export declare class ChatTopic implements ITopic {
12
- data: ITopic;
13
- get appid(): ITopic['appid'];
14
- get id(): ITopic['id'];
15
- get type(): ITopic['type'];
16
- get caption(): ITopic['caption'];
17
- get url(): ITopic['url'];
18
- get aiChat(): ITopic['aiChat'];
19
- constructor(data: ITopic);
20
- }
@@ -1,28 +0,0 @@
1
- import { IChatMessage } from '../../interface';
2
- /**
3
- * 消息实体
4
- *
5
- * @author chitanda
6
- * @date 2023-10-09 16:10:45
7
- * @export
8
- * @class ChatMessage
9
- * @implements {IMessage}
10
- */
11
- export declare class ChatMessage implements IChatMessage {
12
- protected msg: IChatMessage;
13
- get messageid(): IChatMessage['messageid'];
14
- get state(): IChatMessage['state'];
15
- get role(): IChatMessage['role'];
16
- get type(): IChatMessage['type'];
17
- get content(): IChatMessage['content'];
18
- get _origin(): IChatMessage;
19
- constructor(msg: IChatMessage);
20
- /**
21
- * 更新消息
22
- *
23
- * @author chitanda
24
- * @date 2023-10-10 17:10:07
25
- * @param {IChatMessage} msg
26
- */
27
- update(msg: IChatMessage): void;
28
- }
@@ -1,2 +0,0 @@
1
- export { ChatMessage } from './chat-message/chat-message';
2
- export { ChatTopic } from './chart-topic/chart-topic';
@@ -1,2 +0,0 @@
1
- import { PluginStaticResource } from './utils';
2
- export declare const resource: PluginStaticResource;
@@ -1 +0,0 @@
1
- export declare const AISvg: () => import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const AudioSvg: () => import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const CloseFullScreenSvg: () => import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const CloseSvg: () => import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const CopySvg: () => import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const DeleteSvg: () => import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const FillSvg: () => import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const FullScreenSvg: () => import("preact").JSX.Element;
@@ -1,16 +0,0 @@
1
- export { CloseSvg } from './close-svg';
2
- export { FillSvg } from './fill-svg';
3
- export { SendSvg } from './send-svg';
4
- export { DeleteSvg } from './delete-svg';
5
- export { RefreshSvg } from './refresh-svg';
6
- export { CopySvg } from './copy-svg';
7
- export { FullScreenSvg } from './full-screen-svg';
8
- export { CloseFullScreenSvg } from './close-full-screen-svg';
9
- export { MinimizeSvg } from './minimize-svg';
10
- export { AISvg } from './ai-svg';
11
- export { NewDialogue } from './new-dialogue';
12
- export { AudioSvg } from './audio-svg';
13
- export { RecordingSvg } from './recording-svg';
14
- export { MoreSvg } from './more-svg';
15
- export { LinkSvg } from './link-svg';
16
- export { RemoveSvg } from './remove-svg';
@@ -1,3 +0,0 @@
1
- export declare const LinkSvg: (props: {
2
- className?: string;
3
- }) => import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const MinimizeSvg: () => import("preact").JSX.Element;
@@ -1,4 +0,0 @@
1
- export declare const MoreSvg: (props: {
2
- className?: string | undefined;
3
- onClick?: ((event: MouseEvent) => void) | undefined;
4
- }) => import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const NewDialogue: () => import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const RecordingSvg: () => import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const RefreshSvg: () => import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const RemoveSvg: () => import("preact").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const SendSvg: () => import("preact").JSX.Element;
@@ -1,3 +0,0 @@
1
- export { ChatContainer } from './components';
2
- export { chat } from './controller';
3
- export type { IChatToolbarItem } from './interface';
@@ -1,58 +0,0 @@
1
- /**
2
- * 聊天窗口呈现配置
3
- *
4
- * @author chitanda
5
- * @date 2023-10-15 19:10:04
6
- * @export
7
- * @interface IChatContainerOptions
8
- */
9
- export interface IChatContainerOptions {
10
- /**
11
- * 窗口 x 坐标
12
- *
13
- * @author chitanda
14
- * @date 2023-10-13 14:10:42
15
- * @type {number}
16
- */
17
- x?: number;
18
- /**
19
- * 窗口 y 坐标
20
- *
21
- * @author chitanda
22
- * @date 2023-10-13 14:10:52
23
- * @type {number}
24
- */
25
- y?: number;
26
- /**
27
- * 窗口宽度
28
- *
29
- * @author chitanda
30
- * @date 2023-10-13 14:10:56
31
- * @type {number}
32
- */
33
- width?: number;
34
- /**
35
- * 窗口高度
36
- *
37
- * @author chitanda
38
- * @date 2023-10-13 14:10:02
39
- * @type {number}
40
- */
41
- height?: number;
42
- /**
43
- * 窗口最小宽度
44
- *
45
- * @author chitanda
46
- * @date 2023-10-13 14:10:11
47
- * @type {number}
48
- */
49
- minWidth?: number;
50
- /**
51
- * 窗口最小高度
52
- *
53
- * @author chitanda
54
- * @date 2023-10-13 14:10:15
55
- * @type {number}
56
- */
57
- minHeight?: number;
58
- }
@@ -1,83 +0,0 @@
1
- import { IPortalAsyncAction } from '../i-portal-async-action/i-portal-async-action';
2
- /**
3
- * AI聊天消息
4
- *
5
- * @author chitanda
6
- * @date 2023-10-10 16:10:29
7
- * @export
8
- * @interface IChatMessage
9
- */
10
- export interface IChatMessage {
11
- /**
12
- * 消息标识
13
- *
14
- * @author chitanda
15
- * @date 2023-09-05 15:09:43
16
- * @type {string}
17
- */
18
- messageid: string;
19
- /**
20
- * 消息名称
21
- *
22
- * @author chitanda
23
- * @date 2023-09-05 15:09:49
24
- * @type {string}
25
- */
26
- messagename?: string;
27
- /**
28
- * 作业状态
29
- *
30
- * @author chitanda
31
- * @date 2023-10-10 15:10:59
32
- * @type {(10 | 20 | 30 | 40)} 未开始 | 执行中 | 已执行 | 执行失败
33
- */
34
- state: 10 | 20 | 30 | 40;
35
- /**
36
- * 消息类型
37
- *
38
- * @author chitanda
39
- * @date 2023-10-10 16:10:21
40
- * @type {string}
41
- */
42
- type: string | 'DEFAULT' | 'ERROR';
43
- /**
44
- * 消息子类型
45
- *
46
- * @author chitanda
47
- * @date 2023-10-10 16:10:00
48
- * @type {string}
49
- */
50
- subtype?: string;
51
- /**
52
- * 消息角色
53
- *
54
- * @author chitanda
55
- * @date 2023-10-10 16:10:32
56
- * @type {('ASSISTANT' | 'USER' | 'SYSTEM')} 助手 | 用户 | 系统
57
- */
58
- role: 'ASSISTANT' | 'USER' | 'SYSTEM';
59
- /**
60
- * 内容摘要
61
- *
62
- * @author chitanda
63
- * @date 2023-09-05 15:09:23
64
- * @type {string}
65
- */
66
- content: string;
67
- /**
68
- * 消息数据
69
- *
70
- * @author chitanda
71
- * @date 2023-09-05 15:09:55
72
- * @type {(IPortalAsyncAction | unknown)}
73
- */
74
- data?: IPortalAsyncAction | unknown;
75
- /**
76
- * 消息路径
77
- *
78
- * @author chitanda
79
- * @date 2023-09-05 15:09:25
80
- * @type {string}
81
- */
82
- url?: string;
83
- }
@@ -1,139 +0,0 @@
1
- import { IChatMessage } from '../i-chat-message/i-chat-message';
2
- import { IChatToolbarItem } from '../i-chat-toolbar-item/i-chat-toolbar-item';
3
- /**
4
- * 聊天数据
5
- *
6
- * @author tony001
7
- * @date 2025-02-24 11:02:52
8
- * @export
9
- * @interface IChat
10
- */
11
- export interface IChat {
12
- /**
13
- * 聊天窗口标题
14
- *
15
- * @type {string}
16
- * @memberof IChatOptions
17
- */
18
- caption?: string;
19
- /**
20
- * 上下文
21
- *
22
- * @author tony001
23
- * @date 2025-02-23 17:02:33
24
- * @type {object}
25
- */
26
- context: object;
27
- /**
28
- * 视图参数
29
- *
30
- * @author tony001
31
- * @date 2025-02-23 17:02:48
32
- * @type {object}
33
- */
34
- params: object;
35
- /**
36
- * 实体标识
37
- *
38
- * @author tony001
39
- * @date 2025-02-24 14:02:40
40
- * @type {string}
41
- */
42
- appDataEntityId: string;
43
- /**
44
- * 内容工具项
45
- *
46
- * @type {IChatToolbarItem[]}
47
- * @memberof IChatOptions
48
- */
49
- contentToolbarItems?: IChatToolbarItem[];
50
- /**
51
- * 底部工具项
52
- *
53
- * @type {IChatToolbarItem[]}
54
- * @memberof IChatOptions
55
- */
56
- footerToolbarItems?: IChatToolbarItem[];
57
- }
58
- /**
59
- * 聊天区配置参数
60
- *
61
- * @author chitanda
62
- * @date 2023-10-13 17:10:57
63
- * @export
64
- * @interface IChatOptions
65
- */
66
- export interface IChatOptions extends IChat {
67
- /**
68
- * 模式,细分为默认模式(聊天框)和话题模式(支持多话题切换),聊天框为默认模式
69
- *
70
- * @author tony001
71
- * @date 2025-02-20 14:02:36
72
- * @type {('DEFAULT' | 'TOPIC')}
73
- */
74
- mode?: 'DEFAULT' | 'TOPIC';
75
- /**
76
- * 话题标识
77
- *
78
- * @author tony001
79
- * @date 2025-02-24 18:02:26
80
- * @type {string}
81
- */
82
- topicId?: string;
83
- /**
84
- * 聊天窗触发提问回调
85
- *
86
- * @author tony001
87
- * @date 2025-02-24 14:02:51
88
- * @param {object} context
89
- * @param {object} params
90
- * @param {object} otherParams
91
- * @param {IChatMessage[]} question 提问历史内容(包含当前提问)
92
- * @return {*} {Promise<boolean>} 等待回答,用于显示 loading 并获取最终成功与否
93
- */
94
- question(context: object, params: object, otherParams: object, question: IChatMessage[]): Promise<boolean>;
95
- /**
96
- * 聊天窗历史记录获取
97
- *
98
- * @author tony001
99
- * @date 2025-02-24 13:02:56
100
- * @return {*} {Promise<boolean>}
101
- */
102
- history(context: object, params: object, otherParams: object): Promise<boolean>;
103
- /**
104
- * 窗口关闭
105
- *
106
- * @param {object} context
107
- * @param {object} params
108
- * @memberof IChatOptions
109
- */
110
- closed?(context: object, params: object): void;
111
- /**
112
- * 聊天窗任意位置点击操作
113
- *
114
- * @author chitanda
115
- * @date 2023-10-13 18:10:56
116
- * @param {string} action 操作的行为标识 backfill:回填 question:提问 deletemsg:删除消息 refreshmsg:刷新消息
117
- * @param {T} [params] 传递的参数
118
- * @return {*} {Promise<boolean>} 等待操作,用于显示 loading 并获取最终成功与否
119
- */
120
- action?<T = unknown>(action: 'backfill' | 'question' | 'deletemsg' | 'refreshmsg' | 'copymsg', params?: T): Promise<boolean>;
121
- /**
122
- * 全屏操作
123
- *
124
- * @param {boolean} target
125
- * @param {object} context
126
- * @param {object} params
127
- * @memberof IChatOptions
128
- */
129
- fullscreen?(target: boolean, context: object, params: object): void;
130
- /**
131
- * 最小化操作
132
- *
133
- * @param {boolean} target
134
- * @param {object} context
135
- * @param {object} params
136
- * @memberof IChatOptions
137
- */
138
- minimize?(target: boolean, context: object, params: object): void;
139
- }
@@ -1,53 +0,0 @@
1
- import { VNode } from 'preact';
2
- /**
3
- * 聊天自定义工具栏项接口
4
- *
5
- * @export
6
- * @interface IChatToolbarItem
7
- */
8
- export interface IChatToolbarItem {
9
- /**
10
- * 标题
11
- *
12
- * @memberof IChatToolbarItem
13
- */
14
- label?: string | VNode | ((h: Function) => VNode);
15
- /**
16
- * 提示信息
17
- *
18
- * @type {string}
19
- * @memberof IChatToolbarItem
20
- */
21
- title?: string;
22
- /**
23
- * 图标
24
- *
25
- * @memberof IChatToolbarItem
26
- */
27
- icon?: string | VNode | ((h: Function) => VNode);
28
- /**
29
- * 是否禁用
30
- *
31
- * @memberof IChatToolbarItem
32
- */
33
- disabled?: boolean | ((data: object) => boolean);
34
- /**
35
- * 是否隐藏
36
- *
37
- * @memberof IChatToolbarItem
38
- */
39
- hidden?: boolean | ((data: object) => boolean);
40
- /**
41
- * 自定义类名
42
- *
43
- * @type {string}
44
- * @memberof IChatToolbarItem
45
- */
46
- customClass?: string;
47
- /**
48
- * 行为项点击
49
- *
50
- * @memberof IChatToolbarItem
51
- */
52
- onClick?: (e: MouseEvent, context: object, params: object, data?: object) => void;
53
- }
@@ -1,27 +0,0 @@
1
- export interface IConfigService {
2
- /**
3
- * 保存配置
4
- *
5
- * @author tony001
6
- * @date 2025-02-23 16:02:33
7
- * @param {object} data
8
- * @return {*} {Promise<boolean>}
9
- */
10
- save(data: object): Promise<boolean>;
11
- /**
12
- * 重置配置
13
- *
14
- * @author tony001
15
- * @date 2025-02-23 16:02:48
16
- * @return {*} {Promise<boolean>}
17
- */
18
- reset(): Promise<boolean>;
19
- /**
20
- * 加载配置
21
- *
22
- * @author tony001
23
- * @date 2025-02-23 16:02:57
24
- * @return {*} {Promise<object>}
25
- */
26
- load(): Promise<object>;
27
- }
@@ -1,45 +0,0 @@
1
- import { IChatContainerOptions } from '../i-chat-container/i-chat-container';
2
- import { IChatOptions } from '../i-chat-options/i-chat-options';
3
- import { ITopicOptions } from '../i-topic-options/i-topic-options';
4
- /**
5
- * ai容器配置参数
6
- *
7
- * @author tony001
8
- * @date 2025-02-24 11:02:46
9
- * @export
10
- * @interface IContainerOptions
11
- */
12
- export interface IContainerOptions {
13
- /**
14
- * 模式,细分为默认模式(聊天框)和话题模式(支持多话题切换),聊天框为默认模式
15
- *
16
- * @author tony001
17
- * @date 2025-02-20 14:02:36
18
- * @type {('DEFAULT' | 'TOPIC')}
19
- */
20
- mode?: 'DEFAULT' | 'TOPIC';
21
- /**
22
- * 话题参数(话题模式必填)
23
- *
24
- * @author tony001
25
- * @date 2025-02-20 15:02:02
26
- * @type {ITopicOptions}
27
- */
28
- topicOptions?: ITopicOptions;
29
- /**
30
- * 聊天窗口配置参数
31
- *
32
- * @author tony001
33
- * @date 2025-02-24 11:02:53
34
- * @type {IChatOptions}
35
- */
36
- chatOptions: IChatOptions;
37
- /**
38
- * ai容器呈现
39
- *
40
- * @author chitanda
41
- * @date 2023-10-15 19:10:44
42
- * @type {IChatContainerOptions}
43
- */
44
- containerOptions?: IChatContainerOptions;
45
- }