@alicloud/dianjin20240628 1.1.1 → 1.3.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.js CHANGED
@@ -26,9 +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.RecallDocumentResponse = exports.RecallDocumentResponseBody = exports.RecallDocumentRequest = exports.ReIndexResponse = exports.ReIndexResponseBody = exports.ReIndexRequest = exports.PreviewDocumentResponse = exports.PreviewDocumentResponseBody = exports.PreviewDocumentRequest = exports.InvokePluginResponse = exports.InvokePluginResponseBody = exports.InvokePluginRequest = exports.GetParseResultResponse = exports.GetParseResultResponseBody = exports.GetParseResultRequest = exports.GetLibraryListResponse = exports.GetLibraryListResponseBody = exports.GetLibraryListRequest = 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.DeleteLibraryResponse = exports.DeleteLibraryResponseBody = exports.DeleteLibraryRequest = exports.DeleteDocumentResponse = exports.DeleteDocumentResponseBody = exports.DeleteDocumentRequest = exports.CreatePredefinedDocumentResponse = exports.CreatePredefinedDocumentResponseBody = exports.CreatePredefinedDocumentRequest = exports.CreateLibraryResponse = exports.CreateLibraryResponseBody = exports.CreateLibraryRequest = void 0;
30
- 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.CreatePredefinedDocumentRequestChunks = exports.CreateLibraryRequestIndexSetting = exports.CreateLibraryRequestIndexSettingVectorIndexSetting = exports.CreateLibraryRequestIndexSettingTextIndexSetting = exports.CreateLibraryRequestIndexSettingRecallStrategy = exports.CreateLibraryRequestIndexSettingQueryEnhancer = exports.CreateLibraryRequestIndexSettingModelConfig = exports.CreateLibraryRequestIndexSettingChunkStrategy = 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 = void 0;
31
- 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.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.GetParseResultResponseBodyData = exports.GetLibraryListResponseBodyData = exports.GetLibraryListResponseBodyDataRecords = exports.GetLibraryListResponseBodyDataRecordsIndexSetting = void 0;
29
+ exports.GetSummaryTaskResultResponse = exports.GetSummaryTaskResultResponseBody = exports.GetSummaryTaskResultRequest = exports.GetParseResultResponse = exports.GetParseResultResponseBody = exports.GetParseResultRequest = exports.GetLibraryListResponse = exports.GetLibraryListResponseBody = exports.GetLibraryListRequest = 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.CreatePredefinedDocumentResponse = exports.CreatePredefinedDocumentResponseBody = exports.CreatePredefinedDocumentRequest = exports.CreatePdfTranslateTaskResponse = exports.CreatePdfTranslateTaskResponseBody = exports.CreatePdfTranslateTaskRequest = exports.CreateLibraryResponse = exports.CreateLibraryResponseBody = exports.CreateLibraryRequest = exports.CreateFinReportSummaryTaskResponse = exports.CreateFinReportSummaryTaskResponseBody = exports.CreateFinReportSummaryTaskRequest = void 0;
30
+ exports.GetDocumentListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyData = exports.GetDocumentChunkListResponseBodyDataRecords = exports.GetDocumentChunkListResponseBodyDataRecordsPos = exports.GetAppConfigResponseBodyData = exports.CreatePredefinedDocumentRequestChunks = exports.CreateLibraryRequestIndexSetting = exports.CreateLibraryRequestIndexSettingVectorIndexSetting = exports.CreateLibraryRequestIndexSettingTextIndexSetting = exports.CreateLibraryRequestIndexSettingRecallStrategy = exports.CreateLibraryRequestIndexSettingQueryEnhancer = exports.CreateLibraryRequestIndexSettingModelConfig = exports.CreateLibraryRequestIndexSettingChunkStrategy = 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 = void 0;
31
+ 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 = exports.GetSummaryTaskResultResponseBodyDataUsage = exports.GetSummaryTaskResultResponseBodyDataChoices = exports.GetSummaryTaskResultResponseBodyDataChoicesMessage = 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 = 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 = void 0;
32
33
  // This file is auto-generated, don't edit it
33
34
  /**
34
35
  */
@@ -41,6 +42,86 @@ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $Ope
41
42
  const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
42
43
  const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
43
44
  const $tea = __importStar(require("@alicloud/tea-typescript"));
