@hddjs/hdd-cloud-types 1.0.8 → 1.0.10
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/hdd-ai-cloud/common/IConfigInfo.d.ts +6 -0
- package/hdd-ai-cloud/common/IFormatGaokaoBasicInfo.d.ts +67 -0
- package/hdd-ai-cloud/common/ISessionContent.d.ts +4 -0
- package/hdd-ai-cloud/common/ISseData.d.ts +12 -0
- package/hdd-ai-cloud/common/index.d.ts +2 -0
- package/hdd-ai-cloud/controller/index.d.ts +40 -24
- package/package.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 格式化高考基础信息的类型定义
|
|
3
|
+
*/
|
|
4
|
+
export interface IFormatGaokaoBasicInfo {
|
|
5
|
+
/**
|
|
6
|
+
* 高考基础信息
|
|
7
|
+
*/
|
|
8
|
+
gaokao?: {
|
|
9
|
+
/**
|
|
10
|
+
* 省份
|
|
11
|
+
*/
|
|
12
|
+
province?: {
|
|
13
|
+
id?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
sname?: string;
|
|
16
|
+
pinyin?: string;
|
|
17
|
+
examType?: string;
|
|
18
|
+
isActived?: boolean;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 分数
|
|
22
|
+
*/
|
|
23
|
+
score?: string | number;
|
|
24
|
+
/**
|
|
25
|
+
* 排名
|
|
26
|
+
*/
|
|
27
|
+
rank?: string | number;
|
|
28
|
+
/**
|
|
29
|
+
* 选课
|
|
30
|
+
*/
|
|
31
|
+
subjects?: string[];
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 三维探索 包括专业、城市、学校
|
|
35
|
+
*/
|
|
36
|
+
explore?: {
|
|
37
|
+
/**
|
|
38
|
+
* 优先级 城市优先 学校优先 专业优先
|
|
39
|
+
*/
|
|
40
|
+
priority?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 意向专业
|
|
43
|
+
*/
|
|
44
|
+
major?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 意向城市
|
|
47
|
+
*/
|
|
48
|
+
city?: string;
|
|
49
|
+
/**
|
|
50
|
+
* 意向学校
|
|
51
|
+
*/
|
|
52
|
+
school?: string;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* 其他信息
|
|
56
|
+
*/
|
|
57
|
+
otherInfo?: {
|
|
58
|
+
/**
|
|
59
|
+
* 未来计划
|
|
60
|
+
*/
|
|
61
|
+
futurePlan?: string;
|
|
62
|
+
/**
|
|
63
|
+
* 经济计划
|
|
64
|
+
*/
|
|
65
|
+
economicPlan?: string;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -6,6 +6,10 @@ export interface ISseData {
|
|
|
6
6
|
* 流式返回片段的类型
|
|
7
7
|
*/
|
|
8
8
|
type: SseDataTypeEnum;
|
|
9
|
+
/**
|
|
10
|
+
* 标识对话步骤id
|
|
11
|
+
*/
|
|
12
|
+
stepId?: string;
|
|
9
13
|
/**
|
|
10
14
|
* ai返回的对话内容
|
|
11
15
|
*/
|
|
@@ -26,6 +30,10 @@ export interface ISseData {
|
|
|
26
30
|
* 表单类型
|
|
27
31
|
*/
|
|
28
32
|
type?: string;
|
|
33
|
+
/**
|
|
34
|
+
* 对用户的语言提示
|
|
35
|
+
*/
|
|
36
|
+
voiceTip?: string;
|
|
29
37
|
/**
|
|
30
38
|
* 表单标题
|
|
31
39
|
*/
|
|
@@ -34,6 +42,10 @@ export interface ISseData {
|
|
|
34
42
|
* 表单描述
|
|
35
43
|
*/
|
|
36
44
|
description?: string;
|
|
45
|
+
/**
|
|
46
|
+
* 等效的AI内容(当不使用结构化展示时候可以使用等效的AI内容展示给用户 或 用于上下文)
|
|
47
|
+
*/
|
|
48
|
+
equalAiContent: string;
|
|
37
49
|
/**
|
|
38
50
|
* 需要收集的字段列表
|
|
39
51
|
*/
|
|
@@ -11,9 +11,15 @@ import {
|
|
|
11
11
|
type IScoreRank,
|
|
12
12
|
type IReportResult,
|
|
13
13
|
type ReportTypeEnum,
|
|
14
|
-
type SubReportTypeEnum
|
|
14
|
+
type SubReportTypeEnum,
|
|
15
|
+
type IFormatGaokaoBasicInfo,
|
|
16
|
+
type IConfigInfo
|
|
15
17
|
} from '../common';
|
|
16
18
|
import { type ICounselorType } from '../common/ICounselorType';
|
|
19
|
+
import { type IGaokaoVolunteerRecommendationReport } from '../common/IReportData';
|
|
20
|
+
import { type IGaokaoInterestReport } from '../common/IReportData';
|
|
21
|
+
import { type IGaokaoMajorMatchingReport } from '../common/IReportData';
|
|
22
|
+
import { type IGaokaoFutureDevelopmentReport } from '../common/IReportData';
|
|
17
23
|
|
|
18
24
|
/**
|
|
19
25
|
* 千问AI聊天api 请求参数
|
|
@@ -170,7 +176,24 @@ export interface IAiGenerateReportRes extends ICommonRes {
|
|
|
170
176
|
/**
|
|
171
177
|
* 报告数据
|
|
172
178
|
*/
|
|
173
|
-
reportData?:
|
|
179
|
+
reportData?: {
|
|
180
|
+
/**
|
|
181
|
+
* 高考志愿推荐:院校排序等推荐
|
|
182
|
+
*/
|
|
183
|
+
'gaokao-volunteer-recommendation': IGaokaoVolunteerRecommendationReport;
|
|
184
|
+
/**
|
|
185
|
+
* 高考志愿兴趣分析:霍兰德职业兴趣测评报告
|
|
186
|
+
*/
|
|
187
|
+
'gaokao-interest': IGaokaoInterestReport;
|
|
188
|
+
/**
|
|
189
|
+
* 高考志愿专业匹配分析:专业推荐报告(专业匹配分析\排序)
|
|
190
|
+
*/
|
|
191
|
+
'gaokao-major-matching': IGaokaoMajorMatchingReport;
|
|
192
|
+
/**
|
|
193
|
+
* 高考志愿未来发展:未来发展建议
|
|
194
|
+
*/
|
|
195
|
+
'gaokao-future-development': IGaokaoFutureDevelopmentReport;
|
|
196
|
+
};
|
|
174
197
|
}
|
|
175
198
|
|
|
176
199
|
/**
|
|
@@ -218,6 +241,10 @@ export interface IAgentReq extends ICommonReq {
|
|
|
218
241
|
* 用户输入信息
|
|
219
242
|
*/
|
|
220
243
|
content?: string;
|
|
244
|
+
/**
|
|
245
|
+
* 步骤id
|
|
246
|
+
*/
|
|
247
|
+
stepId?: string;
|
|
221
248
|
/**
|
|
222
249
|
* 是否是恢复上次的会话 'F' | 'T'
|
|
223
250
|
*/
|
|
@@ -227,31 +254,13 @@ export interface IAgentReq extends ICommonReq {
|
|
|
227
254
|
*/
|
|
228
255
|
showGraph?: 'F' | 'T';
|
|
229
256
|
/**
|
|
230
|
-
*
|
|
257
|
+
* 表单类型
|
|
231
258
|
*/
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* 高考排名
|
|
235
|
-
*/
|
|
236
|
-
rank?: string;
|
|
237
|
-
/**
|
|
238
|
-
* 高考主要选课
|
|
239
|
-
*/
|
|
240
|
-
mainSubject?: string;
|
|
241
|
-
};
|
|
259
|
+
formType?: 'gaokaoBasicInfo';
|
|
242
260
|
/**
|
|
243
|
-
*
|
|
261
|
+
* 格式化的表单数据 包括高考数据和报告数据
|
|
244
262
|
*/
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* 报告id
|
|
248
|
-
*/
|
|
249
|
-
reportId?: string;
|
|
250
|
-
/**
|
|
251
|
-
* 报告类型
|
|
252
|
-
*/
|
|
253
|
-
reportTypeList?: ('holland' | 'career')[];
|
|
254
|
-
};
|
|
263
|
+
formattedFormData?: IFormatGaokaoBasicInfo;
|
|
255
264
|
}
|
|
256
265
|
|
|
257
266
|
/**
|
|
@@ -478,3 +487,10 @@ export interface IGenerateReportInfoReq extends ICommonRes {
|
|
|
478
487
|
export interface IGenerateReportInfoRes extends ICommonRes {
|
|
479
488
|
data?: IReportResult;
|
|
480
489
|
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* 获取token
|
|
493
|
+
*/
|
|
494
|
+
export interface IGetConfigInfoRes extends ICommonRes {
|
|
495
|
+
data?: IConfigInfo;
|
|
496
|
+
}
|