@ibiz-template-plugin/ai-chat 0.0.85 → 0.0.87

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.
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @description 深度研究步骤项
3
+ * @author tony001
4
+ * @date 2026-06-10 10:06:20
5
+ * @export
6
+ * @interface IDeepResearchStepItem
7
+ */
8
+ export interface IDeepResearchStepItem {
9
+ /**
10
+ * 名称(简写)
11
+ */
12
+ abbr_name: string;
13
+ /**
14
+ * 名称
15
+ */
16
+ name: string;
17
+ /**
18
+ * 状态,初始化 | 处理中 | 完成
19
+ */
20
+ status: 'init' | 'processing' | 'complete';
21
+ /**
22
+ * 思考内容,需动态链接[(xxxxxxx)]资源
23
+ *
24
+ * 格式如:通过研究,我已掌握2023-2026年新能源汽车市场关键数据,包括渗透率突破30%、41.83%、47.9%-53%及70%的关键节点。需进一步确认2025年渗透率数据差异及获取2026年上半年最新数据,以完善从增量到存量的市场转变分析。
25
+ * [(deep_research_source_1)]
26
+ * 经调研发现2026年5月新能源车零售渗透率已达62.9%,批发达61.1%,创历史新高。市场已进入存量竞争阶段,2025年突破50%是关键转折点。值得注意的是插混/增程在2024年增速反超纯电,但2026年纯电占比又回升。下步将分析技术路线分化趋势和出口支撑作用。
27
+ *
28
+ */
29
+ think_content: string;
30
+ }
31
+ /**
32
+ * @description 深度研究步骤
33
+ * @author tony001
34
+ * @date 2026-06-10 11:06:30
35
+ * @export
36
+ * @interface IDeepResearchStep
37
+ */
38
+ export interface IDeepResearchStep {
39
+ /**
40
+ * 显示文本
41
+ */
42
+ display_text: string;
43
+ /**
44
+ * 文档数量
45
+ */
46
+ doc_count: number;
47
+ /**
48
+ * 状态,初始化 | 处理中 | 完成
49
+ */
50
+ status: 'init' | 'processing' | 'complete';
51
+ /**
52
+ * 步骤项集合
53
+ */
54
+ step: IDeepResearchStepItem[];
55
+ }
@@ -0,0 +1,5 @@
1
+ export type { IDeepResearchStepItem, IDeepResearchStep, } from './i-deep-research-step';
2
+ export type { IDeepResearchResource } from './i-deep-research-resource';
3
+ export type { IDeepResearchResourceWebItem, IDeepResearchResourceWeb, } from './i-deep-research-source-web';
4
+ export type { IDeepResearchReport } from './i-deep-research-report';
5
+ export type { IDeepResearchItem } from './i-deep-research-item';
@@ -170,4 +170,12 @@ export interface IChatMessage {
170
170
  * @memberof IChatMessage
171
171
  */
172
172
  errorText?: string;
173
+ /**
174
+ * @description 元数据
175
+ * @type {{ agentid: string }}
176
+ * @memberof IChatMessage
177
+ */
178
+ metadata?: {
179
+ agentid: string;
180
+ };
173
181
  }
@@ -340,7 +340,7 @@ export interface IChatOptions extends IChat {
340
340
  *
341
341
  * @returns
342
342
  */
343
- fetchKnowledgeBaseList?: () => Promise<IKnowledgeBase[]>;
343
+ fetchKnowledgeBaseList?: (query?: string) => Promise<IKnowledgeBase[]>;
344
344
  /**
345
345
  * 文件上传配置
346
346
  *
@@ -65,4 +65,8 @@ export interface IRemoteMessage {
65
65
  * 消息状态, 待处理 | 已处理 | 失败 | 用户取消
66
66
  */
67
67
  status: 'pending' | 'sent' | 'failed' | 'canceled';
68
+ /**
69
+ * 消息元数据
70
+ */
71
+ metadata: string | undefined;
68
72
  }
@@ -21,3 +21,4 @@ export type { IConfirmUtil, IConfirmParams, INotificationUtil, INotificationPara
21
21
  export type { IChatMessageUsage } from './i-chat-message-usage/i-chat-message-usage';
22
22
  export type { IChatController } from './i-chat-controller/i-chat-controller';
23
23
  export type { IAIQuesitionItem, IAIQuesition, IAIQuesitionAnswer, } from './i-ai-quesition/i-ai-quesition';
24
+ export * from './deep-research';
@@ -113,4 +113,14 @@ export declare const EN: {
113
113
  toolCallCount: string;
114
114
  notCounted: string;
115
115
  notCalled: string;
116
+ noResearchContent: string;
117
+ light: string;
118
+ dark: string;
119
+ generateVisualReport: string;
120
+ sourceMaterial: string;
121
+ searchKeyword: string;
122
+ deepResearch: string;
123
+ textReport: string;
124
+ deepResearchReport: string;
125
+ noTextReportContent: string;
116
126
  };
@@ -113,4 +113,14 @@ export declare const ZH_CN: {
113
113
  toolCallCount: string;
114
114
  notCounted: string;
115
115
  notCalled: string;
116
+ noResearchContent: string;
117
+ light: string;
118
+ dark: string;
119
+ generateVisualReport: string;
120
+ sourceMaterial: string;
121
+ searchKeyword: string;
122
+ deepResearch: string;
123
+ textReport: string;
124
+ deepResearchReport: string;
125
+ noTextReportContent: string;
116
126
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template-plugin/ai-chat",
3
- "version": "0.0.85",
3
+ "version": "0.0.87",
4
4
  "description": "iBiz AI交互框插件",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",