@alicloud/bailian20231229 2.0.0 → 2.0.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 +103 -10
- package/dist/client.js +261 -50
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +347 -50
package/dist/client.js
CHANGED
|
@@ -601,6 +601,7 @@ class GetIndexJobStatusResponseBodyDataDocuments extends $dara.Model {
|
|
|
601
601
|
code: 'Code',
|
|
602
602
|
docId: 'DocId',
|
|
603
603
|
docName: 'DocName',
|
|
604
|
+
gmtModified: 'GmtModified',
|
|
604
605
|
message: 'Message',
|
|
605
606
|
status: 'Status',
|
|
606
607
|
};
|
|
@@ -610,6 +611,7 @@ class GetIndexJobStatusResponseBodyDataDocuments extends $dara.Model {
|
|
|
610
611
|
code: 'string',
|
|
611
612
|
docId: 'string',
|
|
612
613
|
docName: 'string',
|
|
614
|
+
gmtModified: 'number',
|
|
613
615
|
message: 'string',
|
|
614
616
|
status: 'string',
|
|
615
617
|
};
|
|
@@ -1061,6 +1063,7 @@ class ListIndexDocumentsResponseBodyDataDocuments extends $dara.Model {
|
|
|
1061
1063
|
return {
|
|
1062
1064
|
code: 'Code',
|
|
1063
1065
|
documentType: 'DocumentType',
|
|
1066
|
+
gmtModified: 'GmtModified',
|
|
1064
1067
|
id: 'Id',
|
|
1065
1068
|
message: 'Message',
|
|
1066
1069
|
name: 'Name',
|
|
@@ -1073,6 +1076,7 @@ class ListIndexDocumentsResponseBodyDataDocuments extends $dara.Model {
|
|
|
1073
1076
|
return {
|
|
1074
1077
|
code: 'string',
|
|
1075
1078
|
documentType: 'string',
|
|
1079
|
+
gmtModified: 'number',
|
|
1076
1080
|
id: 'string',
|
|
1077
1081
|
message: 'string',
|
|
1078
1082
|
name: 'string',
|
|
@@ -5537,6 +5541,8 @@ class Client extends openapi_core_1.default {
|
|
|
5537
5541
|
return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
5538
5542
|
}
|
|
5539
5543
|
/**
|
|
5544
|
+
* 添加类目
|
|
5545
|
+
*
|
|
5540
5546
|
* @param request - AddCategoryRequest
|
|
5541
5547
|
* @param headers - map
|
|
5542
5548
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -5569,9 +5575,16 @@ class Client extends openapi_core_1.default {
|
|
|
5569
5575
|
reqBodyType: "formData",
|
|
5570
5576
|
bodyType: "json",
|
|
5571
5577
|
});
|
|
5572
|
-
|
|
5578
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
5579
|
+
return $dara.cast(await this.callApi(params, req, runtime), new AddCategoryResponse({}));
|
|
5580
|
+
}
|
|
5581
|
+
else {
|
|
5582
|
+
return $dara.cast(await this.execute(params, req, runtime), new AddCategoryResponse({}));
|
|
5583
|
+
}
|
|
5573
5584
|
}
|
|
5574
5585
|
/**
|
|
5586
|
+
* 添加类目
|
|
5587
|
+
*
|
|
5575
5588
|
* @param request - AddCategoryRequest
|
|
5576
5589
|
* @returns AddCategoryResponse
|
|
5577
5590
|
*/
|
|
@@ -5633,7 +5646,12 @@ class Client extends openapi_core_1.default {
|
|
|
5633
5646
|
reqBodyType: "formData",
|
|
5634
5647
|
bodyType: "json",
|
|
5635
5648
|
});
|
|
5636
|
-
|
|
5649
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
5650
|
+
return $dara.cast(await this.callApi(params, req, runtime), new AddFileResponse({}));
|
|
5651
|
+
}
|
|
5652
|
+
else {
|
|
5653
|
+
return $dara.cast(await this.execute(params, req, runtime), new AddFileResponse({}));
|
|
5654
|
+
}
|
|
5637
5655
|
}
|
|
5638
5656
|
/**
|
|
5639
5657
|
* Imports an unstructured document stored in the temporary storage space to Data Management. You cannot use the API to import structured documents. Use the console instead.
|
|
@@ -5697,7 +5715,12 @@ class Client extends openapi_core_1.default {
|
|
|
5697
5715
|
reqBodyType: "formData",
|
|
5698
5716
|
bodyType: "json",
|
|
5699
5717
|
});
|
|
5700
|
-
|
|
5718
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
5719
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ApplyFileUploadLeaseResponse({}));
|
|
5720
|
+
}
|
|
5721
|
+
else {
|
|
5722
|
+
return $dara.cast(await this.execute(params, req, runtime), new ApplyFileUploadLeaseResponse({}));
|
|
5723
|
+
}
|
|
5701
5724
|
}
|
|
5702
5725
|
/**
|
|
5703
5726
|
* Applies for a document upload lease to upload a document.
|
|
@@ -5765,7 +5788,12 @@ class Client extends openapi_core_1.default {
|
|
|
5765
5788
|
reqBodyType: "formData",
|
|
5766
5789
|
bodyType: "json",
|
|
5767
5790
|
});
|
|
5768
|
-
|
|
5791
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
5792
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateAndPulishAgentResponse({}));
|
|
5793
|
+
}
|
|
5794
|
+
else {
|
|
5795
|
+
return $dara.cast(await this.execute(params, req, runtime), new CreateAndPulishAgentResponse({}));
|
|
5796
|
+
}
|
|
5769
5797
|
}
|
|
5770
5798
|
/**
|
|
5771
5799
|
* 创建并发布智能体应用
|
|
@@ -5883,7 +5911,12 @@ class Client extends openapi_core_1.default {
|
|
|
5883
5911
|
reqBodyType: "json",
|
|
5884
5912
|
bodyType: "json",
|
|
5885
5913
|
});
|
|
5886
|
-
|
|
5914
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
5915
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateIndexResponse({}));
|
|
5916
|
+
}
|
|
5917
|
+
else {
|
|
5918
|
+
return $dara.cast(await this.execute(params, req, runtime), new CreateIndexResponse({}));
|
|
5919
|
+
}
|
|
5887
5920
|
}
|
|
5888
5921
|
/**
|
|
5889
5922
|
* Creates an unstructured knowledge base and imports one or more parsed documents into the knowledge base. You cannot create a structured knowledge base by calling an API operation. Use the console instead.
|
|
@@ -5930,7 +5963,12 @@ class Client extends openapi_core_1.default {
|
|
|
5930
5963
|
reqBodyType: "json",
|
|
5931
5964
|
bodyType: "json",
|
|
5932
5965
|
});
|
|
5933
|
-
|
|
5966
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
5967
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateMemoryResponse({}));
|
|
5968
|
+
}
|
|
5969
|
+
else {
|
|
5970
|
+
return $dara.cast(await this.execute(params, req, runtime), new CreateMemoryResponse({}));
|
|
5971
|
+
}
|
|
5934
5972
|
}
|
|
5935
5973
|
/**
|
|
5936
5974
|
* 创建Memory
|
|
@@ -5972,7 +6010,12 @@ class Client extends openapi_core_1.default {
|
|
|
5972
6010
|
reqBodyType: "json",
|
|
5973
6011
|
bodyType: "json",
|
|
5974
6012
|
});
|
|
5975
|
-
|
|
6013
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6014
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateMemoryNodeResponse({}));
|
|
6015
|
+
}
|
|
6016
|
+
else {
|
|
6017
|
+
return $dara.cast(await this.execute(params, req, runtime), new CreateMemoryNodeResponse({}));
|
|
6018
|
+
}
|
|
5976
6019
|
}
|
|
5977
6020
|
/**
|
|
5978
6021
|
* 创建记忆Node
|
|
@@ -5986,7 +6029,7 @@ class Client extends openapi_core_1.default {
|
|
|
5986
6029
|
return await this.createMemoryNodeWithOptions(workspaceId, memoryId, request, headers, runtime);
|
|
5987
6030
|
}
|
|
5988
6031
|
/**
|
|
5989
|
-
*
|
|
6032
|
+
* Creates a prompt template.
|
|
5990
6033
|
*
|
|
5991
6034
|
* @param request - CreatePromptTemplateRequest
|
|
5992
6035
|
* @param headers - map
|
|
@@ -6017,10 +6060,15 @@ class Client extends openapi_core_1.default {
|
|
|
6017
6060
|
reqBodyType: "json",
|
|
6018
6061
|
bodyType: "json",
|
|
6019
6062
|
});
|
|
6020
|
-
|
|
6063
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6064
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreatePromptTemplateResponse({}));
|
|
6065
|
+
}
|
|
6066
|
+
else {
|
|
6067
|
+
return $dara.cast(await this.execute(params, req, runtime), new CreatePromptTemplateResponse({}));
|
|
6068
|
+
}
|
|
6021
6069
|
}
|
|
6022
6070
|
/**
|
|
6023
|
-
*
|
|
6071
|
+
* Creates a prompt template.
|
|
6024
6072
|
*
|
|
6025
6073
|
* @param request - CreatePromptTemplateRequest
|
|
6026
6074
|
* @returns CreatePromptTemplateResponse
|
|
@@ -6052,7 +6100,12 @@ class Client extends openapi_core_1.default {
|
|
|
6052
6100
|
reqBodyType: "json",
|
|
6053
6101
|
bodyType: "json",
|
|
6054
6102
|
});
|
|
6055
|
-
|
|
6103
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6104
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteAgentResponse({}));
|
|
6105
|
+
}
|
|
6106
|
+
else {
|
|
6107
|
+
return $dara.cast(await this.execute(params, req, runtime), new DeleteAgentResponse({}));
|
|
6108
|
+
}
|
|
6056
6109
|
}
|
|
6057
6110
|
/**
|
|
6058
6111
|
* 删除智能体
|
|
@@ -6064,6 +6117,8 @@ class Client extends openapi_core_1.default {
|
|
|
6064
6117
|
return await this.deleteAgentWithOptions(workspaceId, appCode, headers, runtime);
|
|
6065
6118
|
}
|
|
6066
6119
|
/**
|
|
6120
|
+
* 删除类目
|
|
6121
|
+
*
|
|
6067
6122
|
* @param headers - map
|
|
6068
6123
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
6069
6124
|
* @returns DeleteCategoryResponse
|
|
@@ -6083,9 +6138,15 @@ class Client extends openapi_core_1.default {
|
|
|
6083
6138
|
reqBodyType: "json",
|
|
6084
6139
|
bodyType: "json",
|
|
6085
6140
|
});
|
|
6086
|
-
|
|
6141
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6142
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteCategoryResponse({}));
|
|
6143
|
+
}
|
|
6144
|
+
else {
|
|
6145
|
+
return $dara.cast(await this.execute(params, req, runtime), new DeleteCategoryResponse({}));
|
|
6146
|
+
}
|
|
6087
6147
|
}
|
|
6088
6148
|
/**
|
|
6149
|
+
* 删除类目
|
|
6089
6150
|
* @returns DeleteCategoryResponse
|
|
6090
6151
|
*/
|
|
6091
6152
|
async deleteCategory(CategoryId, WorkspaceId) {
|
|
@@ -6115,7 +6176,12 @@ class Client extends openapi_core_1.default {
|
|
|
6115
6176
|
reqBodyType: "json",
|
|
6116
6177
|
bodyType: "json",
|
|
6117
6178
|
});
|
|
6118
|
-
|
|
6179
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6180
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteFileResponse({}));
|
|
6181
|
+
}
|
|
6182
|
+
else {
|
|
6183
|
+
return $dara.cast(await this.execute(params, req, runtime), new DeleteFileResponse({}));
|
|
6184
|
+
}
|
|
6119
6185
|
}
|
|
6120
6186
|
/**
|
|
6121
6187
|
* 删除文档
|
|
@@ -6162,7 +6228,12 @@ class Client extends openapi_core_1.default {
|
|
|
6162
6228
|
reqBodyType: "json",
|
|
6163
6229
|
bodyType: "json",
|
|
6164
6230
|
});
|
|
6165
|
-
|
|
6231
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6232
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteIndexResponse({}));
|
|
6233
|
+
}
|
|
6234
|
+
else {
|
|
6235
|
+
return $dara.cast(await this.execute(params, req, runtime), new DeleteIndexResponse({}));
|
|
6236
|
+
}
|
|
6166
6237
|
}
|
|
6167
6238
|
/**
|
|
6168
6239
|
* Deletes a specified knowledge base permanently.
|
|
@@ -6226,7 +6297,12 @@ class Client extends openapi_core_1.default {
|
|
|
6226
6297
|
reqBodyType: "json",
|
|
6227
6298
|
bodyType: "json",
|
|
6228
6299
|
});
|
|
6229
|
-
|
|
6300
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6301
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteIndexDocumentResponse({}));
|
|
6302
|
+
}
|
|
6303
|
+
else {
|
|
6304
|
+
return $dara.cast(await this.execute(params, req, runtime), new DeleteIndexDocumentResponse({}));
|
|
6305
|
+
}
|
|
6230
6306
|
}
|
|
6231
6307
|
/**
|
|
6232
6308
|
* Deletes one or more documents from a specified unstructured knowledge base permanently.
|
|
@@ -6268,7 +6344,12 @@ class Client extends openapi_core_1.default {
|
|
|
6268
6344
|
reqBodyType: "json",
|
|
6269
6345
|
bodyType: "json",
|
|
6270
6346
|
});
|
|
6271
|
-
|
|
6347
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6348
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteMemoryResponse({}));
|
|
6349
|
+
}
|
|
6350
|
+
else {
|
|
6351
|
+
return $dara.cast(await this.execute(params, req, runtime), new DeleteMemoryResponse({}));
|
|
6352
|
+
}
|
|
6272
6353
|
}
|
|
6273
6354
|
/**
|
|
6274
6355
|
* 删除memory
|
|
@@ -6301,7 +6382,12 @@ class Client extends openapi_core_1.default {
|
|
|
6301
6382
|
reqBodyType: "json",
|
|
6302
6383
|
bodyType: "json",
|
|
6303
6384
|
});
|
|
6304
|
-
|
|
6385
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6386
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteMemoryNodeResponse({}));
|
|
6387
|
+
}
|
|
6388
|
+
else {
|
|
6389
|
+
return $dara.cast(await this.execute(params, req, runtime), new DeleteMemoryNodeResponse({}));
|
|
6390
|
+
}
|
|
6305
6391
|
}
|
|
6306
6392
|
/**
|
|
6307
6393
|
* 删除记忆Node
|
|
@@ -6313,7 +6399,7 @@ class Client extends openapi_core_1.default {
|
|
|
6313
6399
|
return await this.deleteMemoryNodeWithOptions(workspaceId, memoryId, memoryNodeId, headers, runtime);
|
|
6314
6400
|
}
|
|
6315
6401
|
/**
|
|
6316
|
-
*
|
|
6402
|
+
* Deletes a prompt template based on the template ID.
|
|
6317
6403
|
*
|
|
6318
6404
|
* @param headers - map
|
|
6319
6405
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6334,10 +6420,15 @@ class Client extends openapi_core_1.default {
|
|
|
6334
6420
|
reqBodyType: "json",
|
|
6335
6421
|
bodyType: "json",
|
|
6336
6422
|
});
|
|
6337
|
-
|
|
6423
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6424
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeletePromptTemplateResponse({}));
|
|
6425
|
+
}
|
|
6426
|
+
else {
|
|
6427
|
+
return $dara.cast(await this.execute(params, req, runtime), new DeletePromptTemplateResponse({}));
|
|
6428
|
+
}
|
|
6338
6429
|
}
|
|
6339
6430
|
/**
|
|
6340
|
-
*
|
|
6431
|
+
* Deletes a prompt template based on the template ID.
|
|
6341
6432
|
* @returns DeletePromptTemplateResponse
|
|
6342
6433
|
*/
|
|
6343
6434
|
async deletePromptTemplate(workspaceId, promptTemplateId) {
|
|
@@ -6373,7 +6464,12 @@ class Client extends openapi_core_1.default {
|
|
|
6373
6464
|
reqBodyType: "json",
|
|
6374
6465
|
bodyType: "json",
|
|
6375
6466
|
});
|
|
6376
|
-
|
|
6467
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6468
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DescribeFileResponse({}));
|
|
6469
|
+
}
|
|
6470
|
+
else {
|
|
6471
|
+
return $dara.cast(await this.execute(params, req, runtime), new DescribeFileResponse({}));
|
|
6472
|
+
}
|
|
6377
6473
|
}
|
|
6378
6474
|
/**
|
|
6379
6475
|
* Queries the details of an unstructured document.
|
|
@@ -6433,7 +6529,12 @@ class Client extends openapi_core_1.default {
|
|
|
6433
6529
|
reqBodyType: "json",
|
|
6434
6530
|
bodyType: "json",
|
|
6435
6531
|
});
|
|
6436
|
-
|
|
6532
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6533
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetIndexJobStatusResponse({}));
|
|
6534
|
+
}
|
|
6535
|
+
else {
|
|
6536
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetIndexJobStatusResponse({}));
|
|
6537
|
+
}
|
|
6437
6538
|
}
|
|
6438
6539
|
/**
|
|
6439
6540
|
* Queries the current status of a specified knowledge base creation or add document job.
|
|
@@ -6473,7 +6574,12 @@ class Client extends openapi_core_1.default {
|
|
|
6473
6574
|
reqBodyType: "json",
|
|
6474
6575
|
bodyType: "json",
|
|
6475
6576
|
});
|
|
6476
|
-
|
|
6577
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6578
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetMemoryResponse({}));
|
|
6579
|
+
}
|
|
6580
|
+
else {
|
|
6581
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetMemoryResponse({}));
|
|
6582
|
+
}
|
|
6477
6583
|
}
|
|
6478
6584
|
/**
|
|
6479
6585
|
* 获取memory
|
|
@@ -6506,7 +6612,12 @@ class Client extends openapi_core_1.default {
|
|
|
6506
6612
|
reqBodyType: "json",
|
|
6507
6613
|
bodyType: "json",
|
|
6508
6614
|
});
|
|
6509
|
-
|
|
6615
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6616
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetMemoryNodeResponse({}));
|
|
6617
|
+
}
|
|
6618
|
+
else {
|
|
6619
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetMemoryNodeResponse({}));
|
|
6620
|
+
}
|
|
6510
6621
|
}
|
|
6511
6622
|
/**
|
|
6512
6623
|
* 获取记忆Node
|
|
@@ -6518,7 +6629,7 @@ class Client extends openapi_core_1.default {
|
|
|
6518
6629
|
return await this.getMemoryNodeWithOptions(workspaceId, memoryId, memoryNodeId, headers, runtime);
|
|
6519
6630
|
}
|
|
6520
6631
|
/**
|
|
6521
|
-
*
|
|
6632
|
+
* Obtains a prompt template based on the template ID.
|
|
6522
6633
|
*
|
|
6523
6634
|
* @param headers - map
|
|
6524
6635
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6539,10 +6650,15 @@ class Client extends openapi_core_1.default {
|
|
|
6539
6650
|
reqBodyType: "json",
|
|
6540
6651
|
bodyType: "json",
|
|
6541
6652
|
});
|
|
6542
|
-
|
|
6653
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6654
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetPromptTemplateResponse({}));
|
|
6655
|
+
}
|
|
6656
|
+
else {
|
|
6657
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetPromptTemplateResponse({}));
|
|
6658
|
+
}
|
|
6543
6659
|
}
|
|
6544
6660
|
/**
|
|
6545
|
-
*
|
|
6661
|
+
* Obtains a prompt template based on the template ID.
|
|
6546
6662
|
* @returns GetPromptTemplateResponse
|
|
6547
6663
|
*/
|
|
6548
6664
|
async getPromptTemplate(workspaceId, promptTemplateId) {
|
|
@@ -6572,7 +6688,12 @@ class Client extends openapi_core_1.default {
|
|
|
6572
6688
|
reqBodyType: "json",
|
|
6573
6689
|
bodyType: "json",
|
|
6574
6690
|
});
|
|
6575
|
-
|
|
6691
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6692
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetPublishedAgentResponse({}));
|
|
6693
|
+
}
|
|
6694
|
+
else {
|
|
6695
|
+
return $dara.cast(await this.execute(params, req, runtime), new GetPublishedAgentResponse({}));
|
|
6696
|
+
}
|
|
6576
6697
|
}
|
|
6577
6698
|
/**
|
|
6578
6699
|
* 获取发布态智能体应用
|
|
@@ -6621,7 +6742,12 @@ class Client extends openapi_core_1.default {
|
|
|
6621
6742
|
reqBodyType: "formData",
|
|
6622
6743
|
bodyType: "json",
|
|
6623
6744
|
});
|
|
6624
|
-
|
|
6745
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6746
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListCategoryResponse({}));
|
|
6747
|
+
}
|
|
6748
|
+
else {
|
|
6749
|
+
return $dara.cast(await this.execute(params, req, runtime), new ListCategoryResponse({}));
|
|
6750
|
+
}
|
|
6625
6751
|
}
|
|
6626
6752
|
/**
|
|
6627
6753
|
* ListCategory
|
|
@@ -6682,7 +6808,12 @@ class Client extends openapi_core_1.default {
|
|
|
6682
6808
|
reqBodyType: "json",
|
|
6683
6809
|
bodyType: "json",
|
|
6684
6810
|
});
|
|
6685
|
-
|
|
6811
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6812
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListChunksResponse({}));
|
|
6813
|
+
}
|
|
6814
|
+
else {
|
|
6815
|
+
return $dara.cast(await this.execute(params, req, runtime), new ListChunksResponse({}));
|
|
6816
|
+
}
|
|
6686
6817
|
}
|
|
6687
6818
|
/**
|
|
6688
6819
|
* For unstructured knowledge base, obtains the details of all chunks of a specified document; for structured knowledge base, obtains the details of all chunks.
|
|
@@ -6737,7 +6868,12 @@ class Client extends openapi_core_1.default {
|
|
|
6737
6868
|
reqBodyType: "json",
|
|
6738
6869
|
bodyType: "json",
|
|
6739
6870
|
});
|
|
6740
|
-
|
|
6871
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6872
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListFileResponse({}));
|
|
6873
|
+
}
|
|
6874
|
+
else {
|
|
6875
|
+
return $dara.cast(await this.execute(params, req, runtime), new ListFileResponse({}));
|
|
6876
|
+
}
|
|
6741
6877
|
}
|
|
6742
6878
|
/**
|
|
6743
6879
|
* 获取文档列表
|
|
@@ -6795,7 +6931,12 @@ class Client extends openapi_core_1.default {
|
|
|
6795
6931
|
reqBodyType: "json",
|
|
6796
6932
|
bodyType: "json",
|
|
6797
6933
|
});
|
|
6798
|
-
|
|
6934
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6935
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListIndexDocumentsResponse({}));
|
|
6936
|
+
}
|
|
6937
|
+
else {
|
|
6938
|
+
return $dara.cast(await this.execute(params, req, runtime), new ListIndexDocumentsResponse({}));
|
|
6939
|
+
}
|
|
6799
6940
|
}
|
|
6800
6941
|
/**
|
|
6801
6942
|
* Queries the details of one or more documents in a specified knowledge base.
|
|
@@ -6850,7 +6991,12 @@ class Client extends openapi_core_1.default {
|
|
|
6850
6991
|
reqBodyType: "json",
|
|
6851
6992
|
bodyType: "json",
|
|
6852
6993
|
});
|
|
6853
|
-
|
|
6994
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
6995
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListIndicesResponse({}));
|
|
6996
|
+
}
|
|
6997
|
+
else {
|
|
6998
|
+
return $dara.cast(await this.execute(params, req, runtime), new ListIndicesResponse({}));
|
|
6999
|
+
}
|
|
6854
7000
|
}
|
|
6855
7001
|
/**
|
|
6856
7002
|
* Lists knowledge bases in a specified workspace.
|
|
@@ -6898,7 +7044,12 @@ class Client extends openapi_core_1.default {
|
|
|
6898
7044
|
reqBodyType: "json",
|
|
6899
7045
|
bodyType: "json",
|
|
6900
7046
|
});
|
|
6901
|
-
|
|
7047
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7048
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListMemoriesResponse({}));
|
|
7049
|
+
}
|
|
7050
|
+
else {
|
|
7051
|
+
return $dara.cast(await this.execute(params, req, runtime), new ListMemoriesResponse({}));
|
|
7052
|
+
}
|
|
6902
7053
|
}
|
|
6903
7054
|
/**
|
|
6904
7055
|
* 获取memory
|
|
@@ -6943,7 +7094,12 @@ class Client extends openapi_core_1.default {
|
|
|
6943
7094
|
reqBodyType: "json",
|
|
6944
7095
|
bodyType: "json",
|
|
6945
7096
|
});
|
|
6946
|
-
|
|
7097
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7098
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListMemoryNodesResponse({}));
|
|
7099
|
+
}
|
|
7100
|
+
else {
|
|
7101
|
+
return $dara.cast(await this.execute(params, req, runtime), new ListMemoryNodesResponse({}));
|
|
7102
|
+
}
|
|
6947
7103
|
}
|
|
6948
7104
|
/**
|
|
6949
7105
|
* 获取记忆Node列表
|
|
@@ -6957,7 +7113,7 @@ class Client extends openapi_core_1.default {
|
|
|
6957
7113
|
return await this.listMemoryNodesWithOptions(workspaceId, memoryId, request, headers, runtime);
|
|
6958
7114
|
}
|
|
6959
7115
|
/**
|
|
6960
|
-
*
|
|
7116
|
+
* Obtains a list of prompt templates.
|
|
6961
7117
|
*
|
|
6962
7118
|
* @param request - ListPromptTemplatesRequest
|
|
6963
7119
|
* @param headers - map
|
|
@@ -6994,10 +7150,15 @@ class Client extends openapi_core_1.default {
|
|
|
6994
7150
|
reqBodyType: "json",
|
|
6995
7151
|
bodyType: "json",
|
|
6996
7152
|
});
|
|
6997
|
-
|
|
7153
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7154
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListPromptTemplatesResponse({}));
|
|
7155
|
+
}
|
|
7156
|
+
else {
|
|
7157
|
+
return $dara.cast(await this.execute(params, req, runtime), new ListPromptTemplatesResponse({}));
|
|
7158
|
+
}
|
|
6998
7159
|
}
|
|
6999
7160
|
/**
|
|
7000
|
-
*
|
|
7161
|
+
* Obtains a list of prompt templates.
|
|
7001
7162
|
*
|
|
7002
7163
|
* @param request - ListPromptTemplatesRequest
|
|
7003
7164
|
* @returns ListPromptTemplatesResponse
|
|
@@ -7039,7 +7200,12 @@ class Client extends openapi_core_1.default {
|
|
|
7039
7200
|
reqBodyType: "json",
|
|
7040
7201
|
bodyType: "json",
|
|
7041
7202
|
});
|
|
7042
|
-
|
|
7203
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7204
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListPublishedAgentResponse({}));
|
|
7205
|
+
}
|
|
7206
|
+
else {
|
|
7207
|
+
return $dara.cast(await this.execute(params, req, runtime), new ListPublishedAgentResponse({}));
|
|
7208
|
+
}
|
|
7043
7209
|
}
|
|
7044
7210
|
/**
|
|
7045
7211
|
* 查询已发布的智能体应用列表
|
|
@@ -7136,7 +7302,12 @@ class Client extends openapi_core_1.default {
|
|
|
7136
7302
|
reqBodyType: "json",
|
|
7137
7303
|
bodyType: "json",
|
|
7138
7304
|
});
|
|
7139
|
-
|
|
7305
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7306
|
+
return $dara.cast(await this.callApi(params, req, runtime), new RetrieveResponse({}));
|
|
7307
|
+
}
|
|
7308
|
+
else {
|
|
7309
|
+
return $dara.cast(await this.execute(params, req, runtime), new RetrieveResponse({}));
|
|
7310
|
+
}
|
|
7140
7311
|
}
|
|
7141
7312
|
/**
|
|
7142
7313
|
* Queries information from a specified knowledge base.
|
|
@@ -7206,7 +7377,12 @@ class Client extends openapi_core_1.default {
|
|
|
7206
7377
|
reqBodyType: "json",
|
|
7207
7378
|
bodyType: "json",
|
|
7208
7379
|
});
|
|
7209
|
-
|
|
7380
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7381
|
+
return $dara.cast(await this.callApi(params, req, runtime), new SubmitIndexAddDocumentsJobResponse({}));
|
|
7382
|
+
}
|
|
7383
|
+
else {
|
|
7384
|
+
return $dara.cast(await this.execute(params, req, runtime), new SubmitIndexAddDocumentsJobResponse({}));
|
|
7385
|
+
}
|
|
7210
7386
|
}
|
|
7211
7387
|
/**
|
|
7212
7388
|
* Adds parsed documents to an unstructured knowledge base.
|
|
@@ -7260,7 +7436,12 @@ class Client extends openapi_core_1.default {
|
|
|
7260
7436
|
reqBodyType: "json",
|
|
7261
7437
|
bodyType: "json",
|
|
7262
7438
|
});
|
|
7263
|
-
|
|
7439
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7440
|
+
return $dara.cast(await this.callApi(params, req, runtime), new SubmitIndexJobResponse({}));
|
|
7441
|
+
}
|
|
7442
|
+
else {
|
|
7443
|
+
return $dara.cast(await this.execute(params, req, runtime), new SubmitIndexJobResponse({}));
|
|
7444
|
+
}
|
|
7264
7445
|
}
|
|
7265
7446
|
/**
|
|
7266
7447
|
* Submits a specified CreateIndex job to complete knowledge base creation.
|
|
@@ -7328,7 +7509,12 @@ class Client extends openapi_core_1.default {
|
|
|
7328
7509
|
reqBodyType: "formData",
|
|
7329
7510
|
bodyType: "json",
|
|
7330
7511
|
});
|
|
7331
|
-
|
|
7512
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7513
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdateAndPublishAgentResponse({}));
|
|
7514
|
+
}
|
|
7515
|
+
else {
|
|
7516
|
+
return $dara.cast(await this.execute(params, req, runtime), new UpdateAndPublishAgentResponse({}));
|
|
7517
|
+
}
|
|
7332
7518
|
}
|
|
7333
7519
|
/**
|
|
7334
7520
|
* 更新并发布智能体应用
|
|
@@ -7390,7 +7576,12 @@ class Client extends openapi_core_1.default {
|
|
|
7390
7576
|
reqBodyType: "formData",
|
|
7391
7577
|
bodyType: "json",
|
|
7392
7578
|
});
|
|
7393
|
-
|
|
7579
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7580
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdateAndPublishAgentSelectiveResponse({}));
|
|
7581
|
+
}
|
|
7582
|
+
else {
|
|
7583
|
+
return $dara.cast(await this.execute(params, req, runtime), new UpdateAndPublishAgentSelectiveResponse({}));
|
|
7584
|
+
}
|
|
7394
7585
|
}
|
|
7395
7586
|
/**
|
|
7396
7587
|
* 选择更新并发布智能体应用
|
|
@@ -7437,7 +7628,12 @@ class Client extends openapi_core_1.default {
|
|
|
7437
7628
|
reqBodyType: "formData",
|
|
7438
7629
|
bodyType: "json",
|
|
7439
7630
|
});
|
|
7440
|
-
|
|
7631
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7632
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdateFileTagResponse({}));
|
|
7633
|
+
}
|
|
7634
|
+
else {
|
|
7635
|
+
return $dara.cast(await this.execute(params, req, runtime), new UpdateFileTagResponse({}));
|
|
7636
|
+
}
|
|
7441
7637
|
}
|
|
7442
7638
|
/**
|
|
7443
7639
|
* 更新文档Tag
|
|
@@ -7479,7 +7675,12 @@ class Client extends openapi_core_1.default {
|
|
|
7479
7675
|
reqBodyType: "json",
|
|
7480
7676
|
bodyType: "json",
|
|
7481
7677
|
});
|
|
7482
|
-
|
|
7678
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7679
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdateMemoryResponse({}));
|
|
7680
|
+
}
|
|
7681
|
+
else {
|
|
7682
|
+
return $dara.cast(await this.execute(params, req, runtime), new UpdateMemoryResponse({}));
|
|
7683
|
+
}
|
|
7483
7684
|
}
|
|
7484
7685
|
/**
|
|
7485
7686
|
* 更新memory
|
|
@@ -7521,7 +7722,12 @@ class Client extends openapi_core_1.default {
|
|
|
7521
7722
|
reqBodyType: "json",
|
|
7522
7723
|
bodyType: "json",
|
|
7523
7724
|
});
|
|
7524
|
-
|
|
7725
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7726
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdateMemoryNodeResponse({}));
|
|
7727
|
+
}
|
|
7728
|
+
else {
|
|
7729
|
+
return $dara.cast(await this.execute(params, req, runtime), new UpdateMemoryNodeResponse({}));
|
|
7730
|
+
}
|
|
7525
7731
|
}
|
|
7526
7732
|
/**
|
|
7527
7733
|
* 更新记忆Node
|
|
@@ -7535,7 +7741,7 @@ class Client extends openapi_core_1.default {
|
|
|
7535
7741
|
return await this.updateMemoryNodeWithOptions(workspaceId, memoryId, memoryNodeId, request, headers, runtime);
|
|
7536
7742
|
}
|
|
7537
7743
|
/**
|
|
7538
|
-
*
|
|
7744
|
+
* Updates a prompt template based on the template ID.
|
|
7539
7745
|
*
|
|
7540
7746
|
* @param request - UpdatePromptTemplateRequest
|
|
7541
7747
|
* @param headers - map
|
|
@@ -7566,10 +7772,15 @@ class Client extends openapi_core_1.default {
|
|
|
7566
7772
|
reqBodyType: "json",
|
|
7567
7773
|
bodyType: "json",
|
|
7568
7774
|
});
|
|
7569
|
-
|
|
7775
|
+
if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
|
|
7776
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdatePromptTemplateResponse({}));
|
|
7777
|
+
}
|
|
7778
|
+
else {
|
|
7779
|
+
return $dara.cast(await this.execute(params, req, runtime), new UpdatePromptTemplateResponse({}));
|
|
7780
|
+
}
|
|
7570
7781
|
}
|
|
7571
7782
|
/**
|
|
7572
|
-
*
|
|
7783
|
+
* Updates a prompt template based on the template ID.
|
|
7573
7784
|
*
|
|
7574
7785
|
* @param request - UpdatePromptTemplateRequest
|
|
7575
7786
|
* @returns UpdatePromptTemplateResponse
|