@alicloud/bailian20231229 2.14.1 → 2.14.3
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 +44 -42
- package/dist/client.js +53 -43
- package/dist/client.js.map +1 -1
- package/dist/models/DeleteConnectorResponseBody.d.ts +24 -0
- package/dist/models/DeleteConnectorResponseBody.js.map +1 -1
- package/dist/models/ListIndexFileDetailsRequest.d.ts +3 -3
- package/dist/models/ListIndexFileDetailsResponseBody.d.ts +14 -4
- package/dist/models/ListIndexFileDetailsResponseBody.js.map +1 -1
- package/dist/models/ListIndicesRequest.d.ts +1 -1
- package/dist/models/ListIndicesResponseBody.d.ts +35 -22
- package/dist/models/ListIndicesResponseBody.js +31 -1
- package/dist/models/ListIndicesResponseBody.js.map +1 -1
- package/dist/models/ListPublishedAgentRequest.d.ts +1 -0
- package/dist/models/ListPublishedAgentRequest.js +5 -0
- package/dist/models/ListPublishedAgentRequest.js.map +1 -1
- package/dist/models/ListPublishedAgentResponseBody.d.ts +3 -0
- package/dist/models/ListPublishedAgentResponseBody.js +6 -0
- package/dist/models/ListPublishedAgentResponseBody.js.map +1 -1
- package/dist/models/ListPublishedAgentShrinkRequest.d.ts +16 -0
- package/dist/models/ListPublishedAgentShrinkRequest.js +62 -0
- package/dist/models/ListPublishedAgentShrinkRequest.js.map +1 -0
- package/dist/models/SubmitIndexAddDocumentsJobRequest.d.ts +33 -44
- package/dist/models/SubmitIndexAddDocumentsJobRequest.js.map +1 -1
- package/dist/models/SubmitIndexAddDocumentsJobResponseBody.d.ts +8 -9
- package/dist/models/SubmitIndexAddDocumentsJobResponseBody.js.map +1 -1
- package/dist/models/SubmitIndexAddDocumentsJobShrinkRequest.d.ts +33 -44
- package/dist/models/SubmitIndexAddDocumentsJobShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +2 -0
- package/dist/models/model.js +14 -10
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +55 -43
- package/src/models/DeleteConnectorResponseBody.ts +24 -0
- package/src/models/ListIndexFileDetailsRequest.ts +3 -3
- package/src/models/ListIndexFileDetailsResponseBody.ts +14 -4
- package/src/models/ListIndicesRequest.ts +1 -1
- package/src/models/ListIndicesResponseBody.ts +56 -22
- package/src/models/ListPublishedAgentRequest.ts +6 -0
- package/src/models/ListPublishedAgentResponseBody.ts +9 -0
- package/src/models/ListPublishedAgentShrinkRequest.ts +33 -0
- package/src/models/SubmitIndexAddDocumentsJobRequest.ts +33 -44
- package/src/models/SubmitIndexAddDocumentsJobResponseBody.ts +8 -9
- package/src/models/SubmitIndexAddDocumentsJobShrinkRequest.ts +33 -44
- package/src/models/model.ts +2 -0
package/dist/client.d.ts
CHANGED
|
@@ -521,13 +521,13 @@ export default class Client extends OpenApi {
|
|
|
521
521
|
*/
|
|
522
522
|
deleteChunk(WorkspaceId: string, request: $_model.DeleteChunkRequest): Promise<$_model.DeleteChunkResponse>;
|
|
523
523
|
/**
|
|
524
|
-
*
|
|
524
|
+
* Deletes a connector.
|
|
525
525
|
*
|
|
526
526
|
* @remarks
|
|
527
|
-
* - RAM
|
|
528
|
-
* -
|
|
529
|
-
*
|
|
530
|
-
*
|
|
527
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:DeleteConnector permission), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Use the latest [Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
|
|
528
|
+
* - This operation is not idempotent.
|
|
529
|
+
* **Throttling:**
|
|
530
|
+
* This operation is throttled if called too frequently. Do not exceed 5 calls per second. If throttled, retry later.
|
|
531
531
|
*
|
|
532
532
|
* @param request - DeleteConnectorRequest
|
|
533
533
|
* @param headers - map
|
|
@@ -538,13 +538,13 @@ export default class Client extends OpenApi {
|
|
|
538
538
|
[key: string]: string;
|
|
539
539
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteConnectorResponse>;
|
|
540
540
|
/**
|
|
541
|
-
*
|
|
541
|
+
* Deletes a connector.
|
|
542
542
|
*
|
|
543
543
|
* @remarks
|
|
544
|
-
* - RAM
|
|
545
|
-
* -
|
|
546
|
-
*
|
|
547
|
-
*
|
|
544
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:DeleteConnector permission), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Use the latest [Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
|
|
545
|
+
* - This operation is not idempotent.
|
|
546
|
+
* **Throttling:**
|
|
547
|
+
* This operation is throttled if called too frequently. Do not exceed 5 calls per second. If throttled, retry later.
|
|
548
548
|
*
|
|
549
549
|
* @param request - DeleteConnectorRequest
|
|
550
550
|
* @returns DeleteConnectorResponse
|
|
@@ -1211,12 +1211,12 @@ export default class Client extends OpenApi {
|
|
|
1211
1211
|
*/
|
|
1212
1212
|
listIndexDocuments(WorkspaceId: string, request: $_model.ListIndexDocumentsRequest): Promise<$_model.ListIndexDocumentsResponse>;
|
|
1213
1213
|
/**
|
|
1214
|
-
* Retrieves
|
|
1214
|
+
* Retrieves files and their details from a specified knowledge base.
|
|
1215
1215
|
*
|
|
1216
1216
|
* @remarks
|
|
1217
|
-
* - RAM users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndexFiles permission), before
|
|
1218
|
-
* - Before
|
|
1219
|
-
* - This operation
|
|
1217
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndexFiles permission), before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Invoke this operation through the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29).
|
|
1218
|
+
* - Before invoking this operation, make sure your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).
|
|
1219
|
+
* - This operation has idempotence.
|
|
1220
1220
|
*
|
|
1221
1221
|
* @param request - ListIndexFileDetailsRequest
|
|
1222
1222
|
* @param headers - map
|
|
@@ -1227,12 +1227,12 @@ export default class Client extends OpenApi {
|
|
|
1227
1227
|
[key: string]: string;
|
|
1228
1228
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListIndexFileDetailsResponse>;
|
|
1229
1229
|
/**
|
|
1230
|
-
* Retrieves
|
|
1230
|
+
* Retrieves files and their details from a specified knowledge base.
|
|
1231
1231
|
*
|
|
1232
1232
|
* @remarks
|
|
1233
|
-
* - RAM users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndexFiles permission), before
|
|
1234
|
-
* - Before
|
|
1235
|
-
* - This operation
|
|
1233
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndexFiles permission), before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Invoke this operation through the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29).
|
|
1234
|
+
* - Before invoking this operation, make sure your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).
|
|
1235
|
+
* - This operation has idempotence.
|
|
1236
1236
|
*
|
|
1237
1237
|
* @param request - ListIndexFileDetailsRequest
|
|
1238
1238
|
* @returns ListIndexFileDetailsResponse
|
|
@@ -1242,8 +1242,8 @@ export default class Client extends OpenApi {
|
|
|
1242
1242
|
* Retrieves the list of knowledge bases in a specified workspace.
|
|
1243
1243
|
*
|
|
1244
1244
|
* @remarks
|
|
1245
|
-
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndex permission)
|
|
1246
|
-
* - This operation
|
|
1245
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndex permission). Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to invoke this operation.
|
|
1246
|
+
* - This operation has idempotence.
|
|
1247
1247
|
* **Rate limit:**
|
|
1248
1248
|
* This operation is throttled if called too frequently. Do not exceed 10 calls per second. If throttled, retry later.
|
|
1249
1249
|
*
|
|
@@ -1259,8 +1259,8 @@ export default class Client extends OpenApi {
|
|
|
1259
1259
|
* Retrieves the list of knowledge bases in a specified workspace.
|
|
1260
1260
|
*
|
|
1261
1261
|
* @remarks
|
|
1262
|
-
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndex permission)
|
|
1263
|
-
* - This operation
|
|
1262
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndex permission). Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to invoke this operation.
|
|
1263
|
+
* - This operation has idempotence.
|
|
1264
1264
|
* **Rate limit:**
|
|
1265
1265
|
* This operation is throttled if called too frequently. Do not exceed 10 calls per second. If throttled, retry later.
|
|
1266
1266
|
*
|
|
@@ -1335,12 +1335,12 @@ export default class Client extends OpenApi {
|
|
|
1335
1335
|
/**
|
|
1336
1336
|
* 查询已发布的智能体应用列表
|
|
1337
1337
|
*
|
|
1338
|
-
* @param
|
|
1338
|
+
* @param tmpReq - ListPublishedAgentRequest
|
|
1339
1339
|
* @param headers - map
|
|
1340
1340
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1341
1341
|
* @returns ListPublishedAgentResponse
|
|
1342
1342
|
*/
|
|
1343
|
-
listPublishedAgentWithOptions(workspaceId: string,
|
|
1343
|
+
listPublishedAgentWithOptions(workspaceId: string, tmpReq: $_model.ListPublishedAgentRequest, headers: {
|
|
1344
1344
|
[key: string]: string;
|
|
1345
1345
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListPublishedAgentResponse>;
|
|
1346
1346
|
/**
|
|
@@ -1401,19 +1401,20 @@ export default class Client extends OpenApi {
|
|
|
1401
1401
|
*/
|
|
1402
1402
|
retrieve(WorkspaceId: string, request: $_model.RetrieveRequest): Promise<$_model.RetrieveResponse>;
|
|
1403
1403
|
/**
|
|
1404
|
-
*
|
|
1404
|
+
* Appends parsed files to a specified knowledge base.
|
|
1405
1405
|
*
|
|
1406
1406
|
* @remarks
|
|
1407
1407
|
* <props="china">
|
|
1408
|
-
* - This
|
|
1408
|
+
* - This operation does not support data query or image Q&A knowledge bases. For information about how to update data query or image Q&A knowledge bases, see the knowledge base update instructions in [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
|
|
1409
1409
|
* <props="intl">
|
|
1410
|
-
* - This
|
|
1411
|
-
* -
|
|
1412
|
-
* - Before
|
|
1413
|
-
* - Before
|
|
1414
|
-
* - After
|
|
1415
|
-
* -
|
|
1416
|
-
* **Rate
|
|
1410
|
+
* - This operation does not support data query or image Q&A knowledge bases. For information about how to update data query or image Q&A knowledge bases, see the knowledge base update instructions in [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
|
|
1411
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Model Studio (requiring `AliyunBailianDataFullAccess`, which includes the sfm:SubmitIndexAddDocumentsJob permission), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to invoke this operation.
|
|
1412
|
+
* - Before invoking this operation, make sure that your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).
|
|
1413
|
+
* - Before invoking this operation, invoke the **AddFile** operation to upload the files you want to append to Model Studio.
|
|
1414
|
+
* - After invoking this operation, the node requires time to execute and may take several hours during peak periods. Do not submit duplicate requests before the node is complete. To query the node execution status, invoke the **GetIndexJobStatus** operation. The `Documents` file list returned by this operation contains all files in this append job (uniquely identified by the `job_id` you provide), and you can check whether each file was imported (parsed) successfully. Note that invoking GetIndexJobStatus too frequently will trigger rate limiting. Do not exceed a frequency of 20 times per minute.
|
|
1415
|
+
* - After this operation is invoked successfully, it takes some time to execute. Do not submit duplicate requests before the response is returned. This operation does not have idempotence.
|
|
1416
|
+
* **Rate limit:**
|
|
1417
|
+
* Frequent calls to this operation will be throttled. Do not exceed 10 calls per second. If throttled, retry later.
|
|
1417
1418
|
*
|
|
1418
1419
|
* @param tmpReq - SubmitIndexAddDocumentsJobRequest
|
|
1419
1420
|
* @param headers - map
|
|
@@ -1424,19 +1425,20 @@ export default class Client extends OpenApi {
|
|
|
1424
1425
|
[key: string]: string;
|
|
1425
1426
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.SubmitIndexAddDocumentsJobResponse>;
|
|
1426
1427
|
/**
|
|
1427
|
-
*
|
|
1428
|
+
* Appends parsed files to a specified knowledge base.
|
|
1428
1429
|
*
|
|
1429
1430
|
* @remarks
|
|
1430
1431
|
* <props="china">
|
|
1431
|
-
* - This
|
|
1432
|
+
* - This operation does not support data query or image Q&A knowledge bases. For information about how to update data query or image Q&A knowledge bases, see the knowledge base update instructions in [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
|
|
1432
1433
|
* <props="intl">
|
|
1433
|
-
* - This
|
|
1434
|
-
* -
|
|
1435
|
-
* - Before
|
|
1436
|
-
* - Before
|
|
1437
|
-
* - After
|
|
1438
|
-
* -
|
|
1439
|
-
* **Rate
|
|
1434
|
+
* - This operation does not support data query or image Q&A knowledge bases. For information about how to update data query or image Q&A knowledge bases, see the knowledge base update instructions in [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
|
|
1435
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Model Studio (requiring `AliyunBailianDataFullAccess`, which includes the sfm:SubmitIndexAddDocumentsJob permission), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to invoke this operation.
|
|
1436
|
+
* - Before invoking this operation, make sure that your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).
|
|
1437
|
+
* - Before invoking this operation, invoke the **AddFile** operation to upload the files you want to append to Model Studio.
|
|
1438
|
+
* - After invoking this operation, the node requires time to execute and may take several hours during peak periods. Do not submit duplicate requests before the node is complete. To query the node execution status, invoke the **GetIndexJobStatus** operation. The `Documents` file list returned by this operation contains all files in this append job (uniquely identified by the `job_id` you provide), and you can check whether each file was imported (parsed) successfully. Note that invoking GetIndexJobStatus too frequently will trigger rate limiting. Do not exceed a frequency of 20 times per minute.
|
|
1439
|
+
* - After this operation is invoked successfully, it takes some time to execute. Do not submit duplicate requests before the response is returned. This operation does not have idempotence.
|
|
1440
|
+
* **Rate limit:**
|
|
1441
|
+
* Frequent calls to this operation will be throttled. Do not exceed 10 calls per second. If throttled, retry later.
|
|
1440
1442
|
*
|
|
1441
1443
|
* @param request - SubmitIndexAddDocumentsJobRequest
|
|
1442
1444
|
* @returns SubmitIndexAddDocumentsJobResponse
|
package/dist/client.js
CHANGED
|
@@ -1284,13 +1284,13 @@ class Client extends openapi_core_1.default {
|
|
|
1284
1284
|
return await this.deleteChunkWithOptions(WorkspaceId, request, headers, runtime);
|
|
1285
1285
|
}
|
|
1286
1286
|
/**
|
|
1287
|
-
*
|
|
1287
|
+
* Deletes a connector.
|
|
1288
1288
|
*
|
|
1289
1289
|
* @remarks
|
|
1290
|
-
* - RAM
|
|
1291
|
-
* -
|
|
1292
|
-
*
|
|
1293
|
-
*
|
|
1290
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:DeleteConnector permission), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Use the latest [Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
|
|
1291
|
+
* - This operation is not idempotent.
|
|
1292
|
+
* **Throttling:**
|
|
1293
|
+
* This operation is throttled if called too frequently. Do not exceed 5 calls per second. If throttled, retry later.
|
|
1294
1294
|
*
|
|
1295
1295
|
* @param request - DeleteConnectorRequest
|
|
1296
1296
|
* @param headers - map
|
|
@@ -1316,13 +1316,13 @@ class Client extends openapi_core_1.default {
|
|
|
1316
1316
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteConnectorResponse({}));
|
|
1317
1317
|
}
|
|
1318
1318
|
/**
|
|
1319
|
-
*
|
|
1319
|
+
* Deletes a connector.
|
|
1320
1320
|
*
|
|
1321
1321
|
* @remarks
|
|
1322
|
-
* - RAM
|
|
1323
|
-
* -
|
|
1324
|
-
*
|
|
1325
|
-
*
|
|
1322
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:DeleteConnector permission), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before calling this operation. Alibaba Cloud accounts can call this operation directly without authorization. Use the latest [Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
|
|
1323
|
+
* - This operation is not idempotent.
|
|
1324
|
+
* **Throttling:**
|
|
1325
|
+
* This operation is throttled if called too frequently. Do not exceed 5 calls per second. If throttled, retry later.
|
|
1326
1326
|
*
|
|
1327
1327
|
* @param request - DeleteConnectorRequest
|
|
1328
1328
|
* @returns DeleteConnectorResponse
|
|
@@ -2638,12 +2638,12 @@ class Client extends openapi_core_1.default {
|
|
|
2638
2638
|
return await this.listIndexDocumentsWithOptions(WorkspaceId, request, headers, runtime);
|
|
2639
2639
|
}
|
|
2640
2640
|
/**
|
|
2641
|
-
* Retrieves
|
|
2641
|
+
* Retrieves files and their details from a specified knowledge base.
|
|
2642
2642
|
*
|
|
2643
2643
|
* @remarks
|
|
2644
|
-
* - RAM users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndexFiles permission), before
|
|
2645
|
-
* - Before
|
|
2646
|
-
* - This operation
|
|
2644
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndexFiles permission), before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Invoke this operation through the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29).
|
|
2645
|
+
* - Before invoking this operation, make sure your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).
|
|
2646
|
+
* - This operation has idempotence.
|
|
2647
2647
|
*
|
|
2648
2648
|
* @param request - ListIndexFileDetailsRequest
|
|
2649
2649
|
* @param headers - map
|
|
@@ -2689,12 +2689,12 @@ class Client extends openapi_core_1.default {
|
|
|
2689
2689
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListIndexFileDetailsResponse({}));
|
|
2690
2690
|
}
|
|
2691
2691
|
/**
|
|
2692
|
-
* Retrieves
|
|
2692
|
+
* Retrieves files and their details from a specified knowledge base.
|
|
2693
2693
|
*
|
|
2694
2694
|
* @remarks
|
|
2695
|
-
* - RAM users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndexFiles permission), before
|
|
2696
|
-
* - Before
|
|
2697
|
-
* - This operation
|
|
2695
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndexFiles permission), before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Invoke this operation through the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29).
|
|
2696
|
+
* - Before invoking this operation, make sure your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).
|
|
2697
|
+
* - This operation has idempotence.
|
|
2698
2698
|
*
|
|
2699
2699
|
* @param request - ListIndexFileDetailsRequest
|
|
2700
2700
|
* @returns ListIndexFileDetailsResponse
|
|
@@ -2708,8 +2708,8 @@ class Client extends openapi_core_1.default {
|
|
|
2708
2708
|
* Retrieves the list of knowledge bases in a specified workspace.
|
|
2709
2709
|
*
|
|
2710
2710
|
* @remarks
|
|
2711
|
-
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndex permission)
|
|
2712
|
-
* - This operation
|
|
2711
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndex permission). Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to invoke this operation.
|
|
2712
|
+
* - This operation has idempotence.
|
|
2713
2713
|
* **Rate limit:**
|
|
2714
2714
|
* This operation is throttled if called too frequently. Do not exceed 10 calls per second. If throttled, retry later.
|
|
2715
2715
|
*
|
|
@@ -2751,8 +2751,8 @@ class Client extends openapi_core_1.default {
|
|
|
2751
2751
|
* Retrieves the list of knowledge bases in a specified workspace.
|
|
2752
2752
|
*
|
|
2753
2753
|
* @remarks
|
|
2754
|
-
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndex permission)
|
|
2755
|
-
* - This operation
|
|
2754
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Alibaba Cloud Model Studio (requires `AliyunBailianDataFullAccess`, which includes the sfm:ListIndex permission). Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Alibaba Cloud Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Alibaba Cloud Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to invoke this operation.
|
|
2755
|
+
* - This operation has idempotence.
|
|
2756
2756
|
* **Rate limit:**
|
|
2757
2757
|
* This operation is throttled if called too frequently. Do not exceed 10 calls per second. If throttled, retry later.
|
|
2758
2758
|
*
|
|
@@ -2918,13 +2918,18 @@ class Client extends openapi_core_1.default {
|
|
|
2918
2918
|
/**
|
|
2919
2919
|
* 查询已发布的智能体应用列表
|
|
2920
2920
|
*
|
|
2921
|
-
* @param
|
|
2921
|
+
* @param tmpReq - ListPublishedAgentRequest
|
|
2922
2922
|
* @param headers - map
|
|
2923
2923
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2924
2924
|
* @returns ListPublishedAgentResponse
|
|
2925
2925
|
*/
|
|
2926
|
-
async listPublishedAgentWithOptions(workspaceId,
|
|
2927
|
-
|
|
2926
|
+
async listPublishedAgentWithOptions(workspaceId, tmpReq, headers, runtime) {
|
|
2927
|
+
tmpReq.validate();
|
|
2928
|
+
let request = new $_model.ListPublishedAgentShrinkRequest({});
|
|
2929
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
2930
|
+
if (!$dara.isNull(tmpReq.subTypes)) {
|
|
2931
|
+
request.subTypesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.subTypes, "subTypes", "json");
|
|
2932
|
+
}
|
|
2928
2933
|
let query = {};
|
|
2929
2934
|
if (!$dara.isNull(request.pageNo)) {
|
|
2930
2935
|
query["pageNo"] = request.pageNo;
|
|
@@ -2932,6 +2937,9 @@ class Client extends openapi_core_1.default {
|
|
|
2932
2937
|
if (!$dara.isNull(request.pageSize)) {
|
|
2933
2938
|
query["pageSize"] = request.pageSize;
|
|
2934
2939
|
}
|
|
2940
|
+
if (!$dara.isNull(request.subTypesShrink)) {
|
|
2941
|
+
query["subTypes"] = request.subTypesShrink;
|
|
2942
|
+
}
|
|
2935
2943
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2936
2944
|
headers: headers,
|
|
2937
2945
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
@@ -3097,19 +3105,20 @@ class Client extends openapi_core_1.default {
|
|
|
3097
3105
|
return await this.retrieveWithOptions(WorkspaceId, request, headers, runtime);
|
|
3098
3106
|
}
|
|
3099
3107
|
/**
|
|
3100
|
-
*
|
|
3108
|
+
* Appends parsed files to a specified knowledge base.
|
|
3101
3109
|
*
|
|
3102
3110
|
* @remarks
|
|
3103
3111
|
* <props="china">
|
|
3104
|
-
* - This
|
|
3112
|
+
* - This operation does not support data query or image Q&A knowledge bases. For information about how to update data query or image Q&A knowledge bases, see the knowledge base update instructions in [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
|
|
3105
3113
|
* <props="intl">
|
|
3106
|
-
* - This
|
|
3107
|
-
* -
|
|
3108
|
-
* - Before
|
|
3109
|
-
* - Before
|
|
3110
|
-
* - After
|
|
3111
|
-
* -
|
|
3112
|
-
* **Rate
|
|
3114
|
+
* - This operation does not support data query or image Q&A knowledge bases. For information about how to update data query or image Q&A knowledge bases, see the knowledge base update instructions in [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
|
|
3115
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Model Studio (requiring `AliyunBailianDataFullAccess`, which includes the sfm:SubmitIndexAddDocumentsJob permission), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to invoke this operation.
|
|
3116
|
+
* - Before invoking this operation, make sure that your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).
|
|
3117
|
+
* - Before invoking this operation, invoke the **AddFile** operation to upload the files you want to append to Model Studio.
|
|
3118
|
+
* - After invoking this operation, the node requires time to execute and may take several hours during peak periods. Do not submit duplicate requests before the node is complete. To query the node execution status, invoke the **GetIndexJobStatus** operation. The `Documents` file list returned by this operation contains all files in this append job (uniquely identified by the `job_id` you provide), and you can check whether each file was imported (parsed) successfully. Note that invoking GetIndexJobStatus too frequently will trigger rate limiting. Do not exceed a frequency of 20 times per minute.
|
|
3119
|
+
* - After this operation is invoked successfully, it takes some time to execute. Do not submit duplicate requests before the response is returned. This operation does not have idempotence.
|
|
3120
|
+
* **Rate limit:**
|
|
3121
|
+
* Frequent calls to this operation will be throttled. Do not exceed 10 calls per second. If throttled, retry later.
|
|
3113
3122
|
*
|
|
3114
3123
|
* @param tmpReq - SubmitIndexAddDocumentsJobRequest
|
|
3115
3124
|
* @param headers - map
|
|
@@ -3178,19 +3187,20 @@ class Client extends openapi_core_1.default {
|
|
|
3178
3187
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SubmitIndexAddDocumentsJobResponse({}));
|
|
3179
3188
|
}
|
|
3180
3189
|
/**
|
|
3181
|
-
*
|
|
3190
|
+
* Appends parsed files to a specified knowledge base.
|
|
3182
3191
|
*
|
|
3183
3192
|
* @remarks
|
|
3184
3193
|
* <props="china">
|
|
3185
|
-
* - This
|
|
3194
|
+
* - This operation does not support data query or image Q&A knowledge bases. For information about how to update data query or image Q&A knowledge bases, see the knowledge base update instructions in [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
|
|
3186
3195
|
* <props="intl">
|
|
3187
|
-
* - This
|
|
3188
|
-
* -
|
|
3189
|
-
* - Before
|
|
3190
|
-
* - Before
|
|
3191
|
-
* - After
|
|
3192
|
-
* -
|
|
3193
|
-
* **Rate
|
|
3196
|
+
* - This operation does not support data query or image Q&A knowledge bases. For information about how to update data query or image Q&A knowledge bases, see the knowledge base update instructions in [Knowledge base](https://help.aliyun.com/document_detail/2807740.html).
|
|
3197
|
+
* - Resource Access Management (RAM) users must first obtain [API permissions](https://help.aliyun.com/document_detail/2848578.html) for Model Studio (requiring `AliyunBailianDataFullAccess`, which includes the sfm:SubmitIndexAddDocumentsJob permission), and [join a workspace](https://help.aliyun.com/document_detail/2851098.html) before invoking this operation. Alibaba Cloud accounts can invoke this operation directly without authorization. Use the latest <props="china">[Model Studio SDK](https://api.aliyun.com/api-tools/sdk/bailian?version=2023-12-29)<props="intl">[Model Studio SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to invoke this operation.
|
|
3198
|
+
* - Before invoking this operation, make sure that your knowledge base has been created and has not been deleted (that is, the knowledge base ID `IndexId` is valid).
|
|
3199
|
+
* - Before invoking this operation, invoke the **AddFile** operation to upload the files you want to append to Model Studio.
|
|
3200
|
+
* - After invoking this operation, the node requires time to execute and may take several hours during peak periods. Do not submit duplicate requests before the node is complete. To query the node execution status, invoke the **GetIndexJobStatus** operation. The `Documents` file list returned by this operation contains all files in this append job (uniquely identified by the `job_id` you provide), and you can check whether each file was imported (parsed) successfully. Note that invoking GetIndexJobStatus too frequently will trigger rate limiting. Do not exceed a frequency of 20 times per minute.
|
|
3201
|
+
* - After this operation is invoked successfully, it takes some time to execute. Do not submit duplicate requests before the response is returned. This operation does not have idempotence.
|
|
3202
|
+
* **Rate limit:**
|
|
3203
|
+
* Frequent calls to this operation will be throttled. Do not exceed 10 calls per second. If throttled, retry later.
|
|
3194
3204
|
*
|
|
3195
3205
|
* @param request - SubmitIndexAddDocumentsJobRequest
|
|
3196
3206
|
* @returns SubmitIndexAddDocumentsJobResponse
|