@hddjs/hdd-cloud-types 1.0.12 → 1.0.14-SNAPSHOT.1

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.
@@ -1,4 +1,4 @@
1
- export * from './common';
1
+ export * from './common/index.d.ts';
2
2
  export interface HddCloud {}
3
3
  /**
4
4
  * 符合openai格式的大模型调用入参
@@ -3,4 +3,5 @@
3
3
  */
4
4
  export interface IConfigInfo {
5
5
  tokenInfo?: string;
6
+ appKey?: string;
6
7
  }
@@ -26,6 +26,22 @@ export interface IGetRecommendSchool {
26
26
  * 省份名称
27
27
  */
28
28
  schoolProvince?: string;
29
+ /**
30
+ * 区
31
+ */
32
+ townName?: string;
33
+ /**
34
+ * 属性
35
+ */
36
+ attrList?: string[];
37
+ /**
38
+ * 标签
39
+ */
40
+ labelList?: string[];
41
+ /**
42
+ * icon的url
43
+ */
44
+ iconUrl?: string;
29
45
  /**
30
46
  * 组别id
31
47
  */
@@ -20,6 +20,10 @@ export interface IInquiryBasicInfo {
20
20
  * 省份
21
21
  */
22
22
  province?: string;
23
+ /**
24
+ * 昵称
25
+ */
26
+ nickname?: string | null;
23
27
  /**
24
28
  * 年份
25
29
  */
@@ -134,3 +134,18 @@ export interface IGaokaoFutureDevelopmentReport {
134
134
  */
135
135
  careerDevelopmentAdvice?: string;
136
136
  }
137
+
138
+ /**
139
+ * 高考志愿填报:分数定位分析报告
140
+ * @interface IGaokaoScorePositionReport
141
+ */
142
+ export interface IGaokaoScorePositionReport {
143
+ /**
144
+ * 标题信息
145
+ */
146
+ title?: string;
147
+ /**
148
+ * 描述
149
+ */
150
+ desc?: string;
151
+ }
@@ -1,3 +1,10 @@
1
+ import {
2
+ type IGaokaoFutureDevelopmentReport,
3
+ type IGaokaoScorePositionReport,
4
+ type IGaokaoVolunteerRecommendationReport
5
+ } from './IReportData';
6
+ import { type SubReportTypeEnum } from './SubReportTypeEnum';
7
+
1
8
  /**
2
9
  * 报告信息
3
10
  */
@@ -9,7 +16,7 @@ export interface IReportInfo {
9
16
  /**
10
17
  * 报告类型
11
18
  */
12
- reportType?: string;
19
+ reportType?: SubReportTypeEnum;
13
20
  /**
14
21
  * 状态 0:创建中,1:已创建
15
22
  */
@@ -17,5 +24,10 @@ export interface IReportInfo {
17
24
  /**
18
25
  * 报告信息
19
26
  */
20
- reportInfo?: string;
27
+ reportInfo?:
28
+ | IGaokaoVolunteerRecommendationReport
29
+ | IGaokaoInterestReport
30
+ | IGaokaoMajorMatchingReport
31
+ | IGaokaoFutureDevelopmentReport
32
+ | IGaokaoScorePositionReport;
21
33
  }
@@ -11,7 +11,7 @@ export interface IReportResult {
11
11
  * generating: 都未完成
12
12
  * generated: 全部完成
13
13
  */
14
- code?: string;
14
+ code?: 'part' | 'generating' | 'generated';
15
15
  /**
16
16
  *报告信息
17
17
  */
@@ -25,7 +25,7 @@ export interface ISessionContent {
25
25
  */
26
26
  role?: SessionRoleEnum;
27
27
  /**
28
- * 备注
28
+ * 格式化信息
29
29
  */
30
30
  formatInfo?: string;
31
31
  }
@@ -1,3 +1,21 @@
1
+ /**
2
+ * 工具消息类型
3
+ */
4
+ export const enum IToolTypeEnum {
5
+ /**
6
+ * 文本消息
7
+ */
8
+ TextMessage = 'textMessage',
9
+ /**
10
+ * 可视化图表消息
11
+ */
12
+ VisualChart = 'visualChart',
13
+ /**
14
+ * 行为动作消息 如结束对话、展示按钮等行为
15
+ */
16
+ BehaviorAction = 'behaviorAction'
17
+ }
18
+
1
19
  /**
2
20
  * sse流式返回片段
3
21
  */
@@ -25,57 +43,7 @@ export interface ISseData {
25
43
  /**
26
44
  * 需要收集非结构化信息
27
45
  */
28
- needCollectstructuredInfo?: {
29
- /**
30
- * 表单类型
31
- */
32
- type?: string;
33
- /**
34
- * 对用户的语言提示
35
- */
36
- voiceTip?: string;
37
- /**
38
- * 表单标题
39
- */
40
- title?: string;
41
- /**
42
- * 表单描述
43
- */
44
- description?: string;
45
- /**
46
- * 等效的AI内容(当不使用结构化展示时候可以使用等效的AI内容展示给用户 或 用于上下文)
47
- */
48
- equalAiContent: string;
49
- /**
50
- * 需要收集的字段列表
51
- */
52
- fields: {
53
- /**
54
- * 字段名称
55
- */
56
- name?: string;
57
- /**
58
- * 字段标签
59
- */
60
- label?: string;
61
- /**
62
- * 字段描述
63
- */
64
- description?: string;
65
- /**
66
- * 是否必填
67
- */
68
- required?: boolean;
69
- /**
70
- * 选项
71
- */
72
- options?: string[];
73
- /**
74
- * 占位符
75
- */
76
- placeholder?: string;
77
- }[];
78
- };
46
+ needCollectstructuredInfo?: INeedCollectStructuredInfo;
79
47
  /**
80
48
  * 错误信息
81
49
  */
@@ -84,17 +52,34 @@ export interface ISseData {
84
52
  errMsg?: string;
85
53
  };
86
54
  /**
87
- * 行为动作
55
+ * 工具消息
88
56
  */
89
- behaviorAction?: {
57
+ toolMessage?: {
90
58
  /**
91
- * 行为动作
59
+ * 工具消息类型
92
60
  */
93
- action?: IBehaviorAction;
61
+ toolType?: IToolTypeEnum;
94
62
  /**
95
- * 行为动作描述
63
+ * 工具消息内容
96
64
  */
97
- actionDescription?: string;
65
+ toolContent?: string;
66
+ /**
67
+ * 可视化图表数据
68
+ */
69
+ visualChartData?: Record<string, any>;
70
+ /**
71
+ * 行为动作
72
+ */
73
+ behaviorAction?: {
74
+ /**
75
+ * 行为动作
76
+ */
77
+ action?: IBehaviorAction;
78
+ /**
79
+ * 行为动作描述
80
+ */
81
+ actionDescription?: string;
82
+ };
98
83
  };
99
84
  }
100
85
 
@@ -129,7 +114,62 @@ export const enum SseDataTypeEnum {
129
114
  */
130
115
  ErrorInfo = 'errorInfo',
131
116
  /**
132
- * 行为动作
117
+ * 工具消息
133
118
  */
134
- BehaviorAction = 'behaviorAction'
119
+ ToolMessage = 'toolMessage'
120
+ }
121
+
122
+ /**
123
+ * 需要收集结构化信息
124
+ */
125
+ export interface INeedCollectStructuredInfo {
126
+ /**
127
+ * 表单类型
128
+ */
129
+ type?: string;
130
+ /**
131
+ * 对用户的语言提示
132
+ */
133
+ voiceTip?: string;
134
+ /**
135
+ * 表单标题
136
+ */
137
+ title?: string;
138
+ /**
139
+ * 表单描述
140
+ */
141
+ description?: string;
142
+ /**
143
+ * 等效的AI内容(当不使用结构化展示时候可以使用等效的AI内容展示给用户 或 用于上下文)
144
+ */
145
+ equalAiContent?: string;
146
+ /**
147
+ * 需要收集的字段列表
148
+ */
149
+ fields: {
150
+ /**
151
+ * 字段名称
152
+ */
153
+ name?: string;
154
+ /**
155
+ * 字段标签
156
+ */
157
+ label?: string;
158
+ /**
159
+ * 字段描述
160
+ */
161
+ description?: string;
162
+ /**
163
+ * 是否必填
164
+ */
165
+ required?: boolean;
166
+ /**
167
+ * 选项
168
+ */
169
+ options?: string[];
170
+ /**
171
+ * 占位符
172
+ */
173
+ placeholder?: string;
174
+ }[];
135
175
  }
@@ -1,29 +1,29 @@
1
- export * from './ICommonReqRes';
2
- export * from './ISessionRole';
3
- export * from './ISessionContent';
4
- export * from './ICounselor';
5
- export * from './IChatAiMessageItem';
6
- export * from './AISceneEnum';
7
- export * from './ISceneAiConfig';
8
- export * from './IAliFcContext';
9
- export * from './ISseChunk';
10
- export * from './ICallUniCloudParams';
11
- export * from './ICommonRequstHead';
12
- export * from './IFormatCutOffCollegeData';
13
- export * from './IFormatProfessional.ts';
14
- export * from './IPicture.ts';
15
- export * from './ISseData';
16
- export * from './ISelectSubject';
17
- export * from './IInquiryBasicInfo';
18
- export * from './IInquirySession';
19
- export * from './ISessionContent';
20
- export * from './IGetRecommendSchool';
21
- export * from './IScoreRank';
22
- export * from './IReportInfo';
23
- export * from './IReportResult';
24
- export * from './ICommonError';
25
- export * from './ReportTypeEnum';
26
- export * from './SubReportTypeEnum';
27
- export * from './IReportData';
28
- export * from './IFormatGaokaoBasicInfo';
29
- export * from './IConfigInfo';
1
+ export * from './ICommonReqRes.d.ts';
2
+ export * from './ISessionRole.d.ts';
3
+ export * from './ISessionContent.d.ts';
4
+ export * from './ICounselor.d.ts';
5
+ export * from './IChatAiMessageItem.d.ts';
6
+ export * from './AISceneEnum.d.ts';
7
+ export * from './ISceneAiConfig.d.ts';
8
+ export * from './IAliFcContext.d.ts';
9
+ export * from './ISseChunk.d.ts';
10
+ export * from './ICallUniCloudParams.d.ts';
11
+ export * from './ICommonRequstHead.d.ts';
12
+ export * from './IFormatCutOffCollegeData.d.ts';
13
+ export * from './IFormatProfessional.d.ts';
14
+ export * from './IPicture.d.ts';
15
+ export * from './ISseData.d.ts';
16
+ export * from './ISelectSubject.d.ts';
17
+ export * from './IInquiryBasicInfo.d.ts';
18
+ export * from './IInquirySession.d.ts';
19
+ export * from './ISessionContent.d.ts';
20
+ export * from './IGetRecommendSchool.d.ts';
21
+ export * from './IScoreRank.d.ts';
22
+ export * from './IReportInfo.d.ts';
23
+ export * from './IReportResult.d.ts';
24
+ export * from './ICommonError.d.ts';
25
+ export * from './ReportTypeEnum.d.ts';
26
+ export * from './SubReportTypeEnum.d.ts';
27
+ export * from './IReportData.d.ts';
28
+ export * from './IFormatGaokaoBasicInfo.d.ts';
29
+ export * from './IConfigInfo.d.ts';
@@ -228,7 +228,7 @@ export interface IAgentReq extends ICommonReq {
228
228
  /**
229
229
  * 智能体类型 necc为高考智能体, gaokao为高考智能体, report为报告智能体
230
230
  */
231
- type: 'ncee' | 'gaokao' | 'report';
231
+ type?: 'ncee' | 'gaokao' | 'report';
232
232
  /**
233
233
  * 节点名称 恢复对话时候前端透传需要回到的节点名称
234
234
  */
@@ -1,3 +1,3 @@
1
- export * from './common';
2
- export * from './controller';
3
- export * from './service';
1
+ export * from './common/index.d.ts';
2
+ export * from './controller/index.d.ts';
3
+ export * from './service/index.d.ts';
package/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './hdd-ai-cloud';
2
- export * from './HddCloud';
1
+ export * from './hdd-ai-cloud/index.d.ts';
2
+ export * from './HddCloud/index.d.ts';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hddjs/hdd-cloud-types",
3
- "version": "1.0.12",
4
- "main": "index.js",
3
+ "version": "1.0.14-SNAPSHOT.1",
4
+ "main": "index.d.ts",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
7
7
  },
@@ -1,3 +0,0 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
3
- //# sourceMappingURL=ICallUniCloudParams.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ICallUniCloudParams.js","sourceRoot":"","sources":["ICallUniCloudParams.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
3
- //# sourceMappingURL=ICommonRequstHead.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ICommonRequstHead.js","sourceRoot":"","sources":["ICommonRequstHead.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
3
- //# sourceMappingURL=IFormatProfessional.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IFormatProfessional.js","sourceRoot":"","sources":["IFormatProfessional.ts"],"names":[],"mappings":""}