@alicloud/dianjin20240628 1.0.1 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +479 -0
- package/dist/client.js +475 -3
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +951 -131
package/dist/client.js
CHANGED
|
@@ -26,9 +26,9 @@ 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.UpdateLibraryRequestIndexSetting = exports.UpdateLibraryRequestIndexSettingVectorIndexSetting = exports.UpdateLibraryRequestIndexSettingTextIndexSetting = exports.UpdateLibraryRequestIndexSettingRecallStrategy = exports.UpdateLibraryRequestIndexSettingQueryEnhancer = exports.UpdateLibraryRequestIndexSettingModelConfig = exports.UpdateLibraryRequestIndexSettingChunkStrategy = 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 = void 0;
|
|
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;
|
|
32
32
|
// This file is auto-generated, don't edit it
|
|
33
33
|
/**
|
|
34
34
|
*/
|
|
@@ -655,6 +655,78 @@ class GetFilterDocumentListResponse extends $tea.Model {
|
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
exports.GetFilterDocumentListResponse = GetFilterDocumentListResponse;
|
|
658
|
+
class GetHistoryListByBizTypeRequest extends $tea.Model {
|
|
659
|
+
static names() {
|
|
660
|
+
return {
|
|
661
|
+
bizId: 'bizId',
|
|
662
|
+
bizType: 'bizType',
|
|
663
|
+
page: 'page',
|
|
664
|
+
pageSize: 'pageSize',
|
|
665
|
+
};
|
|
666
|
+
}
|
|
667
|
+
static types() {
|
|
668
|
+
return {
|
|
669
|
+
bizId: 'string',
|
|
670
|
+
bizType: 'string',
|
|
671
|
+
page: 'number',
|
|
672
|
+
pageSize: 'number',
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
constructor(map) {
|
|
676
|
+
super(map);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
exports.GetHistoryListByBizTypeRequest = GetHistoryListByBizTypeRequest;
|
|
680
|
+
class GetHistoryListByBizTypeResponseBody extends $tea.Model {
|
|
681
|
+
static names() {
|
|
682
|
+
return {
|
|
683
|
+
cost: 'cost',
|
|
684
|
+
data: 'data',
|
|
685
|
+
dataType: 'dataType',
|
|
686
|
+
errCode: 'errCode',
|
|
687
|
+
message: 'message',
|
|
688
|
+
requestId: 'requestId',
|
|
689
|
+
success: 'success',
|
|
690
|
+
time: 'time',
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
static types() {
|
|
694
|
+
return {
|
|
695
|
+
cost: 'number',
|
|
696
|
+
data: GetHistoryListByBizTypeResponseBodyData,
|
|
697
|
+
dataType: 'string',
|
|
698
|
+
errCode: 'string',
|
|
699
|
+
message: 'string',
|
|
700
|
+
requestId: 'string',
|
|
701
|
+
success: 'boolean',
|
|
702
|
+
time: 'string',
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
constructor(map) {
|
|
706
|
+
super(map);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
exports.GetHistoryListByBizTypeResponseBody = GetHistoryListByBizTypeResponseBody;
|
|
710
|
+
class GetHistoryListByBizTypeResponse extends $tea.Model {
|
|
711
|
+
static names() {
|
|
712
|
+
return {
|
|
713
|
+
headers: 'headers',
|
|
714
|
+
statusCode: 'statusCode',
|
|
715
|
+
body: 'body',
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
static types() {
|
|
719
|
+
return {
|
|
720
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
721
|
+
statusCode: 'number',
|
|
722
|
+
body: GetHistoryListByBizTypeResponseBody,
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
constructor(map) {
|
|
726
|
+
super(map);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
exports.GetHistoryListByBizTypeResponse = GetHistoryListByBizTypeResponse;
|
|
658
730
|
class GetLibraryRequest extends $tea.Model {
|
|
659
731
|
static names() {
|
|
660
732
|
return {
|
|
@@ -1207,6 +1279,106 @@ class RunChatResultGenerationResponse extends $tea.Model {
|
|
|
1207
1279
|
}
|
|
1208
1280
|
}
|
|
1209
1281
|
exports.RunChatResultGenerationResponse = RunChatResultGenerationResponse;
|
|
1282
|
+
class RunLibraryChatGenerationRequest extends $tea.Model {
|
|
1283
|
+
static names() {
|
|
1284
|
+
return {
|
|
1285
|
+
docIdList: 'docIdList',
|
|
1286
|
+
enableFollowUp: 'enableFollowUp',
|
|
1287
|
+
enableMultiQuery: 'enableMultiQuery',
|
|
1288
|
+
enableOpenQa: 'enableOpenQa',
|
|
1289
|
+
followUpLlm: 'followUpLlm',
|
|
1290
|
+
libraryId: 'libraryId',
|
|
1291
|
+
llmType: 'llmType',
|
|
1292
|
+
multiQueryLlm: 'multiQueryLlm',
|
|
1293
|
+
query: 'query',
|
|
1294
|
+
queryCriteria: 'queryCriteria',
|
|
1295
|
+
rerankType: 'rerankType',
|
|
1296
|
+
sessionId: 'sessionId',
|
|
1297
|
+
stream: 'stream',
|
|
1298
|
+
subQueryList: 'subQueryList',
|
|
1299
|
+
textSearchParameter: 'textSearchParameter',
|
|
1300
|
+
topK: 'topK',
|
|
1301
|
+
vectorSearchParameter: 'vectorSearchParameter',
|
|
1302
|
+
withDocumentReference: 'withDocumentReference',
|
|
1303
|
+
};
|
|
1304
|
+
}
|
|
1305
|
+
static types() {
|
|
1306
|
+
return {
|
|
1307
|
+
docIdList: { 'type': 'array', 'itemType': 'string' },
|
|
1308
|
+
enableFollowUp: 'boolean',
|
|
1309
|
+
enableMultiQuery: 'boolean',
|
|
1310
|
+
enableOpenQa: 'boolean',
|
|
1311
|
+
followUpLlm: 'string',
|
|
1312
|
+
libraryId: 'string',
|
|
1313
|
+
llmType: 'string',
|
|
1314
|
+
multiQueryLlm: 'string',
|
|
1315
|
+
query: 'string',
|
|
1316
|
+
queryCriteria: RunLibraryChatGenerationRequestQueryCriteria,
|
|
1317
|
+
rerankType: 'string',
|
|
1318
|
+
sessionId: 'string',
|
|
1319
|
+
stream: 'boolean',
|
|
1320
|
+
subQueryList: { 'type': 'array', 'itemType': 'string' },
|
|
1321
|
+
textSearchParameter: RunLibraryChatGenerationRequestTextSearchParameter,
|
|
1322
|
+
topK: 'number',
|
|
1323
|
+
vectorSearchParameter: RunLibraryChatGenerationRequestVectorSearchParameter,
|
|
1324
|
+
withDocumentReference: 'boolean',
|
|
1325
|
+
};
|
|
1326
|
+
}
|
|
1327
|
+
constructor(map) {
|
|
1328
|
+
super(map);
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
exports.RunLibraryChatGenerationRequest = RunLibraryChatGenerationRequest;
|
|
1332
|
+
class RunLibraryChatGenerationResponseBody extends $tea.Model {
|
|
1333
|
+
static names() {
|
|
1334
|
+
return {
|
|
1335
|
+
cost: 'cost',
|
|
1336
|
+
data: 'data',
|
|
1337
|
+
dataType: 'dataType',
|
|
1338
|
+
errCode: 'errCode',
|
|
1339
|
+
message: 'message',
|
|
1340
|
+
requestId: 'requestId',
|
|
1341
|
+
success: 'success',
|
|
1342
|
+
time: 'time',
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1345
|
+
static types() {
|
|
1346
|
+
return {
|
|
1347
|
+
cost: 'number',
|
|
1348
|
+
data: 'any',
|
|
1349
|
+
dataType: 'string',
|
|
1350
|
+
errCode: 'string',
|
|
1351
|
+
message: 'string',
|
|
1352
|
+
requestId: 'string',
|
|
1353
|
+
success: 'boolean',
|
|
1354
|
+
time: 'string',
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
constructor(map) {
|
|
1358
|
+
super(map);
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
exports.RunLibraryChatGenerationResponseBody = RunLibraryChatGenerationResponseBody;
|
|
1362
|
+
class RunLibraryChatGenerationResponse extends $tea.Model {
|
|
1363
|
+
static names() {
|
|
1364
|
+
return {
|
|
1365
|
+
headers: 'headers',
|
|
1366
|
+
statusCode: 'statusCode',
|
|
1367
|
+
body: 'body',
|
|
1368
|
+
};
|
|
1369
|
+
}
|
|
1370
|
+
static types() {
|
|
1371
|
+
return {
|
|
1372
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1373
|
+
statusCode: 'number',
|
|
1374
|
+
body: RunLibraryChatGenerationResponseBody,
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1377
|
+
constructor(map) {
|
|
1378
|
+
super(map);
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
exports.RunLibraryChatGenerationResponse = RunLibraryChatGenerationResponse;
|
|
1210
1382
|
class UpdateDocumentRequest extends $tea.Model {
|
|
1211
1383
|
static names() {
|
|
1212
1384
|
return {
|
|
@@ -1909,6 +2081,66 @@ class GetFilterDocumentListResponseBodyData extends $tea.Model {
|
|
|
1909
2081
|
}
|
|
1910
2082
|
}
|
|
1911
2083
|
exports.GetFilterDocumentListResponseBodyData = GetFilterDocumentListResponseBodyData;
|
|
2084
|
+
class GetHistoryListByBizTypeResponseBodyDataRecords extends $tea.Model {
|
|
2085
|
+
static names() {
|
|
2086
|
+
return {
|
|
2087
|
+
bizId: 'bizId',
|
|
2088
|
+
bizType: 'bizType',
|
|
2089
|
+
extraMessage: 'extraMessage',
|
|
2090
|
+
gmtCreate: 'gmtCreate',
|
|
2091
|
+
gmtModified: 'gmtModified',
|
|
2092
|
+
id: 'id',
|
|
2093
|
+
llmAnswer: 'llmAnswer',
|
|
2094
|
+
llmPrompt: 'llmPrompt',
|
|
2095
|
+
llmType: 'llmType',
|
|
2096
|
+
sessionId: 'sessionId',
|
|
2097
|
+
userQuery: 'userQuery',
|
|
2098
|
+
};
|
|
2099
|
+
}
|
|
2100
|
+
static types() {
|
|
2101
|
+
return {
|
|
2102
|
+
bizId: 'string',
|
|
2103
|
+
bizType: 'string',
|
|
2104
|
+
extraMessage: 'any',
|
|
2105
|
+
gmtCreate: 'string',
|
|
2106
|
+
gmtModified: 'string',
|
|
2107
|
+
id: 'number',
|
|
2108
|
+
llmAnswer: 'string',
|
|
2109
|
+
llmPrompt: 'string',
|
|
2110
|
+
llmType: 'string',
|
|
2111
|
+
sessionId: 'string',
|
|
2112
|
+
userQuery: 'string',
|
|
2113
|
+
};
|
|
2114
|
+
}
|
|
2115
|
+
constructor(map) {
|
|
2116
|
+
super(map);
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
exports.GetHistoryListByBizTypeResponseBodyDataRecords = GetHistoryListByBizTypeResponseBodyDataRecords;
|
|
2120
|
+
class GetHistoryListByBizTypeResponseBodyData extends $tea.Model {
|
|
2121
|
+
static names() {
|
|
2122
|
+
return {
|
|
2123
|
+
currentPage: 'currentPage',
|
|
2124
|
+
pageSize: 'pageSize',
|
|
2125
|
+
records: 'records',
|
|
2126
|
+
totalPages: 'totalPages',
|
|
2127
|
+
totalRecords: 'totalRecords',
|
|
2128
|
+
};
|
|
2129
|
+
}
|
|
2130
|
+
static types() {
|
|
2131
|
+
return {
|
|
2132
|
+
currentPage: 'number',
|
|
2133
|
+
pageSize: 'number',
|
|
2134
|
+
records: { 'type': 'array', 'itemType': GetHistoryListByBizTypeResponseBodyDataRecords },
|
|
2135
|
+
totalPages: 'number',
|
|
2136
|
+
totalRecords: 'number',
|
|
2137
|
+
};
|
|
2138
|
+
}
|
|
2139
|
+
constructor(map) {
|
|
2140
|
+
super(map);
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
exports.GetHistoryListByBizTypeResponseBodyData = GetHistoryListByBizTypeResponseBodyData;
|
|
1912
2144
|
class GetLibraryResponseBodyDataIndexSettingChunkStrategy extends $tea.Model {
|
|
1913
2145
|
static names() {
|
|
1914
2146
|
return {
|
|
@@ -2903,6 +3135,102 @@ class RunChatResultGenerationResponseBodyUsage extends $tea.Model {
|
|
|
2903
3135
|
}
|
|
2904
3136
|
}
|
|
2905
3137
|
exports.RunChatResultGenerationResponseBodyUsage = RunChatResultGenerationResponseBodyUsage;
|
|
3138
|
+
class RunLibraryChatGenerationRequestQueryCriteriaAnd extends $tea.Model {
|
|
3139
|
+
static names() {
|
|
3140
|
+
return {
|
|
3141
|
+
boost: 'boost',
|
|
3142
|
+
key: 'key',
|
|
3143
|
+
operator: 'operator',
|
|
3144
|
+
value: 'value',
|
|
3145
|
+
};
|
|
3146
|
+
}
|
|
3147
|
+
static types() {
|
|
3148
|
+
return {
|
|
3149
|
+
boost: 'number',
|
|
3150
|
+
key: 'string',
|
|
3151
|
+
operator: 'string',
|
|
3152
|
+
value: 'string',
|
|
3153
|
+
};
|
|
3154
|
+
}
|
|
3155
|
+
constructor(map) {
|
|
3156
|
+
super(map);
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
exports.RunLibraryChatGenerationRequestQueryCriteriaAnd = RunLibraryChatGenerationRequestQueryCriteriaAnd;
|
|
3160
|
+
class RunLibraryChatGenerationRequestQueryCriteriaOr extends $tea.Model {
|
|
3161
|
+
static names() {
|
|
3162
|
+
return {
|
|
3163
|
+
boost: 'boost',
|
|
3164
|
+
key: 'key',
|
|
3165
|
+
operator: 'operator',
|
|
3166
|
+
value: 'value',
|
|
3167
|
+
};
|
|
3168
|
+
}
|
|
3169
|
+
static types() {
|
|
3170
|
+
return {
|
|
3171
|
+
boost: 'number',
|
|
3172
|
+
key: 'string',
|
|
3173
|
+
operator: 'string',
|
|
3174
|
+
value: 'string',
|
|
3175
|
+
};
|
|
3176
|
+
}
|
|
3177
|
+
constructor(map) {
|
|
3178
|
+
super(map);
|
|
3179
|
+
}
|
|
3180
|
+
}
|
|
3181
|
+
exports.RunLibraryChatGenerationRequestQueryCriteriaOr = RunLibraryChatGenerationRequestQueryCriteriaOr;
|
|
3182
|
+
class RunLibraryChatGenerationRequestQueryCriteria extends $tea.Model {
|
|
3183
|
+
static names() {
|
|
3184
|
+
return {
|
|
3185
|
+
and: 'and',
|
|
3186
|
+
or: 'or',
|
|
3187
|
+
};
|
|
3188
|
+
}
|
|
3189
|
+
static types() {
|
|
3190
|
+
return {
|
|
3191
|
+
and: { 'type': 'array', 'itemType': RunLibraryChatGenerationRequestQueryCriteriaAnd },
|
|
3192
|
+
or: { 'type': 'array', 'itemType': RunLibraryChatGenerationRequestQueryCriteriaOr },
|
|
3193
|
+
};
|
|
3194
|
+
}
|
|
3195
|
+
constructor(map) {
|
|
3196
|
+
super(map);
|
|
3197
|
+
}
|
|
3198
|
+
}
|
|
3199
|
+
exports.RunLibraryChatGenerationRequestQueryCriteria = RunLibraryChatGenerationRequestQueryCriteria;
|
|
3200
|
+
class RunLibraryChatGenerationRequestTextSearchParameter extends $tea.Model {
|
|
3201
|
+
static names() {
|
|
3202
|
+
return {
|
|
3203
|
+
limit: 'limit',
|
|
3204
|
+
searchAnalyzerType: 'searchAnalyzerType',
|
|
3205
|
+
};
|
|
3206
|
+
}
|
|
3207
|
+
static types() {
|
|
3208
|
+
return {
|
|
3209
|
+
limit: 'number',
|
|
3210
|
+
searchAnalyzerType: 'string',
|
|
3211
|
+
};
|
|
3212
|
+
}
|
|
3213
|
+
constructor(map) {
|
|
3214
|
+
super(map);
|
|
3215
|
+
}
|
|
3216
|
+
}
|
|
3217
|
+
exports.RunLibraryChatGenerationRequestTextSearchParameter = RunLibraryChatGenerationRequestTextSearchParameter;
|
|
3218
|
+
class RunLibraryChatGenerationRequestVectorSearchParameter extends $tea.Model {
|
|
3219
|
+
static names() {
|
|
3220
|
+
return {
|
|
3221
|
+
limit: 'limit',
|
|
3222
|
+
};
|
|
3223
|
+
}
|
|
3224
|
+
static types() {
|
|
3225
|
+
return {
|
|
3226
|
+
limit: 'number',
|
|
3227
|
+
};
|
|
3228
|
+
}
|
|
3229
|
+
constructor(map) {
|
|
3230
|
+
super(map);
|
|
3231
|
+
}
|
|
3232
|
+
}
|
|
3233
|
+
exports.RunLibraryChatGenerationRequestVectorSearchParameter = RunLibraryChatGenerationRequestVectorSearchParameter;
|
|
2906
3234
|
class UpdateLibraryRequestIndexSettingChunkStrategy extends $tea.Model {
|
|
2907
3235
|
static names() {
|
|
2908
3236
|
return {
|
|
@@ -3528,6 +3856,57 @@ class Client extends openapi_client_1.default {
|
|
|
3528
3856
|
let headers = {};
|
|
3529
3857
|
return await this.getFilterDocumentListWithOptions(workspaceId, request, headers, runtime);
|
|
3530
3858
|
}
|
|
3859
|
+
/**
|
|
3860
|
+
* 分页查询文档库列表
|
|
3861
|
+
*
|
|
3862
|
+
* @param request - GetHistoryListByBizTypeRequest
|
|
3863
|
+
* @param headers - map
|
|
3864
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3865
|
+
* @returns GetHistoryListByBizTypeResponse
|
|
3866
|
+
*/
|
|
3867
|
+
async getHistoryListByBizTypeWithOptions(workspaceId, request, headers, runtime) {
|
|
3868
|
+
tea_util_1.default.validateModel(request);
|
|
3869
|
+
let query = {};
|
|
3870
|
+
if (!tea_util_1.default.isUnset(request.bizId)) {
|
|
3871
|
+
query["bizId"] = request.bizId;
|
|
3872
|
+
}
|
|
3873
|
+
if (!tea_util_1.default.isUnset(request.bizType)) {
|
|
3874
|
+
query["bizType"] = request.bizType;
|
|
3875
|
+
}
|
|
3876
|
+
if (!tea_util_1.default.isUnset(request.page)) {
|
|
3877
|
+
query["page"] = request.page;
|
|
3878
|
+
}
|
|
3879
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
3880
|
+
query["pageSize"] = request.pageSize;
|
|
3881
|
+
}
|
|
3882
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3883
|
+
headers: headers,
|
|
3884
|
+
query: openapi_util_1.default.query(query),
|
|
3885
|
+
});
|
|
3886
|
+
let params = new $OpenApi.Params({
|
|
3887
|
+
action: "GetHistoryListByBizType",
|
|
3888
|
+
version: "2024-06-28",
|
|
3889
|
+
protocol: "HTTPS",
|
|
3890
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/history/list`,
|
|
3891
|
+
method: "GET",
|
|
3892
|
+
authType: "AK",
|
|
3893
|
+
style: "ROA",
|
|
3894
|
+
reqBodyType: "json",
|
|
3895
|
+
bodyType: "json",
|
|
3896
|
+
});
|
|
3897
|
+
return $tea.cast(await this.callApi(params, req, runtime), new GetHistoryListByBizTypeResponse({}));
|
|
3898
|
+
}
|
|
3899
|
+
/**
|
|
3900
|
+
* 分页查询文档库列表
|
|
3901
|
+
*
|
|
3902
|
+
* @param request - GetHistoryListByBizTypeRequest
|
|
3903
|
+
* @returns GetHistoryListByBizTypeResponse
|
|
3904
|
+
*/
|
|
3905
|
+
async getHistoryListByBizType(workspaceId, request) {
|
|
3906
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3907
|
+
let headers = {};
|
|
3908
|
+
return await this.getHistoryListByBizTypeWithOptions(workspaceId, request, headers, runtime);
|
|
3909
|
+
}
|
|
3531
3910
|
/**
|
|
3532
3911
|
* 获取文档库配置详情
|
|
3533
3912
|
*
|
|
@@ -3900,6 +4279,99 @@ class Client extends openapi_client_1.default {
|
|
|
3900
4279
|
let headers = {};
|
|
3901
4280
|
return await this.runChatResultGenerationWithOptions(workspaceId, request, headers, runtime);
|
|
3902
4281
|
}
|
|
4282
|
+
/**
|
|
4283
|
+
* 获取生成式对话结果
|
|
4284
|
+
*
|
|
4285
|
+
* @param request - RunLibraryChatGenerationRequest
|
|
4286
|
+
* @param headers - map
|
|
4287
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4288
|
+
* @returns RunLibraryChatGenerationResponse
|
|
4289
|
+
*/
|
|
4290
|
+
async runLibraryChatGenerationWithOptions(workspaceId, request, headers, runtime) {
|
|
4291
|
+
tea_util_1.default.validateModel(request);
|
|
4292
|
+
let body = {};
|
|
4293
|
+
if (!tea_util_1.default.isUnset(request.docIdList)) {
|
|
4294
|
+
body["docIdList"] = request.docIdList;
|
|
4295
|
+
}
|
|
4296
|
+
if (!tea_util_1.default.isUnset(request.enableFollowUp)) {
|
|
4297
|
+
body["enableFollowUp"] = request.enableFollowUp;
|
|
4298
|
+
}
|
|
4299
|
+
if (!tea_util_1.default.isUnset(request.enableMultiQuery)) {
|
|
4300
|
+
body["enableMultiQuery"] = request.enableMultiQuery;
|
|
4301
|
+
}
|
|
4302
|
+
if (!tea_util_1.default.isUnset(request.enableOpenQa)) {
|
|
4303
|
+
body["enableOpenQa"] = request.enableOpenQa;
|
|
4304
|
+
}
|
|
4305
|
+
if (!tea_util_1.default.isUnset(request.followUpLlm)) {
|
|
4306
|
+
body["followUpLlm"] = request.followUpLlm;
|
|
4307
|
+
}
|
|
4308
|
+
if (!tea_util_1.default.isUnset(request.libraryId)) {
|
|
4309
|
+
body["libraryId"] = request.libraryId;
|
|
4310
|
+
}
|
|
4311
|
+
if (!tea_util_1.default.isUnset(request.llmType)) {
|
|
4312
|
+
body["llmType"] = request.llmType;
|
|
4313
|
+
}
|
|
4314
|
+
if (!tea_util_1.default.isUnset(request.multiQueryLlm)) {
|
|
4315
|
+
body["multiQueryLlm"] = request.multiQueryLlm;
|
|
4316
|
+
}
|
|
4317
|
+
if (!tea_util_1.default.isUnset(request.query)) {
|
|
4318
|
+
body["query"] = request.query;
|
|
4319
|
+
}
|
|
4320
|
+
if (!tea_util_1.default.isUnset(request.queryCriteria)) {
|
|
4321
|
+
body["queryCriteria"] = request.queryCriteria;
|
|
4322
|
+
}
|
|
4323
|
+
if (!tea_util_1.default.isUnset(request.rerankType)) {
|
|
4324
|
+
body["rerankType"] = request.rerankType;
|
|
4325
|
+
}
|
|
4326
|
+
if (!tea_util_1.default.isUnset(request.sessionId)) {
|
|
4327
|
+
body["sessionId"] = request.sessionId;
|
|
4328
|
+
}
|
|
4329
|
+
if (!tea_util_1.default.isUnset(request.stream)) {
|
|
4330
|
+
body["stream"] = request.stream;
|
|
4331
|
+
}
|
|
4332
|
+
if (!tea_util_1.default.isUnset(request.subQueryList)) {
|
|
4333
|
+
body["subQueryList"] = request.subQueryList;
|
|
4334
|
+
}
|
|
4335
|
+
if (!tea_util_1.default.isUnset(request.textSearchParameter)) {
|
|
4336
|
+
body["textSearchParameter"] = request.textSearchParameter;
|
|
4337
|
+
}
|
|
4338
|
+
if (!tea_util_1.default.isUnset(request.topK)) {
|
|
4339
|
+
body["topK"] = request.topK;
|
|
4340
|
+
}
|
|
4341
|
+
if (!tea_util_1.default.isUnset(request.vectorSearchParameter)) {
|
|
4342
|
+
body["vectorSearchParameter"] = request.vectorSearchParameter;
|
|
4343
|
+
}
|
|
4344
|
+
if (!tea_util_1.default.isUnset(request.withDocumentReference)) {
|
|
4345
|
+
body["withDocumentReference"] = request.withDocumentReference;
|
|
4346
|
+
}
|
|
4347
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
4348
|
+
headers: headers,
|
|
4349
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
4350
|
+
});
|
|
4351
|
+
let params = new $OpenApi.Params({
|
|
4352
|
+
action: "RunLibraryChatGeneration",
|
|
4353
|
+
version: "2024-06-28",
|
|
4354
|
+
protocol: "HTTPS",
|
|
4355
|
+
pathname: `/${openapi_util_1.default.getEncodeParam(workspaceId)}/api/run/library/chat/generation`,
|
|
4356
|
+
method: "POST",
|
|
4357
|
+
authType: "AK",
|
|
4358
|
+
style: "ROA",
|
|
4359
|
+
reqBodyType: "json",
|
|
4360
|
+
bodyType: "json",
|
|
4361
|
+
});
|
|
4362
|
+
return $tea.cast(await this.callApi(params, req, runtime), new RunLibraryChatGenerationResponse({}));
|
|
4363
|
+
}
|
|
4364
|
+
/**
|
|
4365
|
+
* 获取生成式对话结果
|
|
4366
|
+
*
|
|
4367
|
+
* @param request - RunLibraryChatGenerationRequest
|
|
4368
|
+
* @returns RunLibraryChatGenerationResponse
|
|
4369
|
+
*/
|
|
4370
|
+
async runLibraryChatGeneration(workspaceId, request) {
|
|
4371
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4372
|
+
let headers = {};
|
|
4373
|
+
return await this.runLibraryChatGenerationWithOptions(workspaceId, request, headers, runtime);
|
|
4374
|
+
}
|
|
3903
4375
|
/**
|
|
3904
4376
|
* 更新文档
|
|
3905
4377
|
*
|