45
+ class CreateFinReportSummaryTaskRequest extends $tea.Model {
46
+ static names() {
47
+ return {
48
+ docId: 'docId',
49
+ enableTable: 'enableTable',
50
+ endPage: 'endPage',
51
+ instruction: 'instruction',
52
+ libraryId: 'libraryId',
53
+ modelId: 'modelId',
54
+ startPage: 'startPage',
55
+ taskType: 'taskType',
56
+ };
57
+ }
58
+ static types() {
59
+ return {
60
+ docId: 'string',
61
+ enableTable: 'boolean',
62
+ endPage: 'number',
63
+ instruction: 'string',
64
+ libraryId: 'string',
65
+ modelId: 'string',
66
+ startPage: 'number',
67
+ taskType: 'string',
68
+ };
69
+ }
70
+ constructor(map) {
71
+ super(map);
72
+ }
73
+ }
74
+ exports.CreateFinReportSummaryTaskRequest = CreateFinReportSummaryTaskRequest;
75
+ class CreateFinReportSummaryTaskResponseBody extends $tea.Model {
76
+ static names() {
77
+ return {
78
+ cost: 'cost',
79
+ data: 'data',
80
+ dataType: 'dataType',
81
+ errCode: 'errCode',
82
+ message: 'message',
83
+ requestId: 'requestId',
84
+ success: 'success',
85
+ time: 'time',
86
+ };
87
+ }
88
+ static types() {
89
+ return {
90
+ cost: 'number',
91
+ data: 'string',
92
+ dataType: 'string',
93
+ errCode: 'string',
94
+ message: 'string',
95
+ requestId: 'string',
96
+ success: 'boolean',
97
+ time: 'string',
98
+ };
99
+ }
100
+ constructor(map) {
101
+ super(map);
102
+ }
103
+ }
104
+ exports.CreateFinReportSummaryTaskResponseBody = CreateFinReportSummaryTaskResponseBody;
105
+ class CreateFinReportSummaryTaskResponse extends $tea.Model {
106
+ static names() {
107
+ return {
108
+ headers: 'headers',
109
+ statusCode: 'statusCode',
110
+ body: 'body',
111
+ };
112
+ }
113
+ static types() {
114
+ return {
115
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
116
+ statusCode: 'number',
117
+ body: CreateFinReportSummaryTaskResponseBody,
118
+ };
119
+ }
120
+ constructor(map) {
121
+ super(map);
122
+ }
123
+ }
124
+ exports.CreateFinReportSummaryTaskResponse = CreateFinReportSummaryTaskResponse;
44
125
  class CreateLibraryRequest extends $tea.Model {
45
126
  static names() {
46
127
  return {
@@ -111,6 +192,80 @@ class CreateLibraryResponse extends $tea.Model {
111
192
  }
112
193
  }
113
194
  exports.CreateLibraryResponse = CreateLibraryResponse;
195
+ class CreatePdfTranslateTaskRequest extends $tea.Model {
196
+ static names() {
197
+ return {
198
+ docId: 'docId',
199
+ knowledge: 'knowledge',
200
+ libraryId: 'libraryId',
201
+ modelId: 'modelId',
202
+ translateTo: 'translateTo',
203
+ };
204
+ }
205
+ static types() {
206
+ return {
207
+ docId: 'string',
208
+ knowledge: 'string',
209
+ libraryId: 'string',
210
+ modelId: 'string',
211
+ translateTo: 'string',
212
+ };
213
+ }
214
+ constructor(map) {
215
+ super(map);
216
+ }
217
+ }
218
+ exports.CreatePdfTranslateTaskRequest = CreatePdfTranslateTaskRequest;
219
+ class CreatePdfTranslateTaskResponseBody extends $tea.Model {
220
+ static names() {
221
+ return {
222
+ cost: 'cost',
223
+ data: 'data',
224
+ dataType: 'dataType',
225
+ errCode: 'errCode',
226
+ message: 'message',
227
+ requestId: 'requestId',
228
+ success: 'success',
229
+ time: 'time',
230
+ };
231
+ }
232
+ static types() {
233
+ return {
234
+ cost: 'number',
235
+ data: 'string',
236
+ dataType: 'string',
237
+ errCode: 'string',
238
+ message: 'string',
239
+ requestId: 'string',
240
+ success: 'boolean',
241
+ time: 'string',
242
+ };
243
+ }
244
+ constructor(map) {
245
+ super(map);
246
+ }
247
+ }
248
+ exports.CreatePdfTranslateTaskResponseBody = CreatePdfTranslateTaskResponseBody;
249
+ class CreatePdfTranslateTaskResponse extends $tea.Model {
250
+ static names() {
251
+ return {
252
+ headers: 'headers',
253
+ statusCode: 'statusCode',
254
+ body: 'body',
255
+ };
256
+ }
257
+ static types() {
258
+ return {
259
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
260
+ statusCode: 'number',
261
+ body: CreatePdfTranslateTaskResponseBody,
262
+ };
263
+ }
264
+ constructor(map) {
265
+ super(map);
266
+ }
267
+ }
268
+ exports.CreatePdfTranslateTaskResponse = CreatePdfTranslateTaskResponse;
114
269
  class CreatePredefinedDocumentRequest extends $tea.Model {
115
270
  static names() {
116
271
  return {
@@ -309,6 +464,72 @@ class DeleteLibraryResponse extends $tea.Model {
309
464
  }
310
465
  }
311
466
  exports.DeleteLibraryResponse = DeleteLibraryResponse;
467
+ class EvictTaskRequest extends $tea.Model {
468
+ static names() {
469
+ return {
470
+ taskId: 'taskId',
471
+ };
472
+ }
473
+ static types() {
474
+ return {
475
+ taskId: 'string',
476
+ };
477
+ }
478
+ constructor(map) {
479
+ super(map);
480
+ }
481
+ }
482
+ exports.EvictTaskRequest = EvictTaskRequest;
483
+ class EvictTaskResponseBody extends $tea.Model {
484
+ static names() {
485
+ return {
486
+ cost: 'cost',
487
+ data: 'data',
488
+ dataType: 'dataType',
489
+ errCode: 'errCode',
490
+ message: 'message',
491
+ requestId: 'requestId',
492
+ success: 'success',
493
+ time: 'time',
494
+ };
495
+ }
496
+ static types() {
497
+ return {
498
+ cost: 'number',
499
+ data: 'string',
500
+ dataType: 'string',
501
+ errCode: 'string',
502
+ message: 'string',
503
+ requestId: 'string',
504
+ success: 'boolean',
505
+ time: 'string',
506
+ };
507
+ }
508
+ constructor(map) {
509
+ super(map);
510
+ }
511
+ }
512
+ exports.EvictTaskResponseBody = EvictTaskResponseBody;
513
+ class EvictTaskResponse extends $tea.Model {
514
+ static names() {
515
+ return {
516
+ headers: 'headers',
517
+ statusCode: 'statusCode',
518
+ body: 'body',
519
+ };
520
+ }
521
+ static types() {
522
+ return {
523
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
524
+ statusCode: 'number',
525
+ body: EvictTaskResponseBody,
526
+ };
527
+ }
528
+ constructor(map) {
529
+ super(map);
530
+ }
531
+ }
532
+ exports.EvictTaskResponse = EvictTaskResponse;
312
533
  class GetAppConfigResponseBody extends $tea.Model {
313
534
  static names() {
314
535
  return {
@@ -719,31 +940,235 @@ class GetHistoryListByBizTypeResponse extends $tea.Model {
719
940
  return {
720
941
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
721
942
  statusCode: 'number',
722
- body: GetHistoryListByBizTypeResponseBody,
943
+ body: GetHistoryListByBizTypeResponseBody,
944
+ };
945
+ }
946
+ constructor(map) {
947
+ super(map);
948
+ }
949
+ }
950
+ exports.GetHistoryListByBizTypeResponse = GetHistoryListByBizTypeResponse;
951
+ class GetLibraryRequest extends $tea.Model {
952
+ static names() {
953
+ return {
954
+ libraryId: 'libraryId',
955
+ };
956
+ }
957
+ static types() {
958
+ return {
959
+ libraryId: 'string',
960
+ };
961
+ }
962
+ constructor(map) {
963
+ super(map);
964
+ }
965
+ }
966
+ exports.GetLibraryRequest = GetLibraryRequest;
967
+ class GetLibraryResponseBody extends $tea.Model {
968
+ static names() {
969
+ return {
970
+ cost: 'cost',
971
+ data: 'data',
972
+ dataType: 'dataType',
973
+ errCode: 'errCode',
974
+ message: 'message',
975
+ requestId: 'requestId',
976
+ success: 'success',
977
+ time: 'time',
978
+ };
979
+ }
980
+ static types() {
981
+ return {
982
+ cost: 'number',
983
+ data: GetLibraryResponseBodyData,
984
+ dataType: 'string',
985
+ errCode: 'string',
986
+ message: 'string',
987
+ requestId: 'string',
988
+ success: 'boolean',
989
+ time: 'string',
990
+ };
991
+ }
992
+ constructor(map) {
993
+ super(map);
994
+ }
995
+ }
996
+ exports.GetLibraryResponseBody = GetLibraryResponseBody;
997
+ class GetLibraryResponse extends $tea.Model {
998
+ static names() {
999
+ return {
1000
+ headers: 'headers',
1001
+ statusCode: 'statusCode',
1002
+ body: 'body',
1003
+ };
1004
+ }
1005
+ static types() {
1006
+ return {
1007
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1008
+ statusCode: 'number',
1009
+ body: GetLibraryResponseBody,
1010
+ };
1011
+ }
1012
+ constructor(map) {
1013
+ super(map);
1014
+ }
1015
+ }
1016
+ exports.GetLibraryResponse = GetLibraryResponse;
1017
+ class GetLibraryListRequest extends $tea.Model {
1018
+ static names() {
1019
+ return {
1020
+ page: 'page',
1021
+ pageSize: 'pageSize',
1022
+ query: 'query',
1023
+ };
1024
+ }
1025
+ static types() {
1026
+ return {
1027
+ page: 'number',
1028
+ pageSize: 'number',
1029
+ query: 'string',
1030
+ };
1031
+ }
1032
+ constructor(map) {
1033
+ super(map);
1034
+ }
1035
+ }
1036
+ exports.GetLibraryListRequest = GetLibraryListRequest;
1037
+ class GetLibraryListResponseBody extends $tea.Model {
1038
+ static names() {
1039
+ return {
1040
+ cost: 'cost',
1041
+ data: 'data',
1042
+ dataType: 'dataType',
1043
+ errCode: 'errCode',
1044
+ message: 'message',
1045
+ requestId: 'requestId',
1046
+ success: 'success',
1047
+ time: 'time',
1048
+ };
1049
+ }
1050
+ static types() {
1051
+ return {
1052
+ cost: 'number',
1053
+ data: GetLibraryListResponseBodyData,
1054
+ dataType: 'string',
1055
+ errCode: 'string',
1056
+ message: 'string',
1057
+ requestId: 'string',
1058
+ success: 'boolean',
1059
+ time: 'string',
1060
+ };
1061
+ }
1062
+ constructor(map) {
1063
+ super(map);
1064
+ }
1065
+ }
1066
+ exports.GetLibraryListResponseBody = GetLibraryListResponseBody;
1067
+ class GetLibraryListResponse extends $tea.Model {
1068
+ static names() {
1069
+ return {
1070
+ headers: 'headers',
1071
+ statusCode: 'statusCode',
1072
+ body: 'body',
1073
+ };
1074
+ }
1075
+ static types() {
1076
+ return {
1077
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1078
+ statusCode: 'number',
1079
+ body: GetLibraryListResponseBody,
1080
+ };
1081
+ }
1082
+ constructor(map) {
1083
+ super(map);
1084
+ }
1085
+ }
1086
+ exports.GetLibraryListResponse = GetLibraryListResponse;
1087
+ class GetParseResultRequest extends $tea.Model {
1088
+ static names() {
1089
+ return {
1090
+ docId: 'docId',
1091
+ libraryId: 'libraryId',
1092
+ };
1093
+ }
1094
+ static types() {
1095
+ return {
1096
+ docId: 'string',
1097
+ libraryId: 'string',
1098
+ };
1099
+ }
1100
+ constructor(map) {
1101
+ super(map);
1102
+ }
1103
+ }
1104
+ exports.GetParseResultRequest = GetParseResultRequest;
1105
+ class GetParseResultResponseBody extends $tea.Model {
1106
+ static names() {
1107
+ return {
1108
+ cost: 'cost',
1109
+ data: 'data',
1110
+ dataType: 'dataType',
1111
+ errCode: 'errCode',
1112
+ message: 'message',
1113
+ requestId: 'requestId',
1114
+ success: 'success',
1115
+ time: 'time',
1116
+ };
1117
+ }
1118
+ static types() {
1119
+ return {
1120
+ cost: 'number',
1121
+ data: GetParseResultResponseBodyData,
1122
+ dataType: 'string',
1123
+ errCode: 'string',
1124
+ message: 'string',
1125
+ requestId: 'string',
1126
+ success: 'boolean',
1127
+ time: 'string',
1128
+ };
1129
+ }
1130
+ constructor(map) {
1131
+ super(map);
1132
+ }
1133
+ }
1134
+ exports.GetParseResultResponseBody = GetParseResultResponseBody;
1135
+ class GetParseResultResponse extends $tea.Model {
1136
+ static names() {
1137
+ return {
1138
+ headers: 'headers',
1139
+ statusCode: 'statusCode',
1140
+ body: 'body',
1141
+ };
1142
+ }
1143
+ static types() {
1144
+ return {
1145
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1146
+ statusCode: 'number',
1147
+ body: GetParseResultResponseBody,
723
1148
  };
724
1149
  }
725
1150
  constructor(map) {
726
1151
  super(map);
727
1152
  }
728
1153
  }
729
- exports.GetHistoryListByBizTypeResponse = GetHistoryListByBizTypeResponse;
730
- class GetLibraryRequest extends $tea.Model {
1154
+ exports.GetParseResultResponse = GetParseResultResponse;
1155
+ class GetSummaryTaskResultRequest extends $tea.Model {
731
1156
  static names() {
732
1157
  return {
733
- libraryId: 'libraryId',
1158
+ taskId: 'taskId',
734
1159
  };
735
1160
  }
736
1161
  static types() {
737
1162
  return {
738
- libraryId: 'string',
1163
+ taskId: 'string',
739
1164
  };
740
1165
  }
741
1166
  constructor(map) {
742
1167
  super(map);
743
1168
  }
744
1169
  }
745
- exports.GetLibraryRequest = GetLibraryRequest;
746
- class GetLibraryResponseBody extends $tea.Model {
1170
+ exports.GetSummaryTaskResultRequest = GetSummaryTaskResultRequest;
1171
+ class GetSummaryTaskResultResponseBody extends $tea.Model {
747
1172
  static names() {
748
1173
  return {
749
1174
  cost: 'cost',
@@ -759,7 +1184,7 @@ class GetLibraryResponseBody extends $tea.Model {
759
1184
  static types() {
760
1185
  return {
761
1186
  cost: 'number',
762
- data: GetLibraryResponseBodyData,
1187
+ data: GetSummaryTaskResultResponseBodyData,
763
1188
  dataType: 'string',
764
1189
  errCode: 'string',
765
1190
  message: 'string',
@@ -772,8 +1197,8 @@ class GetLibraryResponseBody extends $tea.Model {
772
1197
  super(map);
773
1198
  }
774
1199
  }
775
- exports.GetLibraryResponseBody = GetLibraryResponseBody;
776
- class GetLibraryResponse extends $tea.Model {
1200
+ exports.GetSummaryTaskResultResponseBody = GetSummaryTaskResultResponseBody;
1201
+ class GetSummaryTaskResultResponse extends $tea.Model {
777
1202
  static names() {
778
1203
  return {
779
1204
  headers: 'headers',
@@ -785,35 +1210,31 @@ class GetLibraryResponse extends $tea.Model {
785
1210
  return {
786
1211
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
787
1212
  statusCode: 'number',
788
- body: GetLibraryResponseBody,
1213
+ body: GetSummaryTaskResultResponseBody,
789
1214
  };
790
1215
  }
791
1216
  constructor(map) {
792
1217
  super(map);
793
1218
  }
794
1219
  }
795
- exports.GetLibraryResponse = GetLibraryResponse;
796
- class GetLibraryListRequest extends $tea.Model {
1220
+ exports.GetSummaryTaskResultResponse = GetSummaryTaskResultResponse;
1221
+ class GetTaskResultRequest extends $tea.Model {
797
1222
  static names() {
798
1223
  return {
799
- page: 'page',
800
- pageSize: 'pageSize',
801
- query: 'query',
1224
+ taskId: 'taskId',
802
1225
  };
803
1226
  }
804
1227
  static types() {
805
1228
  return {
806
- page: 'number',
807
- pageSize: 'number',
808
- query: 'string',
1229
+ taskId: 'string',
809
1230
  };
810
1231
  }
811
1232
  constructor(map) {
812
1233
  super(map);
813
1234
  }
814
1235
  }
815
- exports.GetLibraryListRequest = GetLibraryListRequest;
816
- class GetLibraryListResponseBody extends $tea.Model {
1236
+ exports.GetTaskResultRequest = GetTaskResultRequest;
1237
+ class GetTaskResultResponseBody extends $tea.Model {
817
1238
  static names() {
818
1239
  return {
819
1240
  cost: 'cost',
@@ -829,7 +1250,7 @@ class GetLibraryListResponseBody extends $tea.Model {
829
1250
  static types() {
830
1251
  return {
831
1252
  cost: 'number',
832
- data: GetLibraryListResponseBodyData,
1253
+ data: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
833
1254
  dataType: 'string',
834
1255
  errCode: 'string',
835
1256
  message: 'string',
@@ -842,8 +1263,8 @@ class GetLibraryListResponseBody extends $tea.Model {
842
1263
  super(map);
843
1264
  }
844
1265
  }
845
- exports.GetLibraryListResponseBody = GetLibraryListResponseBody;
846
- class GetLibraryListResponse extends $tea.Model {
1266
+ exports.GetTaskResultResponseBody = GetTaskResultResponseBody;
1267
+ class GetTaskResultResponse extends $tea.Model {
847
1268
  static names() {
848
1269
  return {
849
1270
  headers: 'headers',
@@ -855,33 +1276,31 @@ class GetLibraryListResponse extends $tea.Model {
855
1276
  return {
856
1277
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
857
1278
  statusCode: 'number',
858
- body: GetLibraryListResponseBody,
1279
+ body: GetTaskResultResponseBody,
859
1280
  };
860
1281
  }
861
1282
  constructor(map) {
862
1283
  super(map);
863
1284
  }
864
1285
  }
865
- exports.GetLibraryListResponse = GetLibraryListResponse;
866
- class GetParseResultRequest extends $tea.Model {
1286
+ exports.GetTaskResultResponse = GetTaskResultResponse;
1287
+ class GetTaskStatusRequest extends $tea.Model {
867
1288
  static names() {
868
1289
  return {
869
- docId: 'docId',
870
- libraryId: 'libraryId',
1290
+ taskId: 'taskId',
871
1291
  };
872
1292
  }
873
1293
  static types() {
874
1294
  return {
875
- docId: 'string',
876
- libraryId: 'string',
1295
+ taskId: 'string',
877
1296
  };
878
1297
  }
879
1298
  constructor(map) {
880
1299
  super(map);
881
1300
  }
882
1301
  }
883
- exports.GetParseResultRequest = GetParseResultRequest;
884
- class GetParseResultResponseBody extends $tea.Model {
1302
+ exports.GetTaskStatusRequest = GetTaskStatusRequest;
1303
+ class GetTaskStatusResponseBody extends $tea.Model {
885
1304
  static names() {
886
1305
  return {
887
1306
  cost: 'cost',
@@ -897,7 +1316,7 @@ class GetParseResultResponseBody extends $tea.Model {
897
1316
  static types() {
898
1317
  return {
899
1318
  cost: 'number',
900
- data: GetParseResultResponseBodyData,
1319
+ data: 'string',
901
1320
  dataType: 'string',
902
1321
  errCode: 'string',
903
1322
  message: 'string',
@@ -910,8 +1329,8 @@ class GetParseResultResponseBody extends $tea.Model {
910
1329
  super(map);
911
1330
  }
912
1331
  }
913
- exports.GetParseResultResponseBody = GetParseResultResponseBody;
914
- class GetParseResultResponse extends $tea.Model {
1332
+ exports.GetTaskStatusResponseBody = GetTaskStatusResponseBody;
1333
+ class GetTaskStatusResponse extends $tea.Model {
915
1334
  static names() {
916
1335
  return {
917
1336
  headers: 'headers',
@@ -923,14 +1342,14 @@ class GetParseResultResponse extends $tea.Model {
923
1342
  return {
924
1343
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
925
1344
  statusCode: 'number',
926
- body: GetParseResultResponseBody,
1345
+ body: GetTaskStatusResponseBody,
927
1346
  };
928
1347
  }
929
1348
  constructor(map) {
930
1349
  super(map);
931
1350
  }
932
1351
  }
933
- exports.GetParseResultResponse = GetParseResultResponse;
1352
+ exports.GetTaskStatusResponse = GetTaskStatusResponse;
934
1353
  class InvokePluginRequest extends $tea.Model {
935
1354
  static names() {
936
1355
  return {
@@ -1203,6 +1622,86 @@ class RecallDocumentResponse extends $tea.Model {
1203
1622
  }
1204
1623
  }
1205
1624
  exports.RecallDocumentResponse = RecallDocumentResponse;
1625
+ class RecognizeIntentionRequest extends $tea.Model {
1626
+ static names() {
1627
+ return {
1628
+ analysis: 'analysis',
1629
+ bizType: 'bizType',
1630
+ conversation: 'conversation',
1631
+ globalIntentionList: 'globalIntentionList',
1632
+ hierarchicalIntentionList: 'hierarchicalIntentionList',
1633
+ intentionList: 'intentionList',
1634
+ opType: 'opType',
1635
+ recommend: 'recommend',
1636
+ };
1637
+ }
1638
+ static types() {
1639
+ return {
1640
+ analysis: 'boolean',
1641
+ bizType: 'string',
1642
+ conversation: 'string',
1643
+ globalIntentionList: { 'type': 'array', 'itemType': RecognizeIntentionRequestGlobalIntentionList },
1644
+ hierarchicalIntentionList: { 'type': 'array', 'itemType': RecognizeIntentionRequestHierarchicalIntentionList },
1645
+ intentionList: { 'type': 'array', 'itemType': RecognizeIntentionRequestIntentionList },
1646
+ opType: 'string',
1647
+ recommend: 'boolean',
1648
+ };
1649
+ }
1650
+ constructor(map) {
1651
+ super(map);
1652
+ }
1653
+ }
1654
+ exports.RecognizeIntentionRequest = RecognizeIntentionRequest;
1655
+ class RecognizeIntentionResponseBody extends $tea.Model {
1656
+ static names() {
1657
+ return {
1658
+ cost: 'cost',
1659
+ data: 'data',
1660
+ dataType: 'dataType',
1661
+ errCode: 'errCode',
1662
+ message: 'message',
1663
+ requestId: 'requestId',
1664
+ success: 'success',
1665
+ time: 'time',
1666
+ };
1667
+ }
1668
+ static types() {
1669
+ return {
1670
+ cost: 'number',
1671
+ data: RecognizeIntentionResponseBodyData,
1672
+ dataType: 'string',
1673
+ errCode: 'string',
1674
+ message: 'string',
1675
+ requestId: 'string',
1676
+ success: 'boolean',
1677
+ time: 'string',
1678
+ };
1679
+ }
1680
+ constructor(map) {
1681
+ super(map);
1682
+ }
1683
+ }
1684
+ exports.RecognizeIntentionResponseBody = RecognizeIntentionResponseBody;
1685
+ class RecognizeIntentionResponse extends $tea.Model {
1686
+ static names() {
1687
+ return {
1688
+ headers: 'headers',
1689
+ statusCode: 'statusCode',
1690
+ body: 'body',
1691
+ };
1692
+ }
1693
+ static types() {
1694
+ return {
1695
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1696
+ statusCode: 'number',
1697
+ body: RecognizeIntentionResponseBody,
1698
+ };
1699
+ }
1700
+ constructor(map) {
1701
+ super(map);
1702
+ }
1703
+ }
1704
+ exports.RecognizeIntentionResponse = RecognizeIntentionResponse;
1206
1705
  class RunChatResultGenerationRequest extends $tea.Model {
1207
1706
  static names() {
1208
1707
  return {
@@ -2593,6 +3092,100 @@ class GetParseResultResponseBodyData extends $tea.Model {
2593
3092
  }
2594
3093
  }
2595
3094
  exports.GetParseResultResponseBodyData = GetParseResultResponseBodyData;
3095
+ class GetSummaryTaskResultResponseBodyDataChoicesMessage extends $tea.Model {
3096
+ static names() {
3097
+ return {
3098
+ content: 'content',
3099
+ role: 'role',
3100
+ toolCalls: 'toolCalls',
3101
+ };
3102
+ }
3103
+ static types() {
3104
+ return {
3105
+ content: 'string',
3106
+ role: 'string',
3107
+ toolCalls: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
3108
+ };
3109
+ }
3110
+ constructor(map) {
3111
+ super(map);
3112
+ }
3113
+ }
3114
+ exports.GetSummaryTaskResultResponseBodyDataChoicesMessage = GetSummaryTaskResultResponseBodyDataChoicesMessage;
3115
+ class GetSummaryTaskResultResponseBodyDataChoices extends $tea.Model {
3116
+ static names() {
3117
+ return {
3118
+ finishReason: 'finishReason',
3119
+ index: 'index',
3120
+ message: 'message',
3121
+ };
3122
+ }
3123
+ static types() {
3124
+ return {
3125
+ finishReason: 'string',
3126
+ index: 'number',
3127
+ message: GetSummaryTaskResultResponseBodyDataChoicesMessage,
3128
+ };
3129
+ }
3130
+ constructor(map) {
3131
+ super(map);
3132
+ }
3133
+ }
3134
+ exports.GetSummaryTaskResultResponseBodyDataChoices = GetSummaryTaskResultResponseBodyDataChoices;
3135
+ class GetSummaryTaskResultResponseBodyDataUsage extends $tea.Model {
3136
+ static names() {
3137
+ return {
3138
+ imageCount: 'imageCount',
3139
+ imageTokens: 'imageTokens',
3140
+ inputTokens: 'inputTokens',
3141
+ outputTokens: 'outputTokens',
3142
+ totalTokens: 'totalTokens',
3143
+ };
3144
+ }
3145
+ static types() {
3146
+ return {
3147
+ imageCount: 'number',
3148
+ imageTokens: 'number',
3149
+ inputTokens: 'number',
3150
+ outputTokens: 'number',
3151
+ totalTokens: 'number',
3152
+ };
3153
+ }
3154
+ constructor(map) {
3155
+ super(map);
3156
+ }
3157
+ }
3158
+ exports.GetSummaryTaskResultResponseBodyDataUsage = GetSummaryTaskResultResponseBodyDataUsage;
3159
+ class GetSummaryTaskResultResponseBodyData extends $tea.Model {
3160
+ static names() {
3161
+ return {
3162
+ choices: 'choices',
3163
+ created: 'created',
3164
+ id: 'id',
3165
+ modelId: 'modelId',
3166
+ requestId: 'requestId',
3167
+ time: 'time',
3168
+ totalTokens: 'totalTokens',
3169
+ usage: 'usage',
3170
+ };
3171
+ }
3172
+ static types() {
3173
+ return {
3174
+ choices: { 'type': 'array', 'itemType': GetSummaryTaskResultResponseBodyDataChoices },
3175
+ created: 'number',
3176
+ id: 'string',
3177
+ modelId: 'string',
3178
+ requestId: 'string',
3179
+ time: 'string',
3180
+ totalTokens: 'number',
3181
+ usage: GetSummaryTaskResultResponseBodyDataUsage,
3182
+ };
3183
+ }
3184
+ constructor(map) {
3185
+ super(map);
3186
+ }
3187
+ }
3188
+ exports.GetSummaryTaskResultResponseBodyData = GetSummaryTaskResultResponseBodyData;
2596
3189
  class PreviewDocumentResponseBodyData extends $tea.Model {
2597
3190
  static names() {
2598
3191
  return {
@@ -2960,41 +3553,125 @@ class RecallDocumentResponseBodyDataVectorChunkList extends $tea.Model {
2960
3553
  super(map);
2961
3554
  }
2962
3555
  }
2963
- exports.RecallDocumentResponseBodyDataVectorChunkList = RecallDocumentResponseBodyDataVectorChunkList;
2964
- class RecallDocumentResponseBodyData extends $tea.Model {
3556
+ exports.RecallDocumentResponseBodyDataVectorChunkList = RecallDocumentResponseBodyDataVectorChunkList;
3557
+ class RecallDocumentResponseBodyData extends $tea.Model {
3558
+ static names() {
3559
+ return {
3560
+ chunkList: 'chunkList',
3561
+ chunkPartList: 'chunkPartList',
3562
+ chunkTextList: 'chunkTextList',
3563
+ documents: 'documents',
3564
+ embeddingElapsedMs: 'embeddingElapsedMs',
3565
+ textChunkList: 'textChunkList',
3566
+ textSearchElapsedMs: 'textSearchElapsedMs',
3567
+ totalElapsedMs: 'totalElapsedMs',
3568
+ vectorChunkList: 'vectorChunkList',
3569
+ vectorSearchElapsedMs: 'vectorSearchElapsedMs',
3570
+ };
3571
+ }
3572
+ static types() {
3573
+ return {
3574
+ chunkList: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataChunkList },
3575
+ chunkPartList: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataChunkPartList },
3576
+ chunkTextList: { 'type': 'array', 'itemType': 'string' },
3577
+ documents: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataDocuments },
3578
+ embeddingElapsedMs: 'number',
3579
+ textChunkList: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataTextChunkList },
3580
+ textSearchElapsedMs: 'number',
3581
+ totalElapsedMs: 'number',
3582
+ vectorChunkList: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataVectorChunkList },
3583
+ vectorSearchElapsedMs: 'number',
3584
+ };
3585
+ }
3586
+ constructor(map) {
3587
+ super(map);
3588
+ }
3589
+ }
3590
+ exports.RecallDocumentResponseBodyData = RecallDocumentResponseBodyData;
3591
+ class RecognizeIntentionRequestGlobalIntentionList extends $tea.Model {
3592
+ static names() {
3593
+ return {
3594
+ description: 'description',
3595
+ intention: 'intention',
3596
+ intentionCode: 'intentionCode',
3597
+ };
3598
+ }
3599
+ static types() {
3600
+ return {
3601
+ description: 'string',
3602
+ intention: 'string',
3603
+ intentionCode: 'string',
3604
+ };
3605
+ }
3606
+ constructor(map) {
3607
+ super(map);
3608
+ }
3609
+ }
3610
+ exports.RecognizeIntentionRequestGlobalIntentionList = RecognizeIntentionRequestGlobalIntentionList;
3611
+ class RecognizeIntentionRequestHierarchicalIntentionList extends $tea.Model {
3612
+ static names() {
3613
+ return {
3614
+ description: 'description',
3615
+ intention: 'intention',
3616
+ intentionCode: 'intentionCode',
3617
+ };
3618
+ }
3619
+ static types() {
3620
+ return {
3621
+ description: 'string',
3622
+ intention: 'string',
3623
+ intentionCode: 'string',
3624
+ };
3625
+ }
3626
+ constructor(map) {
3627
+ super(map);
3628
+ }
3629
+ }
3630
+ exports.RecognizeIntentionRequestHierarchicalIntentionList = RecognizeIntentionRequestHierarchicalIntentionList;
3631
+ class RecognizeIntentionRequestIntentionList extends $tea.Model {
3632
+ static names() {
3633
+ return {
3634
+ description: 'description',
3635
+ intention: 'intention',
3636
+ intentionCode: 'intentionCode',
3637
+ };
3638
+ }
3639
+ static types() {
3640
+ return {
3641
+ description: 'string',
3642
+ intention: 'string',
3643
+ intentionCode: 'string',
3644
+ };
3645
+ }
3646
+ constructor(map) {
3647
+ super(map);
3648
+ }
3649
+ }
3650
+ exports.RecognizeIntentionRequestIntentionList = RecognizeIntentionRequestIntentionList;
3651
+ class RecognizeIntentionResponseBodyData extends $tea.Model {
2965
3652
  static names() {
2966
3653
  return {
2967
- chunkList: 'chunkList',
2968
- chunkPartList: 'chunkPartList',
2969
- chunkTextList: 'chunkTextList',
2970
- documents: 'documents',
2971
- embeddingElapsedMs: 'embeddingElapsedMs',
2972
- textChunkList: 'textChunkList',
2973
- textSearchElapsedMs: 'textSearchElapsedMs',
2974
- totalElapsedMs: 'totalElapsedMs',
2975
- vectorChunkList: 'vectorChunkList',
2976
- vectorSearchElapsedMs: 'vectorSearchElapsedMs',
3654
+ analysisProcess: 'analysisProcess',
3655
+ intentionCode: 'intentionCode',
3656
+ intentionName: 'intentionName',
3657
+ recommendIntention: 'recommendIntention',
3658
+ recommendScript: 'recommendScript',
2977
3659
  };
2978
3660
  }
2979
3661
  static types() {
2980
3662
  return {
2981
- chunkList: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataChunkList },
2982
- chunkPartList: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataChunkPartList },
2983
- chunkTextList: { 'type': 'array', 'itemType': 'string' },
2984
- documents: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataDocuments },
2985
- embeddingElapsedMs: 'number',
2986
- textChunkList: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataTextChunkList },
2987
- textSearchElapsedMs: 'number',
2988
- totalElapsedMs: 'number',
2989
- vectorChunkList: { 'type': 'array', 'itemType': RecallDocumentResponseBodyDataVectorChunkList },
2990
- vectorSearchElapsedMs: 'number',
3663
+ analysisProcess: 'string',
3664
+ intentionCode: 'string',
3665
+ intentionName: 'string',
3666
+ recommendIntention: 'string',
3667
+ recommendScript: 'string',
2991
3668
  };
2992
3669
  }
2993
3670
  constructor(map) {
2994
3671
  super(map);
2995
3672
  }
2996
3673
  }
2997
- exports.RecallDocumentResponseBodyData = RecallDocumentResponseBodyData;
3674
+ exports.RecognizeIntentionResponseBodyData = RecognizeIntentionResponseBodyData;
2998
3675
  class RunChatResultGenerationRequestMessages extends $tea.Model {
2999
3676
  static names() {
3000
3677
  return {
@@ -3421,6 +4098,69 @@ class Client extends openapi_client_1.default {
3421
4098
  }
3422
4099
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
3423
4100
  }
4101
+ /**
4102
+ * 创建财报总结任务
4103
+ *
4104
+ * @param request - CreateFinReportSummaryTaskRequest
4105
+ * @param headers - map
4106
+ * @param runtime - runtime options for this request RuntimeOptions
4107
+ * @returns CreateFinReportSummaryTaskResponse
4108
+ */
4109
+ async createFinReportSummaryTaskWithOptions(workspaceId, request, headers, runtime) {
4110
+ tea_util_1.default.validateModel(request);
4111
+ let body = {};
4112
+ if (!tea_util_1.default.isUnset(request.docId)) {
4113
+ body["docId"] = request.docId;
4114
+ }
4115
+ if (!tea_util_1.default.isUnset(request.enableTable)) {
4116
+ body["enableTable"] = request.enableTable;
4117
+ }
4118
+ if (!tea_util_1.default.isUnset(request.endPage)) {
4119
+ body["endPage"] = request.endPage;
4120
+ }
4121
+ if (!tea_util_1.default.isUnset(request.instruction)) {
4122
+ body["instruction"] = request.instruction;
4123
+ }
4124
+ if (!tea_util_1.default.isUnset(request.libraryId)) {
4125
+ body["libraryId"] = request.libraryId;
4126
+ }
4127
+ if (!tea_util_1.default.isUnset(request.modelId)) {
4128
+ body["modelId"] = request.modelId;
4129
+ }
4130
+ if (!tea_util_1.default.isUnset(request.startPage)) {
4131
+ body["startPage"] = request.startPage;
4132
+ }
4133
+ if (!tea_util_1.default.isUnset(request.taskType)) {
4134
+ body["taskType"] = request.taskType;
4135
+ }
4136
+ let req = new $OpenApi.OpenApiRequest({
4137
+ headers: headers,
4138
+ body: openapi_util_1.default.parseToMap(body),
4139
+ });
4140
+ let params = new $OpenApi.Params({
4141
+ action: "CreateFinReportSummaryTask",
4142
+ version: "2024-06-28",
4143
+ protocol: "HTTPS",
4144
+ pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/summary`,
4145
+ method: "POST",
4146
+ authType: "AK",
4147
+ style: "ROA",
4148
+ reqBodyType: "json",
4149
+ bodyType: "json",
4150
+ });
4151
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateFinReportSummaryTaskResponse({}));
4152
+ }
4153
+ /**
4154
+ * 创建财报总结任务
4155
+ *
4156
+ * @param request - CreateFinReportSummaryTaskRequest
4157
+ * @returns CreateFinReportSummaryTaskResponse
4158
+ */
4159
+ async createFinReportSummaryTask(workspaceId, request) {
4160
+ let runtime = new $Util.RuntimeOptions({});
4161
+ let headers = {};
4162
+ return await this.createFinReportSummaryTaskWithOptions(workspaceId, request, headers, runtime);
4163
+ }
3424
4164
  /**
3425
4165
  * 创建文档库
3426
4166
  *
@@ -3469,6 +4209,60 @@ class Client extends openapi_client_1.default {
3469
4209
  let headers = {};
3470
4210
  return await this.createLibraryWithOptions(workspaceId, request, headers, runtime);
3471
4211
  }
4212
+ /**
4213
+ * 创建PDF翻译任务
4214
+ *
4215
+ * @param request - CreatePdfTranslateTaskRequest
4216
+ * @param headers - map
4217
+ * @param runtime - runtime options for this request RuntimeOptions
4218
+ * @returns CreatePdfTranslateTaskResponse
4219
+ */
4220
+ async createPdfTranslateTaskWithOptions(workspaceId, request, headers, runtime) {
4221
+ tea_util_1.default.validateModel(request);
4222
+ let body = {};
4223
+ if (!tea_util_1.default.isUnset(request.docId)) {
4224
+ body["docId"] = request.docId;
4225
+ }
4226
+ if (!tea_util_1.default.isUnset(request.knowledge)) {
4227
+ body["knowledge"] = request.knowledge;
4228
+ }
4229
+ if (!tea_util_1.default.isUnset(request.libraryId)) {
4230
+ body["libraryId"] = request.libraryId;
4231
+ }
4232
+ if (!tea_util_1.default.isUnset(request.modelId)) {
4233
+ body["modelId"] = request.modelId;
4234
+ }
4235
+ if (!tea_util_1.default.isUnset(request.translateTo)) {
4236
+ body["translateTo"] = request.translateTo;
4237
+ }
4238
+ let req = new $OpenApi.OpenApiRequest({
4239
+ headers: headers,
4240
+ body: openapi_util_1.default.parseToMap(body),
4241
+ });
4242
+ let params = new $OpenApi.Params({
4243
+ action: "CreatePdfTranslateTask",
4244
+ version: "2024-06-28",
4245
+ protocol: "HTTPS",
4246
+ pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/pdfTranslate`,
4247
+ method: "POST",
4248
+ authType: "AK",
4249
+ style: "ROA",
4250
+ reqBodyType: "json",
4251
+ bodyType: "json",
4252
+ });
4253
+ return $tea.cast(await this.callApi(params, req, runtime), new CreatePdfTranslateTaskResponse({}));
4254
+ }
4255
+ /**
4256
+ * 创建PDF翻译任务
4257
+ *
4258
+ * @param request - CreatePdfTranslateTaskRequest
4259
+ * @returns CreatePdfTranslateTaskResponse
4260
+ */
4261
+ async createPdfTranslateTask(workspaceId, request) {
4262
+ let runtime = new $Util.RuntimeOptions({});
4263
+ let headers = {};
4264
+ return await this.createPdfTranslateTaskWithOptions(workspaceId, request, headers, runtime);
4265
+ }
3472
4266
  /**
3473
4267
  * 创建预定义文档
3474
4268
  *
@@ -3607,6 +4401,48 @@ class Client extends openapi_client_1.default {
3607
4401
  let headers = {};
3608
4402
  return await this.deleteLibraryWithOptions(workspaceId, request, headers, runtime);
3609
4403
  }
4404
+ /**
4405
+ * 中断任务
4406
+ *
4407
+ * @param request - EvictTaskRequest
4408
+ * @param headers - map
4409
+ * @param runtime - runtime options for this request RuntimeOptions
4410
+ * @returns EvictTaskResponse
4411
+ */
4412
+ async evictTaskWithOptions(workspaceId, request, headers, runtime) {
4413
+ tea_util_1.default.validateModel(request);
4414
+ let query = {};
4415
+ if (!tea_util_1.default.isUnset(request.taskId)) {
4416
+ query["taskId"] = request.taskId;
4417
+ }
4418
+ let req = new $OpenApi.OpenApiRequest({
4419
+ headers: headers,
4420
+ query: openapi_util_1.default.query(query),
4421
+ });
4422
+ let params = new $OpenApi.Params({
4423
+ action: "EvictTask",
4424
+ version: "2024-06-28",
4425
+ protocol: "HTTPS",
4426
+ pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/evict`,
4427
+ method: "POST",
4428
+ authType: "AK",
4429
+ style: "ROA",
4430
+ reqBodyType: "json",
4431
+ bodyType: "json",
4432
+ });
4433
+ return $tea.cast(await this.callApi(params, req, runtime), new EvictTaskResponse({}));
4434
+ }
4435
+ /**
4436
+ * 中断任务
4437
+ *
4438
+ * @param request - EvictTaskRequest
4439
+ * @returns EvictTaskResponse
4440
+ */
4441
+ async evictTask(workspaceId, request) {
4442
+ let runtime = new $Util.RuntimeOptions({});
4443
+ let headers = {};
4444
+ return await this.evictTaskWithOptions(workspaceId, request, headers, runtime);
4445
+ }
3610
4446
  /**
3611
4447
  * 获取app配置
3612
4448
  *
@@ -4042,6 +4878,132 @@ class Client extends openapi_client_1.default {
4042
4878
  let headers = {};
4043
4879
  return await this.getParseResultWithOptions(workspaceId, request, headers, runtime);
4044
4880
  }
4881
+ /**
4882
+ * 获取财报总结任务结果
4883
+ *
4884
+ * @param request - GetSummaryTaskResultRequest
4885
+ * @param headers - map
4886
+ * @param runtime - runtime options for this request RuntimeOptions
4887
+ * @returns GetSummaryTaskResultResponse
4888
+ */
4889
+ async getSummaryTaskResultWithOptions(workspaceId, request, headers, runtime) {
4890
+ tea_util_1.default.validateModel(request);
4891
+ let query = {};
4892
+ if (!tea_util_1.default.isUnset(request.taskId)) {
4893
+ query["taskId"] = request.taskId;
4894
+ }
4895
+ let req = new $OpenApi.OpenApiRequest({
4896
+ headers: headers,
4897
+ query: openapi_util_1.default.query(query),
4898
+ });
4899
+ let params = new $OpenApi.Params({
4900
+ action: "GetSummaryTaskResult",
4901
+ version: "2024-06-28",
4902
+ protocol: "HTTPS",
4903
+ pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/summary/result`,
4904
+ method: "GET",
4905
+ authType: "AK",
4906
+ style: "ROA",
4907
+ reqBodyType: "json",
4908
+ bodyType: "json",
4909
+ });
4910
+ return $tea.cast(await this.callApi(params, req, runtime), new GetSummaryTaskResultResponse({}));
4911
+ }
4912
+ /**
4913
+ * 获取财报总结任务结果
4914
+ *
4915
+ * @param request - GetSummaryTaskResultRequest
4916
+ * @returns GetSummaryTaskResultResponse
4917
+ */
4918
+ async getSummaryTaskResult(workspaceId, request) {
4919
+ let runtime = new $Util.RuntimeOptions({});
4920
+ let headers = {};
4921
+ return await this.getSummaryTaskResultWithOptions(workspaceId, request, headers, runtime);
4922
+ }
4923
+ /**
4924
+ * 获取异步任务结果
4925
+ *
4926
+ * @param request - GetTaskResultRequest
4927
+ * @param headers - map
4928
+ * @param runtime - runtime options for this request RuntimeOptions
4929
+ * @returns GetTaskResultResponse
4930
+ */
4931
+ async getTaskResultWithOptions(workspaceId, request, headers, runtime) {
4932
+ tea_util_1.default.validateModel(request);
4933
+ let query = {};
4934
+ if (!tea_util_1.default.isUnset(request.taskId)) {
4935
+ query["taskId"] = request.taskId;
4936
+ }
4937
+ let req = new $OpenApi.OpenApiRequest({
4938
+ headers: headers,
4939
+ query: openapi_util_1.default.query(query),
4940
+ });
4941
+ let params = new $OpenApi.Params({
4942
+ action: "GetTaskResult",
4943
+ version: "2024-06-28",
4944
+ protocol: "HTTPS",
4945
+ pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/result`,
4946
+ method: "GET",
4947
+ authType: "AK",
4948
+ style: "ROA",
4949
+ reqBodyType: "json",
4950
+ bodyType: "json",
4951
+ });
4952
+ return $tea.cast(await this.callApi(params, req, runtime), new GetTaskResultResponse({}));
4953
+ }
4954
+ /**
4955
+ * 获取异步任务结果
4956
+ *
4957
+ * @param request - GetTaskResultRequest
4958
+ * @returns GetTaskResultResponse
4959
+ */
4960
+ async getTaskResult(workspaceId, request) {
4961
+ let runtime = new $Util.RuntimeOptions({});
4962
+ let headers = {};
4963
+ return await this.getTaskResultWithOptions(workspaceId, request, headers, runtime);
4964
+ }
4965
+ /**
4966
+ * 获取财报总结任务结果
4967
+ *
4968
+ * @param request - GetTaskStatusRequest
4969
+ * @param headers - map
4970
+ * @param runtime - runtime options for this request RuntimeOptions
4971
+ * @returns GetTaskStatusResponse
4972
+ */
4973
+ async getTaskStatusWithOptions(workspaceId, request, headers, runtime) {
4974
+ tea_util_1.default.validateModel(request);
4975
+ let query = {};
4976
+ if (!tea_util_1.default.isUnset(request.taskId)) {
4977
+ query["taskId"] = request.taskId;
4978
+ }
4979
+ let req = new $OpenApi.OpenApiRequest({
4980
+ headers: headers,
4981
+ query: openapi_util_1.default.query(query),
4982
+ });
4983
+ let params = new $OpenApi.Params({
4984
+ action: "GetTaskStatus",
4985
+ version: "2024-06-28",
4986
+ protocol: "HTTPS",
4987
+ pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/task/status`,
4988
+ method: "GET",
4989
+ authType: "AK",
4990
+ style: "ROA",
4991
+ reqBodyType: "json",
4992
+ bodyType: "json",
4993
+ });
4994
+ return $tea.cast(await this.callApi(params, req, runtime), new GetTaskStatusResponse({}));
4995
+ }
4996
+ /**
4997
+ * 获取财报总结任务结果
4998
+ *
4999
+ * @param request - GetTaskStatusRequest
5000
+ * @returns GetTaskStatusResponse
5001
+ */
5002
+ async getTaskStatus(workspaceId, request) {
5003
+ let runtime = new $Util.RuntimeOptions({});
5004
+ let headers = {};
5005
+ return await this.getTaskStatusWithOptions(workspaceId, request, headers, runtime);
5006
+ }
4045
5007
  /**
4046
5008
  * 插件调试接口
4047
5009
  *
@@ -4172,7 +5134,7 @@ class Client extends openapi_client_1.default {
4172
5134
  return await this.reIndexWithOptions(workspaceId, request, headers, runtime);
4173
5135
  }
4174
5136
  /**
4175
- * 文档召回
5137
+ * 文档召回。
4176
5138
  *
4177
5139
  * @param request - RecallDocumentRequest
4178
5140
  * @param headers - map
@@ -4212,7 +5174,7 @@ class Client extends openapi_client_1.default {
4212
5174
  return $tea.cast(await this.callApi(params, req, runtime), new RecallDocumentResponse({}));
4213
5175
  }
4214
5176
  /**
4215
- * 文档召回
5177
+ * 文档召回。
4216
5178
  *
4217
5179
  * @param request - RecallDocumentRequest
4218
5180
  * @returns RecallDocumentResponse
@@ -4222,6 +5184,69 @@ class Client extends openapi_client_1.default {
4222
5184
  let headers = {};
4223
5185
  return await this.recallDocumentWithOptions(workspaceId, request, headers, runtime);
4224
5186
  }
5187
+ /**
5188
+ * 意图识别
5189
+ *
5190
+ * @param request - RecognizeIntentionRequest
5191
+ * @param headers - map
5192
+ * @param runtime - runtime options for this request RuntimeOptions
5193
+ * @returns RecognizeIntentionResponse
5194
+ */
5195
+ async recognizeIntentionWithOptions(workspaceId, request, headers, runtime) {
5196
+ tea_util_1.default.validateModel(request);
5197
+ let body = {};
5198
+ if (!tea_util_1.default.isUnset(request.analysis)) {
5199
+ body["analysis"] = request.analysis;
5200
+ }
5201
+ if (!tea_util_1.default.isUnset(request.bizType)) {
5202
+ body["bizType"] = request.bizType;
5203
+ }
5204
+ if (!tea_util_1.default.isUnset(request.conversation)) {
5205
+ body["conversation"] = request.conversation;
5206
+ }
5207
+ if (!tea_util_1.default.isUnset(request.globalIntentionList)) {
5208
+ body["globalIntentionList"] = request.globalIntentionList;
5209
+ }
5210
+ if (!tea_util_1.default.isUnset(request.hierarchicalIntentionList)) {
5211
+ body["hierarchicalIntentionList"] = request.hierarchicalIntentionList;
5212
+ }
5213
+ if (!tea_util_1.default.isUnset(request.intentionList)) {
5214
+ body["intentionList"] = request.intentionList;
5215
+ }
5216
+ if (!tea_util_1.default.isUnset(request.opType)) {
5217
+ body["opType"] = request.opType;
5218
+ }
5219
+ if (!tea_util_1.default.isUnset(request.recommend)) {
5220
+ body["recommend"] = request.recommend;
5221
+ }
5222
+ let req = new $OpenApi.OpenApiRequest({
5223
+ headers: headers,
5224
+ body: openapi_util_1.default.parseToMap(body),
5225
+ });
5226
+ let params = new $OpenApi.Params({
5227
+ action: "RecognizeIntention",
5228
+ version: "2024-06-28",
5229
+ protocol: "HTTPS",
5230
+ pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/recog/intent`,
5231
+ method: "POST",
5232
+ authType: "AK",
5233
+ style: "ROA",
5234
+ reqBodyType: "json",
5235
+ bodyType: "json",
5236
+ });
5237
+ return $tea.cast(await this.callApi(params, req, runtime), new RecognizeIntentionResponse({}));
5238
+ }
5239
+ /**
5240
+ * 意图识别
5241
+ *
5242
+ * @param request - RecognizeIntentionRequest
5243
+ * @returns RecognizeIntentionResponse
5244
+ */
5245
+ async recognizeIntention(workspaceId, request) {
5246
+ let runtime = new $Util.RuntimeOptions({});
5247
+ let headers = {};
5248
+ return await this.recognizeIntentionWithOptions(workspaceId, request, headers, runtime);
5249
+ }
4225
5250
  /**
4226
5251
  * 获取生成式对话结果
4227
5252
  *