@alicloud/bailian20231229 2.4.1 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +168 -14
- package/dist/client.js +320 -14
- package/dist/client.js.map +1 -1
- package/dist/models/ApplyTempStorageLeaseRequest.d.ts +29 -0
- package/dist/models/ApplyTempStorageLeaseRequest.js +60 -0
- package/dist/models/ApplyTempStorageLeaseRequest.js.map +1 -0
- package/dist/models/ApplyTempStorageLeaseResponse.d.ts +19 -0
- package/dist/models/ApplyTempStorageLeaseResponse.js +69 -0
- package/dist/models/ApplyTempStorageLeaseResponse.js.map +1 -0
- package/dist/models/ApplyTempStorageLeaseResponseBody.d.ts +80 -0
- package/dist/models/ApplyTempStorageLeaseResponseBody.js +118 -0
- package/dist/models/ApplyTempStorageLeaseResponseBody.js.map +1 -0
- package/dist/models/ChangeParseSettingRequest.d.ts +83 -0
- package/dist/models/ChangeParseSettingRequest.js +88 -0
- package/dist/models/ChangeParseSettingRequest.js.map +1 -0
- package/dist/models/ChangeParseSettingResponse.d.ts +19 -0
- package/dist/models/ChangeParseSettingResponse.js +69 -0
- package/dist/models/ChangeParseSettingResponse.js.map +1 -0
- package/dist/models/ChangeParseSettingResponseBody.d.ts +81 -0
- package/dist/models/ChangeParseSettingResponseBody.js +90 -0
- package/dist/models/ChangeParseSettingResponseBody.js.map +1 -0
- package/dist/models/ChangeParseSettingShrinkRequest.d.ts +53 -0
- package/dist/models/ChangeParseSettingShrinkRequest.js +64 -0
- package/dist/models/ChangeParseSettingShrinkRequest.js.map +1 -0
- package/dist/models/CreateIndexRequest.d.ts +147 -44
- package/dist/models/CreateIndexRequest.js.map +1 -1
- package/dist/models/CreateIndexResponseBody.d.ts +5 -5
- package/dist/models/CreateIndexShrinkRequest.d.ts +81 -44
- package/dist/models/CreateIndexShrinkRequest.js.map +1 -1
- package/dist/models/DeleteChunkRequest.d.ts +4 -0
- package/dist/models/DeleteChunkRequest.js.map +1 -1
- package/dist/models/DeleteChunkResponseBody.d.ts +19 -1
- package/dist/models/DeleteChunkResponseBody.js.map +1 -1
- package/dist/models/DeleteChunkShrinkRequest.d.ts +4 -0
- package/dist/models/DeleteChunkShrinkRequest.js.map +1 -1
- package/dist/models/GetAvailableParserTypesRequest.d.ts +23 -0
- package/dist/models/GetAvailableParserTypesRequest.js +58 -0
- package/dist/models/GetAvailableParserTypesRequest.js.map +1 -0
- package/dist/models/GetAvailableParserTypesResponse.d.ts +19 -0
- package/dist/models/GetAvailableParserTypesResponse.js +69 -0
- package/dist/models/GetAvailableParserTypesResponse.js.map +1 -0
- package/dist/models/GetAvailableParserTypesResponseBody.d.ts +116 -0
- package/dist/models/GetAvailableParserTypesResponseBody.js +116 -0
- package/dist/models/GetAvailableParserTypesResponseBody.js.map +1 -0
- package/dist/models/GetParseSettingsRequest.d.ts +21 -0
- package/dist/models/GetParseSettingsRequest.js +58 -0
- package/dist/models/GetParseSettingsRequest.js.map +1 -0
- package/dist/models/GetParseSettingsResponse.d.ts +19 -0
- package/dist/models/GetParseSettingsResponse.js +69 -0
- package/dist/models/GetParseSettingsResponse.js.map +1 -0
- package/dist/models/GetParseSettingsResponseBody.d.ts +140 -0
- package/dist/models/GetParseSettingsResponseBody.js +120 -0
- package/dist/models/GetParseSettingsResponseBody.js.map +1 -0
- package/dist/models/HighCodeDeployRequest.d.ts +43 -0
- package/dist/models/HighCodeDeployRequest.js +68 -0
- package/dist/models/HighCodeDeployRequest.js.map +1 -0
- package/dist/models/HighCodeDeployResponse.d.ts +19 -0
- package/dist/models/HighCodeDeployResponse.js +69 -0
- package/dist/models/HighCodeDeployResponse.js.map +1 -0
- package/dist/models/HighCodeDeployResponseBody.d.ts +29 -0
- package/dist/models/HighCodeDeployResponseBody.js +64 -0
- package/dist/models/HighCodeDeployResponseBody.js.map +1 -0
- package/dist/models/ListFileRequest.d.ts +2 -0
- package/dist/models/ListFileRequest.js.map +1 -1
- package/dist/models/ListFileResponseBody.d.ts +11 -0
- package/dist/models/ListFileResponseBody.js.map +1 -1
- package/dist/models/ListIndexFileDetailsResponseBody.d.ts +72 -0
- package/dist/models/ListIndexFileDetailsResponseBody.js.map +1 -1
- package/dist/models/UpdateChunkRequest.d.ts +19 -0
- package/dist/models/UpdateChunkRequest.js.map +1 -1
- package/dist/models/UpdateChunkResponseBody.d.ts +19 -1
- package/dist/models/UpdateChunkResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +24 -0
- package/dist/models/model.js +53 -5
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +345 -14
- package/src/models/ApplyTempStorageLeaseRequest.ts +44 -0
- package/src/models/ApplyTempStorageLeaseResponse.ts +40 -0
- package/src/models/ApplyTempStorageLeaseResponseBody.ts +135 -0
- package/src/models/ChangeParseSettingRequest.ts +117 -0
- package/src/models/ChangeParseSettingResponse.ts +40 -0
- package/src/models/ChangeParseSettingResponseBody.ts +117 -0
- package/src/models/ChangeParseSettingShrinkRequest.ts +72 -0
- package/src/models/CreateIndexRequest.ts +147 -44
- package/src/models/CreateIndexResponseBody.ts +5 -5
- package/src/models/CreateIndexShrinkRequest.ts +81 -44
- package/src/models/DeleteChunkRequest.ts +4 -0
- package/src/models/DeleteChunkResponseBody.ts +19 -1
- package/src/models/DeleteChunkShrinkRequest.ts +4 -0
- package/src/models/GetAvailableParserTypesRequest.ts +36 -0
- package/src/models/GetAvailableParserTypesResponse.ts +40 -0
- package/src/models/GetAvailableParserTypesResponseBody.ts +169 -0
- package/src/models/GetParseSettingsRequest.ts +34 -0
- package/src/models/GetParseSettingsResponse.ts +40 -0
- package/src/models/GetParseSettingsResponseBody.ts +197 -0
- package/src/models/HighCodeDeployRequest.ts +66 -0
- package/src/models/HighCodeDeployResponse.ts +40 -0
- package/src/models/HighCodeDeployResponseBody.ts +48 -0
- package/src/models/ListFileRequest.ts +2 -0
- package/src/models/ListFileResponseBody.ts +11 -0
- package/src/models/ListIndexFileDetailsResponseBody.ts +72 -0
- package/src/models/UpdateChunkRequest.ts +19 -0
- package/src/models/UpdateChunkResponseBody.ts +19 -1
- package/src/models/model.ts +24 -0
package/dist/client.d.ts
CHANGED
|
@@ -106,6 +106,42 @@ export default class Client extends OpenApi {
|
|
|
106
106
|
* @returns ApplyFileUploadLeaseResponse
|
|
107
107
|
*/
|
|
108
108
|
applyFileUploadLease(CategoryId: string, WorkspaceId: string, request: $_model.ApplyFileUploadLeaseRequest): Promise<$_model.ApplyFileUploadLeaseResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* 申请临时文件存储上传许可
|
|
111
|
+
*
|
|
112
|
+
* @param request - ApplyTempStorageLeaseRequest
|
|
113
|
+
* @param headers - map
|
|
114
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
115
|
+
* @returns ApplyTempStorageLeaseResponse
|
|
116
|
+
*/
|
|
117
|
+
applyTempStorageLeaseWithOptions(WorkspaceId: string, request: $_model.ApplyTempStorageLeaseRequest, headers: {
|
|
118
|
+
[key: string]: string;
|
|
119
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ApplyTempStorageLeaseResponse>;
|
|
120
|
+
/**
|
|
121
|
+
* 申请临时文件存储上传许可
|
|
122
|
+
*
|
|
123
|
+
* @param request - ApplyTempStorageLeaseRequest
|
|
124
|
+
* @returns ApplyTempStorageLeaseResponse
|
|
125
|
+
*/
|
|
126
|
+
applyTempStorageLease(WorkspaceId: string, request: $_model.ApplyTempStorageLeaseRequest): Promise<$_model.ApplyTempStorageLeaseResponse>;
|
|
127
|
+
/**
|
|
128
|
+
* Configure the parsing method for a specific file type. For example, use LLM parsing for .pdf files, or use Qwen VL parsing for .jpg files.
|
|
129
|
+
*
|
|
130
|
+
* @param tmpReq - ChangeParseSettingRequest
|
|
131
|
+
* @param headers - map
|
|
132
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
133
|
+
* @returns ChangeParseSettingResponse
|
|
134
|
+
*/
|
|
135
|
+
changeParseSettingWithOptions(WorkspaceId: string, tmpReq: $_model.ChangeParseSettingRequest, headers: {
|
|
136
|
+
[key: string]: string;
|
|
137
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.ChangeParseSettingResponse>;
|
|
138
|
+
/**
|
|
139
|
+
* Configure the parsing method for a specific file type. For example, use LLM parsing for .pdf files, or use Qwen VL parsing for .jpg files.
|
|
140
|
+
*
|
|
141
|
+
* @param request - ChangeParseSettingRequest
|
|
142
|
+
* @returns ChangeParseSettingResponse
|
|
143
|
+
*/
|
|
144
|
+
changeParseSetting(WorkspaceId: string, request: $_model.ChangeParseSettingRequest): Promise<$_model.ChangeParseSettingResponse>;
|
|
109
145
|
/**
|
|
110
146
|
* 创建并发布智能体应用
|
|
111
147
|
*
|
|
@@ -125,12 +161,17 @@ export default class Client extends OpenApi {
|
|
|
125
161
|
*/
|
|
126
162
|
createAndPulishAgent(workspaceId: string, request: $_model.CreateAndPulishAgentRequest): Promise<$_model.CreateAndPulishAgentResponse>;
|
|
127
163
|
/**
|
|
128
|
-
*
|
|
164
|
+
* Create a knowledge base of the document search type.
|
|
129
165
|
*
|
|
130
166
|
* @remarks
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
167
|
+
* **Limits**: This operation can create only knowledge base of the document search type. Data query and image Q\\&A types are not supported. Use the console instead.
|
|
168
|
+
* * **Required permissions**
|
|
169
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:CreateIndex permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
170
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
171
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
172
|
+
* * **What to do next**: This operation only initializes knowledge base creation job. After that, call **SubmitIndexJob** to complete the creation. Otherwise, you will get an empty knowledge base. For more information about the sample code, see [Knowledge base API guide](https://help.aliyun.com/document_detail/2852772.html).
|
|
173
|
+
* * **Idempotence**: This operation is not idempotent. If you call the operation for multiple times, you may create several knowledge bases with the same name. We recommend following a "query first, then create" logic.
|
|
174
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
134
175
|
*
|
|
135
176
|
* @param tmpReq - CreateIndexRequest
|
|
136
177
|
* @param headers - map
|
|
@@ -141,12 +182,17 @@ export default class Client extends OpenApi {
|
|
|
141
182
|
[key: string]: string;
|
|
142
183
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateIndexResponse>;
|
|
143
184
|
/**
|
|
144
|
-
*
|
|
185
|
+
* Create a knowledge base of the document search type.
|
|
145
186
|
*
|
|
146
187
|
* @remarks
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
188
|
+
* **Limits**: This operation can create only knowledge base of the document search type. Data query and image Q\\&A types are not supported. Use the console instead.
|
|
189
|
+
* * **Required permissions**
|
|
190
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:CreateIndex permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
191
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
192
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
193
|
+
* * **What to do next**: This operation only initializes knowledge base creation job. After that, call **SubmitIndexJob** to complete the creation. Otherwise, you will get an empty knowledge base. For more information about the sample code, see [Knowledge base API guide](https://help.aliyun.com/document_detail/2852772.html).
|
|
194
|
+
* * **Idempotence**: This operation is not idempotent. If you call the operation for multiple times, you may create several knowledge bases with the same name. We recommend following a "query first, then create" logic.
|
|
195
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
150
196
|
*
|
|
151
197
|
* @param request - CreateIndexRequest
|
|
152
198
|
* @returns CreateIndexResponse
|
|
@@ -237,7 +283,18 @@ export default class Client extends OpenApi {
|
|
|
237
283
|
*/
|
|
238
284
|
deleteCategory(CategoryId: string, WorkspaceId: string): Promise<$_model.DeleteCategoryResponse>;
|
|
239
285
|
/**
|
|
240
|
-
*
|
|
286
|
+
* Deletes a specified text chunk from a knowledge base. The deleted chunk cannot be retrieved or recalled.
|
|
287
|
+
*
|
|
288
|
+
* @remarks
|
|
289
|
+
* *
|
|
290
|
+
* **Warning** After a text chunk is deleted, it cannot be restored. Proceed with caution.
|
|
291
|
+
* * **Required permissions**:
|
|
292
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:DeleteChunk permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
293
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
294
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
295
|
+
* * **Delay**: The update takes effect immediately. During peak hours, the update may take place in seconds.
|
|
296
|
+
* * **Idempotence**: This operation is idempotent. If you perform a repeated operation on a chunk that has already been deleted, the interface returns a success.
|
|
297
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
241
298
|
*
|
|
242
299
|
* @param tmpReq - DeleteChunkRequest
|
|
243
300
|
* @param headers - map
|
|
@@ -248,7 +305,18 @@ export default class Client extends OpenApi {
|
|
|
248
305
|
[key: string]: string;
|
|
249
306
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteChunkResponse>;
|
|
250
307
|
/**
|
|
251
|
-
*
|
|
308
|
+
* Deletes a specified text chunk from a knowledge base. The deleted chunk cannot be retrieved or recalled.
|
|
309
|
+
*
|
|
310
|
+
* @remarks
|
|
311
|
+
* *
|
|
312
|
+
* **Warning** After a text chunk is deleted, it cannot be restored. Proceed with caution.
|
|
313
|
+
* * **Required permissions**:
|
|
314
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:DeleteChunk permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
315
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
316
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
317
|
+
* * **Delay**: The update takes effect immediately. During peak hours, the update may take place in seconds.
|
|
318
|
+
* * **Idempotence**: This operation is idempotent. If you perform a repeated operation on a chunk that has already been deleted, the interface returns a success.
|
|
319
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
252
320
|
*
|
|
253
321
|
* @param request - DeleteChunkRequest
|
|
254
322
|
* @returns DeleteChunkResponse
|
|
@@ -441,6 +509,24 @@ export default class Client extends OpenApi {
|
|
|
441
509
|
* @returns GetAlipayUrlResponse
|
|
442
510
|
*/
|
|
443
511
|
getAlipayUrl(request: $_model.GetAlipayUrlRequest): Promise<$_model.GetAlipayUrlResponse>;
|
|
512
|
+
/**
|
|
513
|
+
* Lists all supported parser types based on the input file type (file extension).
|
|
514
|
+
*
|
|
515
|
+
* @param request - GetAvailableParserTypesRequest
|
|
516
|
+
* @param headers - map
|
|
517
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
518
|
+
* @returns GetAvailableParserTypesResponse
|
|
519
|
+
*/
|
|
520
|
+
getAvailableParserTypesWithOptions(WorkspaceId: string, request: $_model.GetAvailableParserTypesRequest, headers: {
|
|
521
|
+
[key: string]: string;
|
|
522
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetAvailableParserTypesResponse>;
|
|
523
|
+
/**
|
|
524
|
+
* Lists all supported parser types based on the input file type (file extension).
|
|
525
|
+
*
|
|
526
|
+
* @param request - GetAvailableParserTypesRequest
|
|
527
|
+
* @returns GetAvailableParserTypesResponse
|
|
528
|
+
*/
|
|
529
|
+
getAvailableParserTypes(WorkspaceId: string, request: $_model.GetAvailableParserTypesRequest): Promise<$_model.GetAvailableParserTypesResponse>;
|
|
444
530
|
/**
|
|
445
531
|
* Queries the current status of a specified knowledge base creation or add document job.
|
|
446
532
|
*
|
|
@@ -499,6 +585,24 @@ export default class Client extends OpenApi {
|
|
|
499
585
|
* @returns GetMemoryNodeResponse
|
|
500
586
|
*/
|
|
501
587
|
getMemoryNode(workspaceId: string, memoryId: string, memoryNodeId: string): Promise<$_model.GetMemoryNodeResponse>;
|
|
588
|
+
/**
|
|
589
|
+
* Queries the data parsing settings in a specified category.
|
|
590
|
+
*
|
|
591
|
+
* @param request - GetParseSettingsRequest
|
|
592
|
+
* @param headers - map
|
|
593
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
594
|
+
* @returns GetParseSettingsResponse
|
|
595
|
+
*/
|
|
596
|
+
getParseSettingsWithOptions(WorkspaceId: string, request: $_model.GetParseSettingsRequest, headers: {
|
|
597
|
+
[key: string]: string;
|
|
598
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.GetParseSettingsResponse>;
|
|
599
|
+
/**
|
|
600
|
+
* Queries the data parsing settings in a specified category.
|
|
601
|
+
*
|
|
602
|
+
* @param request - GetParseSettingsRequest
|
|
603
|
+
* @returns GetParseSettingsResponse
|
|
604
|
+
*/
|
|
605
|
+
getParseSettings(WorkspaceId: string, request: $_model.GetParseSettingsRequest): Promise<$_model.GetParseSettingsResponse>;
|
|
502
606
|
/**
|
|
503
607
|
* Obtains a prompt template based on the template ID.
|
|
504
608
|
*
|
|
@@ -529,6 +633,24 @@ export default class Client extends OpenApi {
|
|
|
529
633
|
* @returns GetPublishedAgentResponse
|
|
530
634
|
*/
|
|
531
635
|
getPublishedAgent(workspaceId: string, appCode: string): Promise<$_model.GetPublishedAgentResponse>;
|
|
636
|
+
/**
|
|
637
|
+
* 高代码部署服务
|
|
638
|
+
*
|
|
639
|
+
* @param request - HighCodeDeployRequest
|
|
640
|
+
* @param headers - map
|
|
641
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
642
|
+
* @returns HighCodeDeployResponse
|
|
643
|
+
*/
|
|
644
|
+
highCodeDeployWithOptions(workspaceId: string, request: $_model.HighCodeDeployRequest, headers: {
|
|
645
|
+
[key: string]: string;
|
|
646
|
+
}, runtime: $dara.RuntimeOptions): Promise<$_model.HighCodeDeployResponse>;
|
|
647
|
+
/**
|
|
648
|
+
* 高代码部署服务
|
|
649
|
+
*
|
|
650
|
+
* @param request - HighCodeDeployRequest
|
|
651
|
+
* @returns HighCodeDeployResponse
|
|
652
|
+
*/
|
|
653
|
+
highCodeDeploy(workspaceId: string, request: $_model.HighCodeDeployRequest): Promise<$_model.HighCodeDeployResponse>;
|
|
532
654
|
/**
|
|
533
655
|
* ListCategory
|
|
534
656
|
*
|
|
@@ -574,7 +696,13 @@ export default class Client extends OpenApi {
|
|
|
574
696
|
*/
|
|
575
697
|
listChunks(WorkspaceId: string, request: $_model.ListChunksRequest): Promise<$_model.ListChunksResponse>;
|
|
576
698
|
/**
|
|
577
|
-
*
|
|
699
|
+
* Queries the details of one or more documents in a specified category.
|
|
700
|
+
*
|
|
701
|
+
* @remarks
|
|
702
|
+
* If you are using a RAM user, you must first obtain the OpenAPI management permissions (namely sfm:ListFile) of Model Studio. For more information, see [Grant OpenAPI permissions to a RAM user](https://help.aliyun.com/document_detail/2848578.html). If you are using the Alibaba Cloud account, you do not need permissions. We recommend that you use [the latest version of the SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
|
|
703
|
+
* * During a paged query, set `MaxResults` to specify the maximum number of entries to return. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you query subsequent pages, set the `NextToken` parameter to the `NextToken` obtained in the last returned result. You can also set the `MaxResults` parameter to limit the number of entries to be returned. If no `NextToken` is returned, the result is completely returned and no more requests are required.
|
|
704
|
+
* * This operation is idempotent.
|
|
705
|
+
* **Throttling:** Throttling will be triggered if you call this operation frequently. Do not exceed 5 times per second. If throttling is triggered, try again later.
|
|
578
706
|
*
|
|
579
707
|
* @param request - ListFileRequest
|
|
580
708
|
* @param headers - map
|
|
@@ -585,7 +713,13 @@ export default class Client extends OpenApi {
|
|
|
585
713
|
[key: string]: string;
|
|
586
714
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.ListFileResponse>;
|
|
587
715
|
/**
|
|
588
|
-
*
|
|
716
|
+
* Queries the details of one or more documents in a specified category.
|
|
717
|
+
*
|
|
718
|
+
* @remarks
|
|
719
|
+
* If you are using a RAM user, you must first obtain the OpenAPI management permissions (namely sfm:ListFile) of Model Studio. For more information, see [Grant OpenAPI permissions to a RAM user](https://help.aliyun.com/document_detail/2848578.html). If you are using the Alibaba Cloud account, you do not need permissions. We recommend that you use [the latest version of the SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29) to call this operation.
|
|
720
|
+
* * During a paged query, set `MaxResults` to specify the maximum number of entries to return. The return value of `NextToken` is a pagination token that can be used in the next call to retrieve a new page of results. When you query subsequent pages, set the `NextToken` parameter to the `NextToken` obtained in the last returned result. You can also set the `MaxResults` parameter to limit the number of entries to be returned. If no `NextToken` is returned, the result is completely returned and no more requests are required.
|
|
721
|
+
* * This operation is idempotent.
|
|
722
|
+
* **Throttling:** Throttling will be triggered if you call this operation frequently. Do not exceed 5 times per second. If throttling is triggered, try again later.
|
|
589
723
|
*
|
|
590
724
|
* @param request - ListFileRequest
|
|
591
725
|
* @returns ListFileResponse
|
|
@@ -856,7 +990,17 @@ export default class Client extends OpenApi {
|
|
|
856
990
|
*/
|
|
857
991
|
updateAndPublishAgentSelective(workspaceId: string, appCode: string, request: $_model.UpdateAndPublishAgentSelectiveRequest): Promise<$_model.UpdateAndPublishAgentSelectiveResponse>;
|
|
858
992
|
/**
|
|
859
|
-
*
|
|
993
|
+
* Modifies the content and title of a specified text chunk in the knowledge base, and sets whether the chunk participates in knowledge base retrieval.
|
|
994
|
+
*
|
|
995
|
+
* @remarks
|
|
996
|
+
* **Limits**: This operation supports only knowledge base of the document search type. Data query and image Q\\&A types are not supported.
|
|
997
|
+
* * **Required permissions**:
|
|
998
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:UpdateChunk permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
999
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
1000
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
1001
|
+
* * **Delay**: The update takes effect immediately. During peak hours, the update may take place in seconds.
|
|
1002
|
+
* * **Idempotence**: This operation is idempotent. If you perform a repeated operation on a chunk that has already been updated, the interface returns a success.
|
|
1003
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
860
1004
|
*
|
|
861
1005
|
* @param request - UpdateChunkRequest
|
|
862
1006
|
* @param headers - map
|
|
@@ -867,7 +1011,17 @@ export default class Client extends OpenApi {
|
|
|
867
1011
|
[key: string]: string;
|
|
868
1012
|
}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateChunkResponse>;
|
|
869
1013
|
/**
|
|
870
|
-
*
|
|
1014
|
+
* Modifies the content and title of a specified text chunk in the knowledge base, and sets whether the chunk participates in knowledge base retrieval.
|
|
1015
|
+
*
|
|
1016
|
+
* @remarks
|
|
1017
|
+
* **Limits**: This operation supports only knowledge base of the document search type. Data query and image Q\\&A types are not supported.
|
|
1018
|
+
* * **Required permissions**:
|
|
1019
|
+
* * **RAM users**: Must first obtain the [API permissions](https://help.aliyun.com/document_detail/2848578.html) of Model Studio (such as the `AliyunBailianDataFullAccess` policy, which includes the sfm:UpdateChunk permission required), and [become member of a workspace](https://help.aliyun.com/document_detail/2851098.html).
|
|
1020
|
+
* * **Alibaba Cloud account**: Has the permission by default, and can call the operation directly.
|
|
1021
|
+
* * **Call method**: We recommend using the latest version of the [GenAI Service Platform SDK](https://api.alibabacloud.com/api-tools/sdk/bailian?version=2023-12-29). The SDK encapsulates complex signature computational logic to simplify the call process.
|
|
1022
|
+
* * **Delay**: The update takes effect immediately. During peak hours, the update may take place in seconds.
|
|
1023
|
+
* * **Idempotence**: This operation is idempotent. If you perform a repeated operation on a chunk that has already been updated, the interface returns a success.
|
|
1024
|
+
* **Rate limit:** Rate limiting will be triggered if you call this operation frequently. Do not exceed 10 times per second. If limiting is triggered, try again later.
|
|
871
1025
|
*
|
|
872
1026
|
* @param request - UpdateChunkRequest
|
|
873
1027
|
* @returns UpdateChunkResponse
|