@alicloud/dianjin20240628 1.3.0 → 1.5.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/client.d.ts +903 -10
- package/dist/client.js +805 -31
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1573 -162
package/dist/client.js
CHANGED
|
@@ -26,10 +26,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.UpdateLibraryRequestIndexSetting = exports.UpdateLibraryRequestIndexSettingVectorIndexSetting = exports.UpdateLibraryRequestIndexSettingTextIndexSetting = exports.UpdateLibraryRequestIndexSettingRecallStrategy = exports.UpdateLibraryRequestIndexSettingQueryEnhancer = exports.UpdateLibraryRequestIndexSettingModelConfig = exports.UpdateLibraryRequestIndexSettingChunkStrategy = exports.RunLibraryChatGenerationRequestVectorSearchParameter = exports.RunLibraryChatGenerationRequestTextSearchParameter = exports.RunLibraryChatGenerationRequestQueryCriteria = exports.RunLibraryChatGenerationRequestQueryCriteriaOr = exports.RunLibraryChatGenerationRequestQueryCriteriaAnd = exports.RunChatResultGenerationResponseBodyUsage = exports.RunChatResultGenerationResponseBodyChoices = exports.RunChatResultGenerationResponseBodyChoicesMessage = exports.RunChatResultGenerationRequestTools = void 0;
|
|
29
|
+
exports.GetLibraryResponse = exports.GetLibraryResponseBody = exports.GetLibraryRequest = exports.GetHistoryListByBizTypeResponse = exports.GetHistoryListByBizTypeResponseBody = exports.GetHistoryListByBizTypeRequest = exports.GetFilterDocumentListResponse = exports.GetFilterDocumentListResponseBody = exports.GetFilterDocumentListRequest = exports.GetDocumentUrlResponse = exports.GetDocumentUrlResponseBody = exports.GetDocumentUrlRequest = exports.GetDocumentListResponse = exports.GetDocumentListResponseBody = exports.GetDocumentListRequest = exports.GetDocumentChunkListResponse = exports.GetDocumentChunkListResponseBody = exports.GetDocumentChunkListRequest = exports.GetAppConfigResponse = exports.GetAppConfigResponseBody = exports.EvictTaskResponse = exports.EvictTaskResponseBody = exports.EvictTaskRequest = exports.DeleteLibraryResponse = exports.DeleteLibraryResponseBody = exports.DeleteLibraryRequest = exports.DeleteDocumentResponse = exports.DeleteDocumentResponseBody = exports.DeleteDocumentRequest = exports.CreateQualityCheckTaskResponse = exports.CreateQualityCheckTaskResponseBody = exports.CreateQualityCheckTaskRequest = exports.CreatePredefinedDocumentResponse = exports.CreatePredefinedDocumentResponseBody = exports.CreatePredefinedDocumentRequest = exports.CreatePdfTranslateTaskResponse = exports.CreatePdfTranslateTaskResponseBody = exports.CreatePdfTranslateTaskRequest = exports.CreateLibraryResponse = exports.CreateLibraryResponseBody = exports.CreateLibraryRequest = exports.CreateFinReportSummaryTaskResponse = exports.CreateFinReportSummaryTaskResponseBody = exports.CreateFinReportSummaryTaskRequest = exports.CreateDocsSummaryTaskResponse = exports.CreateDocsSummaryTaskResponseBody = exports.CreateDocsSummaryTaskRequest = exports.CreateAnnualDocSummaryTaskResponse = exports.CreateAnnualDocSummaryTaskResponseBody = exports.CreateAnnualDocSummaryTaskRequest = void 0;
|
|
30
|
+
exports.CreateAnnualDocSummaryTaskRequestDocInfos = exports.UploadDocumentResponse = exports.UploadDocumentResponseBody = exports.UploadDocumentAdvanceRequest = exports.UploadDocumentRequest = exports.UpdateLibraryResponse = exports.UpdateLibraryResponseBody = exports.UpdateLibraryRequest = exports.UpdateDocumentResponse = exports.UpdateDocumentResponseBody = exports.UpdateDocumentRequest = exports.RunLibraryChatGenerationResponse = exports.RunLibraryChatGenerationResponseBody = exports.RunLibraryChatGenerationRequest = exports.RunChatResultGenerationResponse = exports.RunChatResultGenerationResponseBody = exports.RunChatResultGenerationRequest = exports.RecognizeIntentionResponse = exports.RecognizeIntentionResponseBody = exports.RecognizeIntentionRequest = exports.RecallDocumentResponse = exports.RecallDocumentResponseBody = exports.RecallDocumentRequest = exports.ReIndexResponse = exports.ReIndexResponseBody = exports.ReIndexRequest = exports.PreviewDocumentResponse = exports.PreviewDocumentResponseBody = exports.PreviewDocumentRequest = exports.InvokePluginResponse = exports.InvokePluginResponseBody = exports.InvokePluginRequest = exports.GetTaskStatusResponse = exports.GetTaskStatusResponseBody = exports.GetTaskStatusRequest = exports.GetTaskResultResponse = exports.GetTaskResultResponseBody = exports.GetTaskResultRequest = exports.GetSummaryTaskResultResponse = exports.GetSummaryTaskResultResponseBody = exports.GetSummaryTaskResultRequest = exports.GetQualityCheckTaskResultResponse = exports.GetQualityCheckTaskResultResponseBody = exports.GetQualityCheckTaskResultRequest = exports.GetParseResultResponse = exports.GetParseResultResponseBody = exports.GetParseResultRequest = exports.GetLibraryListResponse = exports.GetLibraryListResponseBody = exports.GetLibraryListRequest = void 0;
|
|
31
|
+
exports.GetSummaryTaskResultResponseBodyDataUsage = exports.GetSummaryTaskResultResponseBodyDataChoices = exports.GetSummaryTaskResultResponseBodyDataChoicesMessage = exports.GetQualityCheckTaskResultResponseBodyData = exports.GetQualityCheckTaskResultResponseBodyDataQualityCheckList = exports.GetQualityCheckTaskResultResponseBodyDataQualityCheckListOriginDialogue = exports.GetQualityCheckTaskResultResponseBodyDataConversationList = exports.GetQualityCheckTaskResultResponseBodyDataConversationListDialogueList = exports.GetParseResultResponseBodyData = exports.GetLibraryListResponseBodyData = exports.GetLibraryListResponseBodyDataRecords = exports.GetLibraryListResponseBodyDataRecordsIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingVectorIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingTextIndexSetting = exports.GetLibraryListResponseBodyDataRecordsIndexSettingRecallStrategy = exports.GetLibraryListResponseBodyDataRecordsIndexSettingQueryEnhancer = exports.GetLibraryListResponseBodyDataRecordsIndexSettingModelConfig = exports.GetLibraryListResponseBodyDataRecordsIndexSettingChunkStrategy = exports.GetLibraryResponseBodyData = exports.GetLibraryResponseBodyDataIndexSetting = exports.GetLibraryResponseBodyDataIndexSettingVectorIndexSetting = exports.GetLibraryResponseBodyDataIndexSettingTextIndexSetting = exports.GetLibraryResponseBodyDataIndexSettingRecallStrategy = exports.GetLibraryResponseBodyDataIndexSettingQueryEnhancer = exports.GetLibraryResponseBodyDataIndexSettingModelConfig = exports.GetLibraryResponseBodyDataIndexSettingChunkStrategy = exports.GetHistoryListByBizTypeResponseBodyData = exports.GetHistoryListByBizTypeResponseBodyDataRecords = exports.GetFilterDocumentListResponseBodyData = exports.GetFilterDocumentListResponseBodyDataRecords = exports.GetFilterDocumentListRequestOr = exports.GetFilterDocumentListRequestAnd = exports.GetDocumentListResponseBodyData = exports.GetDocumentListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyData = exports.GetDocumentChunkListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyDataRecordsPos = exports.GetAppConfigResponseBodyData = exports.CreateQualityCheckTaskResponseBodyData = exports.CreateQualityCheckTaskRequestConversationList = exports.CreateQualityCheckTaskRequestConversationListDialogueList = exports.CreatePredefinedDocumentRequestChunks = exports.CreateLibraryRequestIndexSetting = exports.CreateLibraryRequestIndexSettingVectorIndexSetting = exports.CreateLibraryRequestIndexSettingTextIndexSetting = exports.CreateLibraryRequestIndexSettingRecallStrategy = exports.CreateLibraryRequestIndexSettingQueryEnhancer = exports.CreateLibraryRequestIndexSettingModelConfig = exports.CreateLibraryRequestIndexSettingChunkStrategy = exports.CreateDocsSummaryTaskRequestDocInfos = void 0;
|
|
32
|
+
exports.UpdateLibraryRequestIndexSetting = exports.UpdateLibraryRequestIndexSettingVectorIndexSetting = exports.UpdateLibraryRequestIndexSettingTextIndexSetting = exports.UpdateLibraryRequestIndexSettingRecallStrategy = exports.UpdateLibraryRequestIndexSettingQueryEnhancer = exports.UpdateLibraryRequestIndexSettingModelConfig = exports.UpdateLibraryRequestIndexSettingChunkStrategy = exports.RunLibraryChatGenerationRequestVectorSearchParameter = exports.RunLibraryChatGenerationRequestTextSearchParameter = exports.RunLibraryChatGenerationRequestQueryCriteria = exports.RunLibraryChatGenerationRequestQueryCriteriaOr = exports.RunLibraryChatGenerationRequestQueryCriteriaAnd = exports.RunChatResultGenerationResponseBodyUsage = exports.RunChatResultGenerationResponseBodyChoices = exports.RunChatResultGenerationResponseBodyChoicesMessage = exports.RunChatResultGenerationRequestTools = exports.RunChatResultGenerationRequestToolsFunction = exports.RunChatResultGenerationRequestToolsFunctionParameters = exports.RunChatResultGenerationRequestMessages = exports.RecognizeIntentionResponseBodyData = exports.RecognizeIntentionRequestIntentionList = exports.RecognizeIntentionRequestHierarchicalIntentionList = exports.RecognizeIntentionRequestGlobalIntentionList = exports.RecallDocumentResponseBodyData = exports.RecallDocumentResponseBodyDataVectorChunkList = exports.RecallDocumentResponseBodyDataVectorChunkListPos = exports.RecallDocumentResponseBodyDataTextChunkList = exports.RecallDocumentResponseBodyDataTextChunkListPos = exports.RecallDocumentResponseBodyDataDocuments = exports.RecallDocumentResponseBodyDataChunkPartList = exports.RecallDocumentResponseBodyDataChunkPartListPos = exports.RecallDocumentResponseBodyDataChunkList = exports.RecallDocumentResponseBodyDataChunkListPos = exports.RecallDocumentRequestFilters = exports.RecallDocumentRequestFiltersOr = exports.RecallDocumentRequestFiltersAnd = exports.PreviewDocumentResponseBodyData = exports.GetSummaryTaskResultResponseBodyData = void 0;
|
|
33
33
|
// This file is auto-generated, don't edit it
|
|
34
34
|
/**
|
|
35
35
|
*/
|
|
@@ -42,6 +42,152 @@ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $Ope
|
|
|
42
42
|
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
|
|
43
43
|
const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
|
|
44
44
|
const $tea = __importStar(require("@alicloud/tea-typescript"));
|
|
45
|
+
class CreateAnnualDocSummaryTaskRequest extends $tea.Model {
|
|
46
|
+
static names() {
|
|
47
|
+
return {
|
|
48
|
+
anaYears: 'anaYears',
|
|
49
|
+
docInfos: 'docInfos',
|
|
50
|
+
enableTable: 'enableTable',
|
|
51
|
+
instruction: 'instruction',
|
|
52
|
+
modelId: 'modelId',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
static types() {
|
|
56
|
+
return {
|
|
57
|
+
anaYears: { 'type': 'array', 'itemType': 'number' },
|
|
58
|
+
docInfos: { 'type': 'array', 'itemType': CreateAnnualDocSummaryTaskRequestDocInfos },
|
|
59
|
+
enableTable: 'boolean',
|
|
60
|
+
instruction: 'string',
|
|
61
|
+
modelId: 'string',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
constructor(map) {
|
|
65
|
+
super(map);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.CreateAnnualDocSummaryTaskRequest = CreateAnnualDocSummaryTaskRequest;
|
|
69
|
+
class CreateAnnualDocSummaryTaskResponseBody extends $tea.Model {
|
|
70
|
+
static names() {
|
|
71
|
+
return {
|
|
72
|
+
cost: 'cost',
|
|
73
|
+
data: 'data',
|
|
74
|
+
dataType: 'dataType',
|
|
75
|
+
errCode: 'errCode',
|
|
76
|
+
message: 'message',
|
|
77
|
+
requestId: 'requestId',
|
|
78
|
+
success: 'success',
|
|
79
|
+
time: 'time',
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
static types() {
|
|
83
|
+
return {
|
|
84
|
+
cost: 'number',
|
|
85
|
+
data: 'string',
|
|
86
|
+
dataType: 'string',
|
|
87
|
+
errCode: 'string',
|
|
88
|
+
message: 'string',
|
|
89
|
+
requestId: 'string',
|
|
90
|
+
success: 'boolean',
|
|
91
|
+
time: 'string',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
constructor(map) {
|
|
95
|
+
super(map);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.CreateAnnualDocSummaryTaskResponseBody = CreateAnnualDocSummaryTaskResponseBody;
|
|
99
|
+
class CreateAnnualDocSummaryTaskResponse extends $tea.Model {
|
|
100
|
+
static names() {
|
|
101
|
+
return {
|
|
102
|
+
headers: 'headers',
|
|
103
|
+
statusCode: 'statusCode',
|
|
104
|
+
body: 'body',
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
static types() {
|
|
108
|
+
return {
|
|
109
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
110
|
+
statusCode: 'number',
|
|
111
|
+
body: CreateAnnualDocSummaryTaskResponseBody,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
constructor(map) {
|
|
115
|
+
super(map);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.CreateAnnualDocSummaryTaskResponse = CreateAnnualDocSummaryTaskResponse;
|
|
119
|
+
class CreateDocsSummaryTaskRequest extends $tea.Model {
|
|
120
|
+
static names() {
|
|
121
|
+
return {
|
|
122
|
+
docInfos: 'docInfos',
|
|
123
|
+
enableTable: 'enableTable',
|
|
124
|
+
instruction: 'instruction',
|
|
125
|
+
modelId: 'modelId',
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
static types() {
|
|
129
|
+
return {
|
|
130
|
+
docInfos: { 'type': 'array', 'itemType': CreateDocsSummaryTaskRequestDocInfos },
|
|
131
|
+
enableTable: 'boolean',
|
|
132
|
+
instruction: 'string',
|
|
133
|
+
modelId: 'string',
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
constructor(map) {
|
|
137
|
+
super(map);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.CreateDocsSummaryTaskRequest = CreateDocsSummaryTaskRequest;
|
|
141
|
+
class CreateDocsSummaryTaskResponseBody extends $tea.Model {
|
|
142
|
+
static names() {
|
|
143
|
+
return {
|
|
144
|
+
cost: 'cost',
|
|
145
|
+
data: 'data',
|
|
146
|
+
dataType: 'dataType',
|
|
147
|
+
errCode: 'errCode',
|
|
148
|
+
message: 'message',
|
|
149
|
+
requestId: 'requestId',
|
|
150
|
+
success: 'success',
|
|
151
|
+
time: 'time',
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
static types() {
|
|
155
|
+
return {
|
|
156
|
+
cost: 'number',
|
|
157
|
+
data: 'string',
|
|
158
|
+
dataType: 'string',
|
|
159
|
+
errCode: 'string',
|
|
160
|
+
message: 'string',
|
|
161
|
+
requestId: 'string',
|
|
162
|
+
success: 'boolean',
|
|
163
|
+
time: 'string',
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
constructor(map) {
|
|
167
|
+
super(map);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
exports.CreateDocsSummaryTaskResponseBody = CreateDocsSummaryTaskResponseBody;
|
|
171
|
+
class CreateDocsSummaryTaskResponse extends $tea.Model {
|
|
172
|
+
static names() {
|
|
173
|
+
return {
|
|
174
|
+
headers: 'headers',
|
|
175
|
+
statusCode: 'statusCode',
|
|
176
|
+
body: 'body',
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
static types() {
|
|
180
|
+
return {
|
|
181
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
182
|
+
statusCode: 'number',
|
|
183
|
+
body: CreateDocsSummaryTaskResponseBody,
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
constructor(map) {
|
|
187
|
+
super(map);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
exports.CreateDocsSummaryTaskResponse = CreateDocsSummaryTaskResponse;
|
|
45
191
|
class CreateFinReportSummaryTaskRequest extends $tea.Model {
|
|
46
192
|
static names() {
|
|
47
193
|
return {
|
|
@@ -338,6 +484,82 @@ class CreatePredefinedDocumentResponse extends $tea.Model {
|
|
|
338
484
|
}
|
|
339
485
|
}
|
|
340
486
|
exports.CreatePredefinedDocumentResponse = CreatePredefinedDocumentResponse;
|
|
487
|
+
class CreateQualityCheckTaskRequest extends $tea.Model {
|
|
488
|
+
static names() {
|
|
489
|
+
return {
|
|
490
|
+
conversationList: 'conversationList',
|
|
491
|
+
gmtService: 'gmtService',
|
|
492
|
+
metaData: 'metaData',
|
|
493
|
+
qualityGroup: 'qualityGroup',
|
|
494
|
+
requestId: 'requestId',
|
|
495
|
+
type: 'type',
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
static types() {
|
|
499
|
+
return {
|
|
500
|
+
conversationList: CreateQualityCheckTaskRequestConversationList,
|
|
501
|
+
gmtService: 'string',
|
|
502
|
+
metaData: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
503
|
+
qualityGroup: { 'type': 'array', 'itemType': 'string' },
|
|
504
|
+
requestId: 'string',
|
|
505
|
+
type: 'string',
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
constructor(map) {
|
|
509
|
+
super(map);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
exports.CreateQualityCheckTaskRequest = CreateQualityCheckTaskRequest;
|
|
513
|
+
class CreateQualityCheckTaskResponseBody extends $tea.Model {
|
|
514
|
+
static names() {
|
|
515
|
+
return {
|
|
516
|
+
cost: 'cost',
|
|
517
|
+
data: 'data',
|
|
518
|
+
dataType: 'dataType',
|
|
519
|
+
errCode: 'errCode',
|
|
520
|
+
message: 'message',
|
|
521
|
+
requestId: 'requestId',
|
|
522
|
+
success: 'success',
|
|
523
|
+
time: 'time',
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
static types() {
|
|
527
|
+
return {
|
|
528
|
+
cost: 'number',
|
|
529
|
+
data: CreateQualityCheckTaskResponseBodyData,
|
|
530
|
+
dataType: 'string',
|
|
531
|
+
errCode: 'string',
|
|
532
|
+
message: 'string',
|
|
533
|
+
requestId: 'string',
|
|
534
|
+
success: 'boolean',
|
|
535
|
+
time: 'string',
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
constructor(map) {
|
|
539
|
+
super(map);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
exports.CreateQualityCheckTaskResponseBody = CreateQualityCheckTaskResponseBody;
|
|
543
|
+
class CreateQualityCheckTaskResponse extends $tea.Model {
|
|
544
|
+
static names() {
|
|
545
|
+
return {
|
|
546
|
+
headers: 'headers',
|
|
547
|
+
statusCode: 'statusCode',
|
|
548
|
+
body: 'body',
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
static types() {
|
|
552
|
+
return {
|
|
553
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
554
|
+
statusCode: 'number',
|
|
555
|
+
body: CreateQualityCheckTaskResponseBody,
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
constructor(map) {
|
|
559
|
+
super(map);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
exports.CreateQualityCheckTaskResponse = CreateQualityCheckTaskResponse;
|
|
341
563
|
class DeleteDocumentRequest extends $tea.Model {
|
|
342
564
|
static names() {
|
|
343
565
|
return {
|
|
@@ -1152,6 +1374,72 @@ class GetParseResultResponse extends $tea.Model {
|
|
|
1152
1374
|
}
|
|
1153
1375
|
}
|
|
1154
1376
|
exports.GetParseResultResponse = GetParseResultResponse;
|
|
1377
|
+
class GetQualityCheckTaskResultRequest extends $tea.Model {
|
|
1378
|
+
static names() {
|
|
1379
|
+
return {
|
|
1380
|
+
taskId: 'taskId',
|
|
1381
|
+
};
|
|
1382
|
+
}
|
|
1383
|
+
static types() {
|
|
1384
|
+
return {
|
|
1385
|
+
taskId: 'string',
|
|
1386
|
+
};
|
|
1387
|
+
}
|
|
1388
|
+
constructor(map) {
|
|
1389
|
+
super(map);
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
exports.GetQualityCheckTaskResultRequest = GetQualityCheckTaskResultRequest;
|
|
1393
|
+
class GetQualityCheckTaskResultResponseBody extends $tea.Model {
|
|
1394
|
+
static names() {
|
|
1395
|
+
return {
|
|
1396
|
+
cost: 'cost',
|
|
1397
|
+
data: 'data',
|
|
1398
|
+
dataType: 'dataType',
|
|
1399
|
+
errCode: 'errCode',
|
|
1400
|
+
message: 'message',
|
|
1401
|
+
requestId: 'requestId',
|
|
1402
|
+
success: 'success',
|
|
1403
|
+
time: 'time',
|
|
1404
|
+
};
|
|
1405
|
+
}
|
|
1406
|
+
static types() {
|
|
1407
|
+
return {
|
|
1408
|
+
cost: 'number',
|
|
1409
|
+
data: GetQualityCheckTaskResultResponseBodyData,
|
|
1410
|
+
dataType: 'string',
|
|
1411
|
+
errCode: 'string',
|
|
1412
|
+
message: 'string',
|
|
1413
|
+
requestId: 'string',
|
|
1414
|
+
success: 'boolean',
|
|
1415
|
+
time: 'string',
|
|
1416
|
+
};
|
|
1417
|
+
}
|
|
1418
|
+
constructor(map) {
|
|
1419
|
+
super(map);
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
exports.GetQualityCheckTaskResultResponseBody = GetQualityCheckTaskResultResponseBody;
|
|
1423
|
+
class GetQualityCheckTaskResultResponse extends $tea.Model {
|
|
1424
|
+
static names() {
|
|
1425
|
+
return {
|
|
1426
|
+
headers: 'headers',
|
|
1427
|
+
statusCode: 'statusCode',
|
|
1428
|
+
body: 'body',
|
|
1429
|
+
};
|
|
1430
|
+
}
|
|
1431
|
+
static types() {
|
|
1432
|
+
return {
|
|
1433
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1434
|
+
statusCode: 'number',
|
|
1435
|
+
body: GetQualityCheckTaskResultResponseBody,
|
|
1436
|
+
};
|
|
1437
|
+
}
|
|
1438
|
+
constructor(map) {
|
|
1439
|
+
super(map);
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
exports.GetQualityCheckTaskResultResponse = GetQualityCheckTaskResultResponse;
|
|
1155
1443
|
class GetSummaryTaskResultRequest extends $tea.Model {
|
|
1156
1444
|
static names() {
|
|
1157
1445
|
return {
|
|
@@ -2116,6 +2404,52 @@ class UploadDocumentResponse extends $tea.Model {
|
|
|
2116
2404
|
}
|
|
2117
2405
|
}
|
|
2118
2406
|
exports.UploadDocumentResponse = UploadDocumentResponse;
|
|
2407
|
+
class CreateAnnualDocSummaryTaskRequestDocInfos extends $tea.Model {
|
|
2408
|
+
static names() {
|
|
2409
|
+
return {
|
|
2410
|
+
docId: 'docId',
|
|
2411
|
+
docYear: 'docYear',
|
|
2412
|
+
endPage: 'endPage',
|
|
2413
|
+
libraryId: 'libraryId',
|
|
2414
|
+
startPage: 'startPage',
|
|
2415
|
+
};
|
|
2416
|
+
}
|
|
2417
|
+
static types() {
|
|
2418
|
+
return {
|
|
2419
|
+
docId: 'string',
|
|
2420
|
+
docYear: 'number',
|
|
2421
|
+
endPage: 'number',
|
|
2422
|
+
libraryId: 'string',
|
|
2423
|
+
startPage: 'number',
|
|
2424
|
+
};
|
|
2425
|
+
}
|
|
2426
|
+
constructor(map) {
|
|
2427
|
+
super(map);
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
exports.CreateAnnualDocSummaryTaskRequestDocInfos = CreateAnnualDocSummaryTaskRequestDocInfos;
|
|
2431
|
+
class CreateDocsSummaryTaskRequestDocInfos extends $tea.Model {
|
|
2432
|
+
static names() {
|
|
2433
|
+
return {
|
|
2434
|
+
docId: 'docId',
|
|
2435
|
+
endPage: 'endPage',
|
|
2436
|
+
libraryId: 'libraryId',
|
|
2437
|
+
startPage: 'startPage',
|
|
2438
|
+
};
|
|
2439
|
+
}
|
|
2440
|
+
static types() {
|
|
2441
|
+
return {
|
|
2442
|
+
docId: 'string',
|
|
2443
|
+
endPage: 'number',
|
|
2444
|
+
libraryId: 'string',
|
|
2445
|
+
startPage: 'number',
|
|
2446
|
+
};
|
|
2447
|
+
}
|
|
2448
|
+
constructor(map) {
|
|
2449
|
+
super(map);
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
exports.CreateDocsSummaryTaskRequestDocInfos = CreateDocsSummaryTaskRequestDocInfos;
|
|
2119
2453
|
class CreateLibraryRequestIndexSettingChunkStrategy extends $tea.Model {
|
|
2120
2454
|
static names() {
|
|
2121
2455
|
return {
|
|
@@ -2261,57 +2595,133 @@ class CreateLibraryRequestIndexSettingVectorIndexSetting extends $tea.Model {
|
|
|
2261
2595
|
super(map);
|
|
2262
2596
|
}
|
|
2263
2597
|
}
|
|
2264
|
-
exports.CreateLibraryRequestIndexSettingVectorIndexSetting = CreateLibraryRequestIndexSettingVectorIndexSetting;
|
|
2265
|
-
class CreateLibraryRequestIndexSetting extends $tea.Model {
|
|
2598
|
+
exports.CreateLibraryRequestIndexSettingVectorIndexSetting = CreateLibraryRequestIndexSettingVectorIndexSetting;
|
|
2599
|
+
class CreateLibraryRequestIndexSetting extends $tea.Model {
|
|
2600
|
+
static names() {
|
|
2601
|
+
return {
|
|
2602
|
+
chunkStrategy: 'chunkStrategy',
|
|
2603
|
+
modelConfig: 'modelConfig',
|
|
2604
|
+
promptRoleStyle: 'promptRoleStyle',
|
|
2605
|
+
queryEnhancer: 'queryEnhancer',
|
|
2606
|
+
recallStrategy: 'recallStrategy',
|
|
2607
|
+
textIndexSetting: 'textIndexSetting',
|
|
2608
|
+
vectorIndexSetting: 'vectorIndexSetting',
|
|
2609
|
+
};
|
|
2610
|
+
}
|
|
2611
|
+
static types() {
|
|
2612
|
+
return {
|
|
2613
|
+
chunkStrategy: CreateLibraryRequestIndexSettingChunkStrategy,
|
|
2614
|
+
modelConfig: CreateLibraryRequestIndexSettingModelConfig,
|
|
2615
|
+
promptRoleStyle: 'string',
|
|
2616
|
+
queryEnhancer: CreateLibraryRequestIndexSettingQueryEnhancer,
|
|
2617
|
+
recallStrategy: CreateLibraryRequestIndexSettingRecallStrategy,
|
|
2618
|
+
textIndexSetting: CreateLibraryRequestIndexSettingTextIndexSetting,
|
|
2619
|
+
vectorIndexSetting: CreateLibraryRequestIndexSettingVectorIndexSetting,
|
|
2620
|
+
};
|
|
2621
|
+
}
|
|
2622
|
+
constructor(map) {
|
|
2623
|
+
super(map);
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
exports.CreateLibraryRequestIndexSetting = CreateLibraryRequestIndexSetting;
|
|
2627
|
+
class CreatePredefinedDocumentRequestChunks extends $tea.Model {
|
|
2628
|
+
static names() {
|
|
2629
|
+
return {
|
|
2630
|
+
chunkMeta: 'chunkMeta',
|
|
2631
|
+
chunkOrder: 'chunkOrder',
|
|
2632
|
+
chunkText: 'chunkText',
|
|
2633
|
+
chunkType: 'chunkType',
|
|
2634
|
+
};
|
|
2635
|
+
}
|
|
2636
|
+
static types() {
|
|
2637
|
+
return {
|
|
2638
|
+
chunkMeta: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
2639
|
+
chunkOrder: 'number',
|
|
2640
|
+
chunkText: 'string',
|
|
2641
|
+
chunkType: 'string',
|
|
2642
|
+
};
|
|
2643
|
+
}
|
|
2644
|
+
constructor(map) {
|
|
2645
|
+
super(map);
|
|
2646
|
+
}
|
|
2647
|
+
}
|
|
2648
|
+
exports.CreatePredefinedDocumentRequestChunks = CreatePredefinedDocumentRequestChunks;
|
|
2649
|
+
class CreateQualityCheckTaskRequestConversationListDialogueList extends $tea.Model {
|
|
2650
|
+
static names() {
|
|
2651
|
+
return {
|
|
2652
|
+
begin: 'begin',
|
|
2653
|
+
beginTime: 'beginTime',
|
|
2654
|
+
content: 'content',
|
|
2655
|
+
customerId: 'customerId',
|
|
2656
|
+
customerServiceId: 'customerServiceId',
|
|
2657
|
+
customerServiceType: 'customerServiceType',
|
|
2658
|
+
end: 'end',
|
|
2659
|
+
role: 'role',
|
|
2660
|
+
type: 'type',
|
|
2661
|
+
};
|
|
2662
|
+
}
|
|
2663
|
+
static types() {
|
|
2664
|
+
return {
|
|
2665
|
+
begin: 'number',
|
|
2666
|
+
beginTime: 'string',
|
|
2667
|
+
content: 'string',
|
|
2668
|
+
customerId: 'string',
|
|
2669
|
+
customerServiceId: 'string',
|
|
2670
|
+
customerServiceType: 'string',
|
|
2671
|
+
end: 'number',
|
|
2672
|
+
role: 'string',
|
|
2673
|
+
type: 'string',
|
|
2674
|
+
};
|
|
2675
|
+
}
|
|
2676
|
+
constructor(map) {
|
|
2677
|
+
super(map);
|
|
2678
|
+
}
|
|
2679
|
+
}
|
|
2680
|
+
exports.CreateQualityCheckTaskRequestConversationListDialogueList = CreateQualityCheckTaskRequestConversationListDialogueList;
|
|
2681
|
+
class CreateQualityCheckTaskRequestConversationList extends $tea.Model {
|
|
2266
2682
|
static names() {
|
|
2267
2683
|
return {
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2684
|
+
callType: 'callType',
|
|
2685
|
+
customerId: 'customerId',
|
|
2686
|
+
customerName: 'customerName',
|
|
2687
|
+
customerServiceId: 'customerServiceId',
|
|
2688
|
+
customerServiceName: 'customerServiceName',
|
|
2689
|
+
dialogueList: 'dialogueList',
|
|
2690
|
+
gmtService: 'gmtService',
|
|
2275
2691
|
};
|
|
2276
2692
|
}
|
|
2277
2693
|
static types() {
|
|
2278
2694
|
return {
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2695
|
+
callType: 'string',
|
|
2696
|
+
customerId: 'string',
|
|
2697
|
+
customerName: 'string',
|
|
2698
|
+
customerServiceId: 'string',
|
|
2699
|
+
customerServiceName: 'string',
|
|
2700
|
+
dialogueList: { 'type': 'array', 'itemType': CreateQualityCheckTaskRequestConversationListDialogueList },
|
|
2701
|
+
gmtService: 'string',
|
|
2286
2702
|
};
|
|
2287
2703
|
}
|
|
2288
2704
|
constructor(map) {
|
|
2289
2705
|
super(map);
|
|
2290
2706
|
}
|
|
2291
2707
|
}
|
|
2292
|
-
exports.
|
|
2293
|
-
class
|
|
2708
|
+
exports.CreateQualityCheckTaskRequestConversationList = CreateQualityCheckTaskRequestConversationList;
|
|
2709
|
+
class CreateQualityCheckTaskResponseBodyData extends $tea.Model {
|
|
2294
2710
|
static names() {
|
|
2295
2711
|
return {
|
|
2296
|
-
|
|
2297
|
-
chunkOrder: 'chunkOrder',
|
|
2298
|
-
chunkText: 'chunkText',
|
|
2299
|
-
chunkType: 'chunkType',
|
|
2712
|
+
taskId: 'taskId',
|
|
2300
2713
|
};
|
|
2301
2714
|
}
|
|
2302
2715
|
static types() {
|
|
2303
2716
|
return {
|
|
2304
|
-
|
|
2305
|
-
chunkOrder: 'number',
|
|
2306
|
-
chunkText: 'string',
|
|
2307
|
-
chunkType: 'string',
|
|
2717
|
+
taskId: 'string',
|
|
2308
2718
|
};
|
|
2309
2719
|
}
|
|
2310
2720
|
constructor(map) {
|
|
2311
2721
|
super(map);
|
|
2312
2722
|
}
|
|
2313
2723
|
}
|
|
2314
|
-
exports.
|
|
2724
|
+
exports.CreateQualityCheckTaskResponseBodyData = CreateQualityCheckTaskResponseBodyData;
|
|
2315
2725
|
class GetAppConfigResponseBodyData extends $tea.Model {
|
|
2316
2726
|
static names() {
|
|
2317
2727
|
return {
|
|
@@ -3092,6 +3502,166 @@ class GetParseResultResponseBodyData extends $tea.Model {
|
|
|
3092
3502
|
}
|
|
3093
3503
|
}
|
|
3094
3504
|
exports.GetParseResultResponseBodyData = GetParseResultResponseBodyData;
|
|
3505
|
+
class GetQualityCheckTaskResultResponseBodyDataConversationListDialogueList extends $tea.Model {
|
|
3506
|
+
static names() {
|
|
3507
|
+
return {
|
|
3508
|
+
begin: 'begin',
|
|
3509
|
+
beginTime: 'beginTime',
|
|
3510
|
+
content: 'content',
|
|
3511
|
+
customerId: 'customerId',
|
|
3512
|
+
customerServiceId: 'customerServiceId',
|
|
3513
|
+
customerServiceType: 'customerServiceType',
|
|
3514
|
+
end: 'end',
|
|
3515
|
+
id: 'id',
|
|
3516
|
+
role: 'role',
|
|
3517
|
+
type: 'type',
|
|
3518
|
+
};
|
|
3519
|
+
}
|
|
3520
|
+
static types() {
|
|
3521
|
+
return {
|
|
3522
|
+
begin: 'number',
|
|
3523
|
+
beginTime: 'string',
|
|
3524
|
+
content: 'string',
|
|
3525
|
+
customerId: 'string',
|
|
3526
|
+
customerServiceId: 'string',
|
|
3527
|
+
customerServiceType: 'string',
|
|
3528
|
+
end: 'number',
|
|
3529
|
+
id: 'number',
|
|
3530
|
+
role: 'string',
|
|
3531
|
+
type: 'string',
|
|
3532
|
+
};
|
|
3533
|
+
}
|
|
3534
|
+
constructor(map) {
|
|
3535
|
+
super(map);
|
|
3536
|
+
}
|
|
3537
|
+
}
|
|
3538
|
+
exports.GetQualityCheckTaskResultResponseBodyDataConversationListDialogueList = GetQualityCheckTaskResultResponseBodyDataConversationListDialogueList;
|
|
3539
|
+
class GetQualityCheckTaskResultResponseBodyDataConversationList extends $tea.Model {
|
|
3540
|
+
static names() {
|
|
3541
|
+
return {
|
|
3542
|
+
callType: 'callType',
|
|
3543
|
+
customerId: 'customerId',
|
|
3544
|
+
customerName: 'customerName',
|
|
3545
|
+
customerServiceId: 'customerServiceId',
|
|
3546
|
+
customerServiceName: 'customerServiceName',
|
|
3547
|
+
dialogueList: 'dialogueList',
|
|
3548
|
+
gmtService: 'gmtService',
|
|
3549
|
+
};
|
|
3550
|
+
}
|
|
3551
|
+
static types() {
|
|
3552
|
+
return {
|
|
3553
|
+
callType: 'string',
|
|
3554
|
+
customerId: 'string',
|
|
3555
|
+
customerName: 'string',
|
|
3556
|
+
customerServiceId: 'string',
|
|
3557
|
+
customerServiceName: 'string',
|
|
3558
|
+
dialogueList: { 'type': 'array', 'itemType': GetQualityCheckTaskResultResponseBodyDataConversationListDialogueList },
|
|
3559
|
+
gmtService: 'string',
|
|
3560
|
+
};
|
|
3561
|
+
}
|
|
3562
|
+
constructor(map) {
|
|
3563
|
+
super(map);
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
exports.GetQualityCheckTaskResultResponseBodyDataConversationList = GetQualityCheckTaskResultResponseBodyDataConversationList;
|
|
3567
|
+
class GetQualityCheckTaskResultResponseBodyDataQualityCheckListOriginDialogue extends $tea.Model {
|
|
3568
|
+
static names() {
|
|
3569
|
+
return {
|
|
3570
|
+
begin: 'begin',
|
|
3571
|
+
beginTime: 'beginTime',
|
|
3572
|
+
content: 'content',
|
|
3573
|
+
customerId: 'customerId',
|
|
3574
|
+
customerServiceId: 'customerServiceId',
|
|
3575
|
+
customerServiceType: 'customerServiceType',
|
|
3576
|
+
end: 'end',
|
|
3577
|
+
id: 'id',
|
|
3578
|
+
role: 'role',
|
|
3579
|
+
type: 'type',
|
|
3580
|
+
};
|
|
3581
|
+
}
|
|
3582
|
+
static types() {
|
|
3583
|
+
return {
|
|
3584
|
+
begin: 'number',
|
|
3585
|
+
beginTime: 'string',
|
|
3586
|
+
content: 'string',
|
|
3587
|
+
customerId: 'string',
|
|
3588
|
+
customerServiceId: 'string',
|
|
3589
|
+
customerServiceType: 'string',
|
|
3590
|
+
end: 'number',
|
|
3591
|
+
id: 'number',
|
|
3592
|
+
role: 'string',
|
|
3593
|
+
type: 'string',
|
|
3594
|
+
};
|
|
3595
|
+
}
|
|
3596
|
+
constructor(map) {
|
|
3597
|
+
super(map);
|
|
3598
|
+
}
|
|
3599
|
+
}
|
|
3600
|
+
exports.GetQualityCheckTaskResultResponseBodyDataQualityCheckListOriginDialogue = GetQualityCheckTaskResultResponseBodyDataQualityCheckListOriginDialogue;
|
|
3601
|
+
class GetQualityCheckTaskResultResponseBodyDataQualityCheckList extends $tea.Model {
|
|
3602
|
+
static names() {
|
|
3603
|
+
return {
|
|
3604
|
+
checkExplanation: 'checkExplanation',
|
|
3605
|
+
checkPassed: 'checkPassed',
|
|
3606
|
+
checkProcess: 'checkProcess',
|
|
3607
|
+
checked: 'checked',
|
|
3608
|
+
gmtEnd: 'gmtEnd',
|
|
3609
|
+
gmtStart: 'gmtStart',
|
|
3610
|
+
mode: 'mode',
|
|
3611
|
+
originDialogue: 'originDialogue',
|
|
3612
|
+
qualityGroupId: 'qualityGroupId',
|
|
3613
|
+
ruleDescription: 'ruleDescription',
|
|
3614
|
+
ruleId: 'ruleId',
|
|
3615
|
+
};
|
|
3616
|
+
}
|
|
3617
|
+
static types() {
|
|
3618
|
+
return {
|
|
3619
|
+
checkExplanation: 'string',
|
|
3620
|
+
checkPassed: 'string',
|
|
3621
|
+
checkProcess: 'string',
|
|
3622
|
+
checked: 'string',
|
|
3623
|
+
gmtEnd: 'string',
|
|
3624
|
+
gmtStart: 'string',
|
|
3625
|
+
mode: 'string',
|
|
3626
|
+
originDialogue: { 'type': 'array', 'itemType': GetQualityCheckTaskResultResponseBodyDataQualityCheckListOriginDialogue },
|
|
3627
|
+
qualityGroupId: 'string',
|
|
3628
|
+
ruleDescription: 'string',
|
|
3629
|
+
ruleId: 'string',
|
|
3630
|
+
};
|
|
3631
|
+
}
|
|
3632
|
+
constructor(map) {
|
|
3633
|
+
super(map);
|
|
3634
|
+
}
|
|
3635
|
+
}
|
|
3636
|
+
exports.GetQualityCheckTaskResultResponseBodyDataQualityCheckList = GetQualityCheckTaskResultResponseBodyDataQualityCheckList;
|
|
3637
|
+
class GetQualityCheckTaskResultResponseBodyData extends $tea.Model {
|
|
3638
|
+
static names() {
|
|
3639
|
+
return {
|
|
3640
|
+
conversationList: 'conversationList',
|
|
3641
|
+
gmtCreate: 'gmtCreate',
|
|
3642
|
+
gmtEnd: 'gmtEnd',
|
|
3643
|
+
gmtStart: 'gmtStart',
|
|
3644
|
+
qualityCheckList: 'qualityCheckList',
|
|
3645
|
+
status: 'status',
|
|
3646
|
+
taskId: 'taskId',
|
|
3647
|
+
};
|
|
3648
|
+
}
|
|
3649
|
+
static types() {
|
|
3650
|
+
return {
|
|
3651
|
+
conversationList: GetQualityCheckTaskResultResponseBodyDataConversationList,
|
|
3652
|
+
gmtCreate: 'string',
|
|
3653
|
+
gmtEnd: 'string',
|
|
3654
|
+
gmtStart: 'string',
|
|
3655
|
+
qualityCheckList: { 'type': 'array', 'itemType': GetQualityCheckTaskResultResponseBodyDataQualityCheckList },
|
|
3656
|
+
status: 'string',
|
|
3657
|
+
taskId: 'string',
|
|
3658
|
+
};
|
|
3659
|
+
}
|
|
3660
|
+
constructor(map) {
|
|
3661
|
+
super(map);
|
|
3662
|
+
}
|
|
3663
|
+
}
|
|
3664
|
+
exports.GetQualityCheckTaskResultResponseBodyData = GetQualityCheckTaskResultResponseBodyData;
|
|
3095
3665
|
class GetSummaryTaskResultResponseBodyDataChoicesMessage extends $tea.Model {
|
|
3096
3666
|
static names() {
|
|
3097
3667
|
return {
|
|
@@ -4098,6 +4668,111 @@ class Client extends openapi_client_1.default {
|
|
|
4098
4668
|
}
|
|
4099
4669
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
4100
4670
|
}
|
|
4671
|
+
/**
|
|
4672
|
+
* 创建按年文档总结任务
|
|
4673
|
+
*
|
|
4674
|
+
* @param request - CreateAnnualDocSummaryTaskRequest
|
|
4675
|
+
* @param headers - map
|
|
4676
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4677
|
+
* @returns CreateAnnualDocSummaryTaskResponse
|
|
4678
|
+
*/
|
|
4679
|
+
async createAnnualDocSummaryTaskWithOptions(workspaceId, request, headers, runtime) {
|
|
4680
|
+
tea_util_1.default.validateModel(request);
|
|
4681
|
+
let body = {};
|
|
4682
|
+
if (!tea_util_1.default.isUnset(request.anaYears)) {
|
|
4683
|
+
body["anaYears"] = request.anaYears;
|
|
4684
|
+
}
|
|
4685
|
+
if (!tea_util_1.default.isUnset(request.docInfos)) {
|
|
4686
|
+
body["docInfos"] = request.docInfos;
|
|
4687
|
+
}
|
|
4688
|
+
if (!tea_util_1.default.isUnset(request.enableTable)) {
|
|
4689
|
+
body["enableTable"] = request.enableTable;
|
|
4690
|
+
}
|
|
4691
|
+
if (!tea_util_1.default.isUnset(request.instruction)) {
|
|
4692
|
+
body["instruction"] = request.instruction;
|
|
4693
|
+
}
|
|
4694
|
+
if (!tea_util_1.default.isUnset(request.modelId)) {
|
|
4695
|
+
body["modelId"] = request.modelId;
|
|
4696
|
+
}
|
|
4697
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4698
|
+
headers: headers,
|
|
4699
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
4700
|
+
});
|
|
4701
|
+
let params = new $OpenApi.Params({
|
|
4702
|
+
action: "CreateAnnualDocSummaryTask",
|
|
4703
|
+
version: "2024-06-28",
|
|
4704
|
+
protocol: "HTTPS",
|
|
4705
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/summary/doc/annual`,
|
|
4706
|
+
method: "POST",
|
|
4707
|
+
authType: "AK",
|
|
4708
|
+
style: "ROA",
|
|
4709
|
+
reqBodyType: "json",
|
|
4710
|
+
bodyType: "json",
|
|
4711
|
+
});
|
|
4712
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateAnnualDocSummaryTaskResponse({}));
|
|
4713
|
+
}
|
|
4714
|
+
/**
|
|
4715
|
+
* 创建按年文档总结任务
|
|
4716
|
+
*
|
|
4717
|
+
* @param request - CreateAnnualDocSummaryTaskRequest
|
|
4718
|
+
* @returns CreateAnnualDocSummaryTaskResponse
|
|
4719
|
+
*/
|
|
4720
|
+
async createAnnualDocSummaryTask(workspaceId, request) {
|
|
4721
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4722
|
+
let headers = {};
|
|
4723
|
+
return await this.createAnnualDocSummaryTaskWithOptions(workspaceId, request, headers, runtime);
|
|
4724
|
+
}
|
|
4725
|
+
/**
|
|
4726
|
+
* 创建财报总结任务
|
|
4727
|
+
*
|
|
4728
|
+
* @param request - CreateDocsSummaryTaskRequest
|
|
4729
|
+
* @param headers - map
|
|
4730
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4731
|
+
* @returns CreateDocsSummaryTaskResponse
|
|
4732
|
+
*/
|
|
4733
|
+
async createDocsSummaryTaskWithOptions(workspaceId, request, headers, runtime) {
|
|
4734
|
+
tea_util_1.default.validateModel(request);
|
|
4735
|
+
let body = {};
|
|
4736
|
+
if (!tea_util_1.default.isUnset(request.docInfos)) {
|
|
4737
|
+
body["docInfos"] = request.docInfos;
|
|
4738
|
+
}
|
|
4739
|
+
if (!tea_util_1.default.isUnset(request.enableTable)) {
|
|
4740
|
+
body["enableTable"] = request.enableTable;
|
|
4741
|
+
}
|
|
4742
|
+
if (!tea_util_1.default.isUnset(request.instruction)) {
|
|
4743
|
+
body["instruction"] = request.instruction;
|
|
4744
|
+
}
|
|
4745
|
+
if (!tea_util_1.default.isUnset(request.modelId)) {
|
|
4746
|
+
body["modelId"] = request.modelId;
|
|
4747
|
+
}
|
|
4748
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4749
|
+
headers: headers,
|
|
4750
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
4751
|
+
});
|
|
4752
|
+
let params = new $OpenApi.Params({
|
|
4753
|
+
action: "CreateDocsSummaryTask",
|
|
4754
|
+
version: "2024-06-28",
|
|
4755
|
+
protocol: "HTTPS",
|
|
4756
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/summary/docs`,
|
|
4757
|
+
method: "POST",
|
|
4758
|
+
authType: "AK",
|
|
4759
|
+
style: "ROA",
|
|
4760
|
+
reqBodyType: "json",
|
|
4761
|
+
bodyType: "json",
|
|
4762
|
+
});
|
|
4763
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateDocsSummaryTaskResponse({}));
|
|
4764
|
+
}
|
|
4765
|
+
/**
|
|
4766
|
+
* 创建财报总结任务
|
|
4767
|
+
*
|
|
4768
|
+
* @param request - CreateDocsSummaryTaskRequest
|
|
4769
|
+
* @returns CreateDocsSummaryTaskResponse
|
|
4770
|
+
*/
|
|
4771
|
+
async createDocsSummaryTask(workspaceId, request) {
|
|
4772
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4773
|
+
let headers = {};
|
|
4774
|
+
return await this.createDocsSummaryTaskWithOptions(workspaceId, request, headers, runtime);
|
|
4775
|
+
}
|
|
4101
4776
|
/**
|
|
4102
4777
|
* 创建财报总结任务
|
|
4103
4778
|
*
|
|
@@ -4314,6 +4989,63 @@ class Client extends openapi_client_1.default {
|
|
|
4314
4989
|
let headers = {};
|
|
4315
4990
|
return await this.createPredefinedDocumentWithOptions(workspaceId, request, headers, runtime);
|
|
4316
4991
|
}
|
|
4992
|
+
/**
|
|
4993
|
+
* 创建财报总结的任务
|
|
4994
|
+
*
|
|
4995
|
+
* @param request - CreateQualityCheckTaskRequest
|
|
4996
|
+
* @param headers - map
|
|
4997
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4998
|
+
* @returns CreateQualityCheckTaskResponse
|
|
4999
|
+
*/
|
|
5000
|
+
async createQualityCheckTaskWithOptions(workspaceId, request, headers, runtime) {
|
|
5001
|
+
tea_util_1.default.validateModel(request);
|
|
5002
|
+
let body = {};
|
|
5003
|
+
if (!tea_util_1.default.isUnset(request.conversationList)) {
|
|
5004
|
+
body["conversationList"] = request.conversationList;
|
|
5005
|
+
}
|
|
5006
|
+
if (!tea_util_1.default.isUnset(request.gmtService)) {
|
|
5007
|
+
body["gmtService"] = request.gmtService;
|
|
5008
|
+
}
|
|
5009
|
+
if (!tea_util_1.default.isUnset(request.metaData)) {
|
|
5010
|
+
body["metaData"] = request.metaData;
|
|
5011
|
+
}
|
|
5012
|
+
if (!tea_util_1.default.isUnset(request.qualityGroup)) {
|
|
5013
|
+
body["qualityGroup"] = request.qualityGroup;
|
|
5014
|
+
}
|
|
5015
|
+
if (!tea_util_1.default.isUnset(request.requestId)) {
|
|
5016
|
+
body["requestId"] = request.requestId;
|
|
5017
|
+
}
|
|
5018
|
+
if (!tea_util_1.default.isUnset(request.type)) {
|
|
5019
|
+
body["type"] = request.type;
|
|
5020
|
+
}
|
|
5021
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5022
|
+
headers: headers,
|
|
5023
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
5024
|
+
});
|
|
5025
|
+
let params = new $OpenApi.Params({
|
|
5026
|
+
action: "CreateQualityCheckTask",
|
|
5027
|
+
version: "2024-06-28",
|
|
5028
|
+
protocol: "HTTPS",
|
|
5029
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/qualitycheck/task/submit`,
|
|
5030
|
+
method: "POST",
|
|
5031
|
+
authType: "AK",
|
|
5032
|
+
style: "ROA",
|
|
5033
|
+
reqBodyType: "json",
|
|
5034
|
+
bodyType: "json",
|
|
5035
|
+
});
|
|
5036
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CreateQualityCheckTaskResponse({}));
|
|
5037
|
+
}
|
|
5038
|
+
/**
|
|
5039
|
+
* 创建财报总结的任务
|
|
5040
|
+
*
|
|
5041
|
+
* @param request - CreateQualityCheckTaskRequest
|
|
5042
|
+
* @returns CreateQualityCheckTaskResponse
|
|
5043
|
+
*/
|
|
5044
|
+
async createQualityCheckTask(workspaceId, request) {
|
|
5045
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5046
|
+
let headers = {};
|
|
5047
|
+
return await this.createQualityCheckTaskWithOptions(workspaceId, request, headers, runtime);
|
|
5048
|
+
}
|
|
4317
5049
|
/**
|
|
4318
5050
|
* 删除文档
|
|
4319
5051
|
*
|
|
@@ -4878,6 +5610,48 @@ class Client extends openapi_client_1.default {
|
|
|
4878
5610
|
let headers = {};
|
|
4879
5611
|
return await this.getParseResultWithOptions(workspaceId, request, headers, runtime);
|
|
4880
5612
|
}
|
|
5613
|
+
/**
|
|
5614
|
+
* 获取异步任务的结果
|
|
5615
|
+
*
|
|
5616
|
+
* @param request - GetQualityCheckTaskResultRequest
|
|
5617
|
+
* @param headers - map
|
|
5618
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5619
|
+
* @returns GetQualityCheckTaskResultResponse
|
|
5620
|
+
*/
|
|
5621
|
+
async getQualityCheckTaskResultWithOptions(workspaceId, request, headers, runtime) {
|
|
5622
|
+
tea_util_1.default.validateModel(request);
|
|
5623
|
+
let query = {};
|
|
5624
|
+
if (!tea_util_1.default.isUnset(request.taskId)) {
|
|
5625
|
+
query["taskId"] = request.taskId;
|
|
5626
|
+
}
|
|
5627
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
5628
|
+
headers: headers,
|
|
5629
|
+
query: openapi_util_1.default.query(query),
|
|
5630
|
+
});
|
|
5631
|
+
let params = new $OpenApi.Params({
|
|
5632
|
+
action: "GetQualityCheckTaskResult",
|
|
5633
|
+
version: "2024-06-28",
|
|
5634
|
+
protocol: "HTTPS",
|
|
5635
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/qualitycheck/task/query`,
|
|
5636
|
+
method: "GET",
|
|
5637
|
+
authType: "AK",
|
|
5638
|
+
style: "ROA",
|
|
5639
|
+
reqBodyType: "json",
|
|
5640
|
+
bodyType: "json",
|
|
5641
|
+
});
|
|
5642
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetQualityCheckTaskResultResponse({}));
|
|
5643
|
+
}
|
|
5644
|
+
/**
|
|
5645
|
+
* 获取异步任务的结果
|
|
5646
|
+
*
|
|
5647
|
+
* @param request - GetQualityCheckTaskResultRequest
|
|
5648
|
+
* @returns GetQualityCheckTaskResultResponse
|
|
5649
|
+
*/
|
|
5650
|
+
async getQualityCheckTaskResult(workspaceId, request) {
|
|
5651
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
5652
|
+
let headers = {};
|
|
5653
|
+
return await this.getQualityCheckTaskResultWithOptions(workspaceId, request, headers, runtime);
|
|
5654
|
+
}
|
|
4881
5655
|
/**
|
|
4882
5656
|
* 获取财报总结任务结果
|
|
4883
5657
|
*
|