@alicloud/bailian20231229 2.0.3 → 2.0.5
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 +10 -0
- package/dist/client.js +75 -240
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +90 -240
package/dist/client.js
CHANGED
|
@@ -2624,6 +2624,7 @@ class CreateIndexRequest extends $dara.Model {
|
|
|
2624
2624
|
sinkType: 'SinkType',
|
|
2625
2625
|
sourceType: 'SourceType',
|
|
2626
2626
|
structureType: 'StructureType',
|
|
2627
|
+
chunkMode: 'chunkMode',
|
|
2627
2628
|
enableHeaders: 'enableHeaders',
|
|
2628
2629
|
metaExtractColumns: 'metaExtractColumns',
|
|
2629
2630
|
};
|
|
@@ -2647,6 +2648,7 @@ class CreateIndexRequest extends $dara.Model {
|
|
|
2647
2648
|
sinkType: 'string',
|
|
2648
2649
|
sourceType: 'string',
|
|
2649
2650
|
structureType: 'string',
|
|
2651
|
+
chunkMode: 'string',
|
|
2650
2652
|
enableHeaders: 'boolean',
|
|
2651
2653
|
metaExtractColumns: { 'type': 'array', 'itemType': CreateIndexRequestMetaExtractColumns },
|
|
2652
2654
|
};
|
|
@@ -2694,6 +2696,7 @@ class CreateIndexShrinkRequest extends $dara.Model {
|
|
|
2694
2696
|
sinkType: 'SinkType',
|
|
2695
2697
|
sourceType: 'SourceType',
|
|
2696
2698
|
structureType: 'StructureType',
|
|
2699
|
+
chunkMode: 'chunkMode',
|
|
2697
2700
|
enableHeaders: 'enableHeaders',
|
|
2698
2701
|
metaExtractColumnsShrink: 'metaExtractColumns',
|
|
2699
2702
|
};
|
|
@@ -2717,6 +2720,7 @@ class CreateIndexShrinkRequest extends $dara.Model {
|
|
|
2717
2720
|
sinkType: 'string',
|
|
2718
2721
|
sourceType: 'string',
|
|
2719
2722
|
structureType: 'string',
|
|
2723
|
+
chunkMode: 'string',
|
|
2720
2724
|
enableHeaders: 'boolean',
|
|
2721
2725
|
metaExtractColumnsShrink: 'string',
|
|
2722
2726
|
};
|
|
@@ -4820,16 +4824,24 @@ class SubmitIndexAddDocumentsJobRequest extends $dara.Model {
|
|
|
4820
4824
|
static names() {
|
|
4821
4825
|
return {
|
|
4822
4826
|
categoryIds: 'CategoryIds',
|
|
4827
|
+
chunkMode: 'ChunkMode',
|
|
4828
|
+
chunkSize: 'ChunkSize',
|
|
4823
4829
|
documentIds: 'DocumentIds',
|
|
4824
4830
|
indexId: 'IndexId',
|
|
4831
|
+
overlapSize: 'OverlapSize',
|
|
4832
|
+
separator: 'Separator',
|
|
4825
4833
|
sourceType: 'SourceType',
|
|
4826
4834
|
};
|
|
4827
4835
|
}
|
|
4828
4836
|
static types() {
|
|
4829
4837
|
return {
|
|
4830
4838
|
categoryIds: { 'type': 'array', 'itemType': 'string' },
|
|
4839
|
+
chunkMode: 'string',
|
|
4840
|
+
chunkSize: 'number',
|
|
4831
4841
|
documentIds: { 'type': 'array', 'itemType': 'string' },
|
|
4832
4842
|
indexId: 'string',
|
|
4843
|
+
overlapSize: 'number',
|
|
4844
|
+
separator: 'string',
|
|
4833
4845
|
sourceType: 'string',
|
|
4834
4846
|
};
|
|
4835
4847
|
}
|
|
@@ -4851,16 +4863,24 @@ class SubmitIndexAddDocumentsJobShrinkRequest extends $dara.Model {
|
|
|
4851
4863
|
static names() {
|
|
4852
4864
|
return {
|
|
4853
4865
|
categoryIdsShrink: 'CategoryIds',
|
|
4866
|
+
chunkMode: 'ChunkMode',
|
|
4867
|
+
chunkSize: 'ChunkSize',
|
|
4854
4868
|
documentIdsShrink: 'DocumentIds',
|
|
4855
4869
|
indexId: 'IndexId',
|
|
4870
|
+
overlapSize: 'OverlapSize',
|
|
4871
|
+
separator: 'Separator',
|
|
4856
4872
|
sourceType: 'SourceType',
|
|
4857
4873
|
};
|
|
4858
4874
|
}
|
|
4859
4875
|
static types() {
|
|
4860
4876
|
return {
|
|
4861
4877
|
categoryIdsShrink: 'string',
|
|
4878
|
+
chunkMode: 'string',
|
|
4879
|
+
chunkSize: 'number',
|
|
4862
4880
|
documentIdsShrink: 'string',
|
|
4863
4881
|
indexId: 'string',
|
|
4882
|
+
overlapSize: 'number',
|
|
4883
|
+
separator: 'string',
|
|
4864
4884
|
sourceType: 'string',
|
|
4865
4885
|
};
|
|
4866
4886
|
}
|
|
@@ -5605,12 +5625,7 @@ class Client extends openapi_core_1.default {
|
|
|
5605
5625
|
reqBodyType: "formData",
|
|
5606
5626
|
bodyType: "json",
|
|
5607
5627
|
});
|
|
5608
|
-
|
|
5609
|
-
return $dara.cast(await this.callApi(params, req, runtime), new AddCategoryResponse({}));
|
|
5610
|
-
}
|
|
5611
|
-
else {
|
|
5612
|
-
return $dara.cast(await this.execute(params, req, runtime), new AddCategoryResponse({}));
|
|
5613
|
-
}
|
|
5628
|
+
return $dara.cast(await this.callApi(params, req, runtime), new AddCategoryResponse({}));
|
|
5614
5629
|
}
|
|
5615
5630
|
/**
|
|
5616
5631
|
* 添加类目
|
|
@@ -5676,12 +5691,7 @@ class Client extends openapi_core_1.default {
|
|
|
5676
5691
|
reqBodyType: "formData",
|
|
5677
5692
|
bodyType: "json",
|
|
5678
5693
|
});
|
|
5679
|
-
|
|
5680
|
-
return $dara.cast(await this.callApi(params, req, runtime), new AddFileResponse({}));
|
|
5681
|
-
}
|
|
5682
|
-
else {
|
|
5683
|
-
return $dara.cast(await this.execute(params, req, runtime), new AddFileResponse({}));
|
|
5684
|
-
}
|
|
5694
|
+
return $dara.cast(await this.callApi(params, req, runtime), new AddFileResponse({}));
|
|
5685
5695
|
}
|
|
5686
5696
|
/**
|
|
5687
5697
|
* 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.
|
|
@@ -5748,12 +5758,7 @@ class Client extends openapi_core_1.default {
|
|
|
5748
5758
|
reqBodyType: "formData",
|
|
5749
5759
|
bodyType: "json",
|
|
5750
5760
|
});
|
|
5751
|
-
|
|
5752
|
-
return $dara.cast(await this.callApi(params, req, runtime), new ApplyFileUploadLeaseResponse({}));
|
|
5753
|
-
}
|
|
5754
|
-
else {
|
|
5755
|
-
return $dara.cast(await this.execute(params, req, runtime), new ApplyFileUploadLeaseResponse({}));
|
|
5756
|
-
}
|
|
5761
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ApplyFileUploadLeaseResponse({}));
|
|
5757
5762
|
}
|
|
5758
5763
|
/**
|
|
5759
5764
|
* Applies for a document upload lease to upload a document.
|
|
@@ -5821,12 +5826,7 @@ class Client extends openapi_core_1.default {
|
|
|
5821
5826
|
reqBodyType: "formData",
|
|
5822
5827
|
bodyType: "json",
|
|
5823
5828
|
});
|
|
5824
|
-
|
|
5825
|
-
return $dara.cast(await this.callApi(params, req, runtime), new CreateAndPulishAgentResponse({}));
|
|
5826
|
-
}
|
|
5827
|
-
else {
|
|
5828
|
-
return $dara.cast(await this.execute(params, req, runtime), new CreateAndPulishAgentResponse({}));
|
|
5829
|
-
}
|
|
5829
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateAndPulishAgentResponse({}));
|
|
5830
5830
|
}
|
|
5831
5831
|
/**
|
|
5832
5832
|
* 创建并发布智能体应用
|
|
@@ -5923,6 +5923,9 @@ class Client extends openapi_core_1.default {
|
|
|
5923
5923
|
if (!$dara.isNull(request.structureType)) {
|
|
5924
5924
|
query["StructureType"] = request.structureType;
|
|
5925
5925
|
}
|
|
5926
|
+
if (!$dara.isNull(request.chunkMode)) {
|
|
5927
|
+
query["chunkMode"] = request.chunkMode;
|
|
5928
|
+
}
|
|
5926
5929
|
if (!$dara.isNull(request.enableHeaders)) {
|
|
5927
5930
|
query["enableHeaders"] = request.enableHeaders;
|
|
5928
5931
|
}
|
|
@@ -5944,12 +5947,7 @@ class Client extends openapi_core_1.default {
|
|
|
5944
5947
|
reqBodyType: "json",
|
|
5945
5948
|
bodyType: "json",
|
|
5946
5949
|
});
|
|
5947
|
-
|
|
5948
|
-
return $dara.cast(await this.callApi(params, req, runtime), new CreateIndexResponse({}));
|
|
5949
|
-
}
|
|
5950
|
-
else {
|
|
5951
|
-
return $dara.cast(await this.execute(params, req, runtime), new CreateIndexResponse({}));
|
|
5952
|
-
}
|
|
5950
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateIndexResponse({}));
|
|
5953
5951
|
}
|
|
5954
5952
|
/**
|
|
5955
5953
|
* 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.
|
|
@@ -5996,12 +5994,7 @@ class Client extends openapi_core_1.default {
|
|
|
5996
5994
|
reqBodyType: "json",
|
|
5997
5995
|
bodyType: "json",
|
|
5998
5996
|
});
|
|
5999
|
-
|
|
6000
|
-
return $dara.cast(await this.callApi(params, req, runtime), new CreateMemoryResponse({}));
|
|
6001
|
-
}
|
|
6002
|
-
else {
|
|
6003
|
-
return $dara.cast(await this.execute(params, req, runtime), new CreateMemoryResponse({}));
|
|
6004
|
-
}
|
|
5997
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateMemoryResponse({}));
|
|
6005
5998
|
}
|
|
6006
5999
|
/**
|
|
6007
6000
|
* 创建Memory
|
|
@@ -6043,12 +6036,7 @@ class Client extends openapi_core_1.default {
|
|
|
6043
6036
|
reqBodyType: "json",
|
|
6044
6037
|
bodyType: "json",
|
|
6045
6038
|
});
|
|
6046
|
-
|
|
6047
|
-
return $dara.cast(await this.callApi(params, req, runtime), new CreateMemoryNodeResponse({}));
|
|
6048
|
-
}
|
|
6049
|
-
else {
|
|
6050
|
-
return $dara.cast(await this.execute(params, req, runtime), new CreateMemoryNodeResponse({}));
|
|
6051
|
-
}
|
|
6039
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreateMemoryNodeResponse({}));
|
|
6052
6040
|
}
|
|
6053
6041
|
/**
|
|
6054
6042
|
* 创建记忆Node
|
|
@@ -6093,12 +6081,7 @@ class Client extends openapi_core_1.default {
|
|
|
6093
6081
|
reqBodyType: "json",
|
|
6094
6082
|
bodyType: "json",
|
|
6095
6083
|
});
|
|
6096
|
-
|
|
6097
|
-
return $dara.cast(await this.callApi(params, req, runtime), new CreatePromptTemplateResponse({}));
|
|
6098
|
-
}
|
|
6099
|
-
else {
|
|
6100
|
-
return $dara.cast(await this.execute(params, req, runtime), new CreatePromptTemplateResponse({}));
|
|
6101
|
-
}
|
|
6084
|
+
return $dara.cast(await this.callApi(params, req, runtime), new CreatePromptTemplateResponse({}));
|
|
6102
6085
|
}
|
|
6103
6086
|
/**
|
|
6104
6087
|
* Creates a prompt template.
|
|
@@ -6133,12 +6116,7 @@ class Client extends openapi_core_1.default {
|
|
|
6133
6116
|
reqBodyType: "json",
|
|
6134
6117
|
bodyType: "json",
|
|
6135
6118
|
});
|
|
6136
|
-
|
|
6137
|
-
return $dara.cast(await this.callApi(params, req, runtime), new DeleteAgentResponse({}));
|
|
6138
|
-
}
|
|
6139
|
-
else {
|
|
6140
|
-
return $dara.cast(await this.execute(params, req, runtime), new DeleteAgentResponse({}));
|
|
6141
|
-
}
|
|
6119
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteAgentResponse({}));
|
|
6142
6120
|
}
|
|
6143
6121
|
/**
|
|
6144
6122
|
* 删除智能体
|
|
@@ -6171,12 +6149,7 @@ class Client extends openapi_core_1.default {
|
|
|
6171
6149
|
reqBodyType: "json",
|
|
6172
6150
|
bodyType: "json",
|
|
6173
6151
|
});
|
|
6174
|
-
|
|
6175
|
-
return $dara.cast(await this.callApi(params, req, runtime), new DeleteCategoryResponse({}));
|
|
6176
|
-
}
|
|
6177
|
-
else {
|
|
6178
|
-
return $dara.cast(await this.execute(params, req, runtime), new DeleteCategoryResponse({}));
|
|
6179
|
-
}
|
|
6152
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteCategoryResponse({}));
|
|
6180
6153
|
}
|
|
6181
6154
|
/**
|
|
6182
6155
|
* 删除类目
|
|
@@ -6209,12 +6182,7 @@ class Client extends openapi_core_1.default {
|
|
|
6209
6182
|
reqBodyType: "json",
|
|
6210
6183
|
bodyType: "json",
|
|
6211
6184
|
});
|
|
6212
|
-
|
|
6213
|
-
return $dara.cast(await this.callApi(params, req, runtime), new DeleteFileResponse({}));
|
|
6214
|
-
}
|
|
6215
|
-
else {
|
|
6216
|
-
return $dara.cast(await this.execute(params, req, runtime), new DeleteFileResponse({}));
|
|
6217
|
-
}
|
|
6185
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteFileResponse({}));
|
|
6218
6186
|
}
|
|
6219
6187
|
/**
|
|
6220
6188
|
* 删除文档
|
|
@@ -6261,12 +6229,7 @@ class Client extends openapi_core_1.default {
|
|
|
6261
6229
|
reqBodyType: "json",
|
|
6262
6230
|
bodyType: "json",
|
|
6263
6231
|
});
|
|
6264
|
-
|
|
6265
|
-
return $dara.cast(await this.callApi(params, req, runtime), new DeleteIndexResponse({}));
|
|
6266
|
-
}
|
|
6267
|
-
else {
|
|
6268
|
-
return $dara.cast(await this.execute(params, req, runtime), new DeleteIndexResponse({}));
|
|
6269
|
-
}
|
|
6232
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteIndexResponse({}));
|
|
6270
6233
|
}
|
|
6271
6234
|
/**
|
|
6272
6235
|
* Deletes a specified knowledge base permanently.
|
|
@@ -6330,12 +6293,7 @@ class Client extends openapi_core_1.default {
|
|
|
6330
6293
|
reqBodyType: "json",
|
|
6331
6294
|
bodyType: "json",
|
|
6332
6295
|
});
|
|
6333
|
-
|
|
6334
|
-
return $dara.cast(await this.callApi(params, req, runtime), new DeleteIndexDocumentResponse({}));
|
|
6335
|
-
}
|
|
6336
|
-
else {
|
|
6337
|
-
return $dara.cast(await this.execute(params, req, runtime), new DeleteIndexDocumentResponse({}));
|
|
6338
|
-
}
|
|
6296
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteIndexDocumentResponse({}));
|
|
6339
6297
|
}
|
|
6340
6298
|
/**
|
|
6341
6299
|
* Deletes one or more documents from a specified unstructured knowledge base permanently.
|
|
@@ -6377,12 +6335,7 @@ class Client extends openapi_core_1.default {
|
|
|
6377
6335
|
reqBodyType: "json",
|
|
6378
6336
|
bodyType: "json",
|
|
6379
6337
|
});
|
|
6380
|
-
|
|
6381
|
-
return $dara.cast(await this.callApi(params, req, runtime), new DeleteMemoryResponse({}));
|
|
6382
|
-
}
|
|
6383
|
-
else {
|
|
6384
|
-
return $dara.cast(await this.execute(params, req, runtime), new DeleteMemoryResponse({}));
|
|
6385
|
-
}
|
|
6338
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteMemoryResponse({}));
|
|
6386
6339
|
}
|
|
6387
6340
|
/**
|
|
6388
6341
|
* 删除memory
|
|
@@ -6415,12 +6368,7 @@ class Client extends openapi_core_1.default {
|
|
|
6415
6368
|
reqBodyType: "json",
|
|
6416
6369
|
bodyType: "json",
|
|
6417
6370
|
});
|
|
6418
|
-
|
|
6419
|
-
return $dara.cast(await this.callApi(params, req, runtime), new DeleteMemoryNodeResponse({}));
|
|
6420
|
-
}
|
|
6421
|
-
else {
|
|
6422
|
-
return $dara.cast(await this.execute(params, req, runtime), new DeleteMemoryNodeResponse({}));
|
|
6423
|
-
}
|
|
6371
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeleteMemoryNodeResponse({}));
|
|
6424
6372
|
}
|
|
6425
6373
|
/**
|
|
6426
6374
|
* 删除记忆Node
|
|
@@ -6453,12 +6401,7 @@ class Client extends openapi_core_1.default {
|
|
|
6453
6401
|
reqBodyType: "json",
|
|
6454
6402
|
bodyType: "json",
|
|
6455
6403
|
});
|
|
6456
|
-
|
|
6457
|
-
return $dara.cast(await this.callApi(params, req, runtime), new DeletePromptTemplateResponse({}));
|
|
6458
|
-
}
|
|
6459
|
-
else {
|
|
6460
|
-
return $dara.cast(await this.execute(params, req, runtime), new DeletePromptTemplateResponse({}));
|
|
6461
|
-
}
|
|
6404
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DeletePromptTemplateResponse({}));
|
|
6462
6405
|
}
|
|
6463
6406
|
/**
|
|
6464
6407
|
* Deletes a prompt template based on the template ID.
|
|
@@ -6497,12 +6440,7 @@ class Client extends openapi_core_1.default {
|
|
|
6497
6440
|
reqBodyType: "json",
|
|
6498
6441
|
bodyType: "json",
|
|
6499
6442
|
});
|
|
6500
|
-
|
|
6501
|
-
return $dara.cast(await this.callApi(params, req, runtime), new DescribeFileResponse({}));
|
|
6502
|
-
}
|
|
6503
|
-
else {
|
|
6504
|
-
return $dara.cast(await this.execute(params, req, runtime), new DescribeFileResponse({}));
|
|
6505
|
-
}
|
|
6443
|
+
return $dara.cast(await this.callApi(params, req, runtime), new DescribeFileResponse({}));
|
|
6506
6444
|
}
|
|
6507
6445
|
/**
|
|
6508
6446
|
* Queries the details of an unstructured document.
|
|
@@ -6562,12 +6500,7 @@ class Client extends openapi_core_1.default {
|
|
|
6562
6500
|
reqBodyType: "json",
|
|
6563
6501
|
bodyType: "json",
|
|
6564
6502
|
});
|
|
6565
|
-
|
|
6566
|
-
return $dara.cast(await this.callApi(params, req, runtime), new GetIndexJobStatusResponse({}));
|
|
6567
|
-
}
|
|
6568
|
-
else {
|
|
6569
|
-
return $dara.cast(await this.execute(params, req, runtime), new GetIndexJobStatusResponse({}));
|
|
6570
|
-
}
|
|
6503
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetIndexJobStatusResponse({}));
|
|
6571
6504
|
}
|
|
6572
6505
|
/**
|
|
6573
6506
|
* Queries the current status of a specified knowledge base creation or add document job.
|
|
@@ -6607,12 +6540,7 @@ class Client extends openapi_core_1.default {
|
|
|
6607
6540
|
reqBodyType: "json",
|
|
6608
6541
|
bodyType: "json",
|
|
6609
6542
|
});
|
|
6610
|
-
|
|
6611
|
-
return $dara.cast(await this.callApi(params, req, runtime), new GetMemoryResponse({}));
|
|
6612
|
-
}
|
|
6613
|
-
else {
|
|
6614
|
-
return $dara.cast(await this.execute(params, req, runtime), new GetMemoryResponse({}));
|
|
6615
|
-
}
|
|
6543
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetMemoryResponse({}));
|
|
6616
6544
|
}
|
|
6617
6545
|
/**
|
|
6618
6546
|
* 获取memory
|
|
@@ -6645,12 +6573,7 @@ class Client extends openapi_core_1.default {
|
|
|
6645
6573
|
reqBodyType: "json",
|
|
6646
6574
|
bodyType: "json",
|
|
6647
6575
|
});
|
|
6648
|
-
|
|
6649
|
-
return $dara.cast(await this.callApi(params, req, runtime), new GetMemoryNodeResponse({}));
|
|
6650
|
-
}
|
|
6651
|
-
else {
|
|
6652
|
-
return $dara.cast(await this.execute(params, req, runtime), new GetMemoryNodeResponse({}));
|
|
6653
|
-
}
|
|
6576
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetMemoryNodeResponse({}));
|
|
6654
6577
|
}
|
|
6655
6578
|
/**
|
|
6656
6579
|
* 获取记忆Node
|
|
@@ -6683,12 +6606,7 @@ class Client extends openapi_core_1.default {
|
|
|
6683
6606
|
reqBodyType: "json",
|
|
6684
6607
|
bodyType: "json",
|
|
6685
6608
|
});
|
|
6686
|
-
|
|
6687
|
-
return $dara.cast(await this.callApi(params, req, runtime), new GetPromptTemplateResponse({}));
|
|
6688
|
-
}
|
|
6689
|
-
else {
|
|
6690
|
-
return $dara.cast(await this.execute(params, req, runtime), new GetPromptTemplateResponse({}));
|
|
6691
|
-
}
|
|
6609
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetPromptTemplateResponse({}));
|
|
6692
6610
|
}
|
|
6693
6611
|
/**
|
|
6694
6612
|
* Obtains a prompt template based on the template ID.
|
|
@@ -6721,12 +6639,7 @@ class Client extends openapi_core_1.default {
|
|
|
6721
6639
|
reqBodyType: "json",
|
|
6722
6640
|
bodyType: "json",
|
|
6723
6641
|
});
|
|
6724
|
-
|
|
6725
|
-
return $dara.cast(await this.callApi(params, req, runtime), new GetPublishedAgentResponse({}));
|
|
6726
|
-
}
|
|
6727
|
-
else {
|
|
6728
|
-
return $dara.cast(await this.execute(params, req, runtime), new GetPublishedAgentResponse({}));
|
|
6729
|
-
}
|
|
6642
|
+
return $dara.cast(await this.callApi(params, req, runtime), new GetPublishedAgentResponse({}));
|
|
6730
6643
|
}
|
|
6731
6644
|
/**
|
|
6732
6645
|
* 获取发布态智能体应用
|
|
@@ -6775,12 +6688,7 @@ class Client extends openapi_core_1.default {
|
|
|
6775
6688
|
reqBodyType: "formData",
|
|
6776
6689
|
bodyType: "json",
|
|
6777
6690
|
});
|
|
6778
|
-
|
|
6779
|
-
return $dara.cast(await this.callApi(params, req, runtime), new ListCategoryResponse({}));
|
|
6780
|
-
}
|
|
6781
|
-
else {
|
|
6782
|
-
return $dara.cast(await this.execute(params, req, runtime), new ListCategoryResponse({}));
|
|
6783
|
-
}
|
|
6691
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListCategoryResponse({}));
|
|
6784
6692
|
}
|
|
6785
6693
|
/**
|
|
6786
6694
|
* ListCategory
|
|
@@ -6841,12 +6749,7 @@ class Client extends openapi_core_1.default {
|
|
|
6841
6749
|
reqBodyType: "json",
|
|
6842
6750
|
bodyType: "json",
|
|
6843
6751
|
});
|
|
6844
|
-
|
|
6845
|
-
return $dara.cast(await this.callApi(params, req, runtime), new ListChunksResponse({}));
|
|
6846
|
-
}
|
|
6847
|
-
else {
|
|
6848
|
-
return $dara.cast(await this.execute(params, req, runtime), new ListChunksResponse({}));
|
|
6849
|
-
}
|
|
6752
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListChunksResponse({}));
|
|
6850
6753
|
}
|
|
6851
6754
|
/**
|
|
6852
6755
|
* For unstructured knowledge base, obtains the details of all chunks of a specified document; for structured knowledge base, obtains the details of all chunks.
|
|
@@ -6901,12 +6804,7 @@ class Client extends openapi_core_1.default {
|
|
|
6901
6804
|
reqBodyType: "json",
|
|
6902
6805
|
bodyType: "json",
|
|
6903
6806
|
});
|
|
6904
|
-
|
|
6905
|
-
return $dara.cast(await this.callApi(params, req, runtime), new ListFileResponse({}));
|
|
6906
|
-
}
|
|
6907
|
-
else {
|
|
6908
|
-
return $dara.cast(await this.execute(params, req, runtime), new ListFileResponse({}));
|
|
6909
|
-
}
|
|
6807
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListFileResponse({}));
|
|
6910
6808
|
}
|
|
6911
6809
|
/**
|
|
6912
6810
|
* 获取文档列表
|
|
@@ -6964,12 +6862,7 @@ class Client extends openapi_core_1.default {
|
|
|
6964
6862
|
reqBodyType: "json",
|
|
6965
6863
|
bodyType: "json",
|
|
6966
6864
|
});
|
|
6967
|
-
|
|
6968
|
-
return $dara.cast(await this.callApi(params, req, runtime), new ListIndexDocumentsResponse({}));
|
|
6969
|
-
}
|
|
6970
|
-
else {
|
|
6971
|
-
return $dara.cast(await this.execute(params, req, runtime), new ListIndexDocumentsResponse({}));
|
|
6972
|
-
}
|
|
6865
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListIndexDocumentsResponse({}));
|
|
6973
6866
|
}
|
|
6974
6867
|
/**
|
|
6975
6868
|
* Queries the details of one or more documents in a specified knowledge base.
|
|
@@ -7024,12 +6917,7 @@ class Client extends openapi_core_1.default {
|
|
|
7024
6917
|
reqBodyType: "json",
|
|
7025
6918
|
bodyType: "json",
|
|
7026
6919
|
});
|
|
7027
|
-
|
|
7028
|
-
return $dara.cast(await this.callApi(params, req, runtime), new ListIndicesResponse({}));
|
|
7029
|
-
}
|
|
7030
|
-
else {
|
|
7031
|
-
return $dara.cast(await this.execute(params, req, runtime), new ListIndicesResponse({}));
|
|
7032
|
-
}
|
|
6920
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListIndicesResponse({}));
|
|
7033
6921
|
}
|
|
7034
6922
|
/**
|
|
7035
6923
|
* Lists knowledge bases in a specified workspace.
|
|
@@ -7077,12 +6965,7 @@ class Client extends openapi_core_1.default {
|
|
|
7077
6965
|
reqBodyType: "json",
|
|
7078
6966
|
bodyType: "json",
|
|
7079
6967
|
});
|
|
7080
|
-
|
|
7081
|
-
return $dara.cast(await this.callApi(params, req, runtime), new ListMemoriesResponse({}));
|
|
7082
|
-
}
|
|
7083
|
-
else {
|
|
7084
|
-
return $dara.cast(await this.execute(params, req, runtime), new ListMemoriesResponse({}));
|
|
7085
|
-
}
|
|
6968
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListMemoriesResponse({}));
|
|
7086
6969
|
}
|
|
7087
6970
|
/**
|
|
7088
6971
|
* 获取memory
|
|
@@ -7127,12 +7010,7 @@ class Client extends openapi_core_1.default {
|
|
|
7127
7010
|
reqBodyType: "json",
|
|
7128
7011
|
bodyType: "json",
|
|
7129
7012
|
});
|
|
7130
|
-
|
|
7131
|
-
return $dara.cast(await this.callApi(params, req, runtime), new ListMemoryNodesResponse({}));
|
|
7132
|
-
}
|
|
7133
|
-
else {
|
|
7134
|
-
return $dara.cast(await this.execute(params, req, runtime), new ListMemoryNodesResponse({}));
|
|
7135
|
-
}
|
|
7013
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListMemoryNodesResponse({}));
|
|
7136
7014
|
}
|
|
7137
7015
|
/**
|
|
7138
7016
|
* 获取记忆Node列表
|
|
@@ -7183,12 +7061,7 @@ class Client extends openapi_core_1.default {
|
|
|
7183
7061
|
reqBodyType: "json",
|
|
7184
7062
|
bodyType: "json",
|
|
7185
7063
|
});
|
|
7186
|
-
|
|
7187
|
-
return $dara.cast(await this.callApi(params, req, runtime), new ListPromptTemplatesResponse({}));
|
|
7188
|
-
}
|
|
7189
|
-
else {
|
|
7190
|
-
return $dara.cast(await this.execute(params, req, runtime), new ListPromptTemplatesResponse({}));
|
|
7191
|
-
}
|
|
7064
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListPromptTemplatesResponse({}));
|
|
7192
7065
|
}
|
|
7193
7066
|
/**
|
|
7194
7067
|
* Obtains a list of prompt templates.
|
|
@@ -7233,12 +7106,7 @@ class Client extends openapi_core_1.default {
|
|
|
7233
7106
|
reqBodyType: "json",
|
|
7234
7107
|
bodyType: "json",
|
|
7235
7108
|
});
|
|
7236
|
-
|
|
7237
|
-
return $dara.cast(await this.callApi(params, req, runtime), new ListPublishedAgentResponse({}));
|
|
7238
|
-
}
|
|
7239
|
-
else {
|
|
7240
|
-
return $dara.cast(await this.execute(params, req, runtime), new ListPublishedAgentResponse({}));
|
|
7241
|
-
}
|
|
7109
|
+
return $dara.cast(await this.callApi(params, req, runtime), new ListPublishedAgentResponse({}));
|
|
7242
7110
|
}
|
|
7243
7111
|
/**
|
|
7244
7112
|
* 查询已发布的智能体应用列表
|
|
@@ -7341,12 +7209,7 @@ class Client extends openapi_core_1.default {
|
|
|
7341
7209
|
reqBodyType: "json",
|
|
7342
7210
|
bodyType: "json",
|
|
7343
7211
|
});
|
|
7344
|
-
|
|
7345
|
-
return $dara.cast(await this.callApi(params, req, runtime), new RetrieveResponse({}));
|
|
7346
|
-
}
|
|
7347
|
-
else {
|
|
7348
|
-
return $dara.cast(await this.execute(params, req, runtime), new RetrieveResponse({}));
|
|
7349
|
-
}
|
|
7212
|
+
return $dara.cast(await this.callApi(params, req, runtime), new RetrieveResponse({}));
|
|
7350
7213
|
}
|
|
7351
7214
|
/**
|
|
7352
7215
|
* Queries information from a specified knowledge base.
|
|
@@ -7392,12 +7255,24 @@ class Client extends openapi_core_1.default {
|
|
|
7392
7255
|
if (!$dara.isNull(request.categoryIdsShrink)) {
|
|
7393
7256
|
query["CategoryIds"] = request.categoryIdsShrink;
|
|
7394
7257
|
}
|
|
7258
|
+
if (!$dara.isNull(request.chunkMode)) {
|
|
7259
|
+
query["ChunkMode"] = request.chunkMode;
|
|
7260
|
+
}
|
|
7261
|
+
if (!$dara.isNull(request.chunkSize)) {
|
|
7262
|
+
query["ChunkSize"] = request.chunkSize;
|
|
7263
|
+
}
|
|
7395
7264
|
if (!$dara.isNull(request.documentIdsShrink)) {
|
|
7396
7265
|
query["DocumentIds"] = request.documentIdsShrink;
|
|
7397
7266
|
}
|
|
7398
7267
|
if (!$dara.isNull(request.indexId)) {
|
|
7399
7268
|
query["IndexId"] = request.indexId;
|
|
7400
7269
|
}
|
|
7270
|
+
if (!$dara.isNull(request.overlapSize)) {
|
|
7271
|
+
query["OverlapSize"] = request.overlapSize;
|
|
7272
|
+
}
|
|
7273
|
+
if (!$dara.isNull(request.separator)) {
|
|
7274
|
+
query["Separator"] = request.separator;
|
|
7275
|
+
}
|
|
7401
7276
|
if (!$dara.isNull(request.sourceType)) {
|
|
7402
7277
|
query["SourceType"] = request.sourceType;
|
|
7403
7278
|
}
|
|
@@ -7416,12 +7291,7 @@ class Client extends openapi_core_1.default {
|
|
|
7416
7291
|
reqBodyType: "json",
|
|
7417
7292
|
bodyType: "json",
|
|
7418
7293
|
});
|
|
7419
|
-
|
|
7420
|
-
return $dara.cast(await this.callApi(params, req, runtime), new SubmitIndexAddDocumentsJobResponse({}));
|
|
7421
|
-
}
|
|
7422
|
-
else {
|
|
7423
|
-
return $dara.cast(await this.execute(params, req, runtime), new SubmitIndexAddDocumentsJobResponse({}));
|
|
7424
|
-
}
|
|
7294
|
+
return $dara.cast(await this.callApi(params, req, runtime), new SubmitIndexAddDocumentsJobResponse({}));
|
|
7425
7295
|
}
|
|
7426
7296
|
/**
|
|
7427
7297
|
* Adds parsed documents to an unstructured knowledge base.
|
|
@@ -7475,12 +7345,7 @@ class Client extends openapi_core_1.default {
|
|
|
7475
7345
|
reqBodyType: "json",
|
|
7476
7346
|
bodyType: "json",
|
|
7477
7347
|
});
|
|
7478
|
-
|
|
7479
|
-
return $dara.cast(await this.callApi(params, req, runtime), new SubmitIndexJobResponse({}));
|
|
7480
|
-
}
|
|
7481
|
-
else {
|
|
7482
|
-
return $dara.cast(await this.execute(params, req, runtime), new SubmitIndexJobResponse({}));
|
|
7483
|
-
}
|
|
7348
|
+
return $dara.cast(await this.callApi(params, req, runtime), new SubmitIndexJobResponse({}));
|
|
7484
7349
|
}
|
|
7485
7350
|
/**
|
|
7486
7351
|
* Submits a specified CreateIndex job to complete knowledge base creation.
|
|
@@ -7548,12 +7413,7 @@ class Client extends openapi_core_1.default {
|
|
|
7548
7413
|
reqBodyType: "formData",
|
|
7549
7414
|
bodyType: "json",
|
|
7550
7415
|
});
|
|
7551
|
-
|
|
7552
|
-
return $dara.cast(await this.callApi(params, req, runtime), new UpdateAndPublishAgentResponse({}));
|
|
7553
|
-
}
|
|
7554
|
-
else {
|
|
7555
|
-
return $dara.cast(await this.execute(params, req, runtime), new UpdateAndPublishAgentResponse({}));
|
|
7556
|
-
}
|
|
7416
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdateAndPublishAgentResponse({}));
|
|
7557
7417
|
}
|
|
7558
7418
|
/**
|
|
7559
7419
|
* 更新并发布智能体应用
|
|
@@ -7615,12 +7475,7 @@ class Client extends openapi_core_1.default {
|
|
|
7615
7475
|
reqBodyType: "formData",
|
|
7616
7476
|
bodyType: "json",
|
|
7617
7477
|
});
|
|
7618
|
-
|
|
7619
|
-
return $dara.cast(await this.callApi(params, req, runtime), new UpdateAndPublishAgentSelectiveResponse({}));
|
|
7620
|
-
}
|
|
7621
|
-
else {
|
|
7622
|
-
return $dara.cast(await this.execute(params, req, runtime), new UpdateAndPublishAgentSelectiveResponse({}));
|
|
7623
|
-
}
|
|
7478
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdateAndPublishAgentSelectiveResponse({}));
|
|
7624
7479
|
}
|
|
7625
7480
|
/**
|
|
7626
7481
|
* 选择更新并发布智能体应用
|
|
@@ -7667,12 +7522,7 @@ class Client extends openapi_core_1.default {
|
|
|
7667
7522
|
reqBodyType: "formData",
|
|
7668
7523
|
bodyType: "json",
|
|
7669
7524
|
});
|
|
7670
|
-
|
|
7671
|
-
return $dara.cast(await this.callApi(params, req, runtime), new UpdateFileTagResponse({}));
|
|
7672
|
-
}
|
|
7673
|
-
else {
|
|
7674
|
-
return $dara.cast(await this.execute(params, req, runtime), new UpdateFileTagResponse({}));
|
|
7675
|
-
}
|
|
7525
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdateFileTagResponse({}));
|
|
7676
7526
|
}
|
|
7677
7527
|
/**
|
|
7678
7528
|
* 更新文档Tag
|
|
@@ -7714,12 +7564,7 @@ class Client extends openapi_core_1.default {
|
|
|
7714
7564
|
reqBodyType: "json",
|
|
7715
7565
|
bodyType: "json",
|
|
7716
7566
|
});
|
|
7717
|
-
|
|
7718
|
-
return $dara.cast(await this.callApi(params, req, runtime), new UpdateMemoryResponse({}));
|
|
7719
|
-
}
|
|
7720
|
-
else {
|
|
7721
|
-
return $dara.cast(await this.execute(params, req, runtime), new UpdateMemoryResponse({}));
|
|
7722
|
-
}
|
|
7567
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdateMemoryResponse({}));
|
|
7723
7568
|
}
|
|
7724
7569
|
/**
|
|
7725
7570
|
* 更新memory
|
|
@@ -7761,12 +7606,7 @@ class Client extends openapi_core_1.default {
|
|
|
7761
7606
|
reqBodyType: "json",
|
|
7762
7607
|
bodyType: "json",
|
|
7763
7608
|
});
|
|
7764
|
-
|
|
7765
|
-
return $dara.cast(await this.callApi(params, req, runtime), new UpdateMemoryNodeResponse({}));
|
|
7766
|
-
}
|
|
7767
|
-
else {
|
|
7768
|
-
return $dara.cast(await this.execute(params, req, runtime), new UpdateMemoryNodeResponse({}));
|
|
7769
|
-
}
|
|
7609
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdateMemoryNodeResponse({}));
|
|
7770
7610
|
}
|
|
7771
7611
|
/**
|
|
7772
7612
|
* 更新记忆Node
|
|
@@ -7811,12 +7651,7 @@ class Client extends openapi_core_1.default {
|
|
|
7811
7651
|
reqBodyType: "json",
|
|
7812
7652
|
bodyType: "json",
|
|
7813
7653
|
});
|
|
7814
|
-
|
|
7815
|
-
return $dara.cast(await this.callApi(params, req, runtime), new UpdatePromptTemplateResponse({}));
|
|
7816
|
-
}
|
|
7817
|
-
else {
|
|
7818
|
-
return $dara.cast(await this.execute(params, req, runtime), new UpdatePromptTemplateResponse({}));
|
|
7819
|
-
}
|
|
7654
|
+
return $dara.cast(await this.callApi(params, req, runtime), new UpdatePromptTemplateResponse({}));
|
|
7820
7655
|
}
|
|
7821
7656
|
/**
|
|
7822
7657
|
* Updates a prompt template based on the template ID.
|