@alicloud/bailian20231229 1.10.2 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -91,7 +91,7 @@ export declare class AddCategoryResponse extends $tea.Model {
91
91
  export declare class AddFileRequest extends $tea.Model {
92
92
  /**
93
93
  * @remarks
94
- * The primary key ID of the category to which the document is uploaded. This parameter corresponds to the `CategoryId` returned by the [AddCategory](https://help.aliyun.com/zh/model-studio/developer-reference/api-bailian-2023-12-29-addcategory) operation. You can also click the ID icon next to the category name on the Unstructured Data tab of the [Data Management](https://bailian.console.aliyun.com/#/data-center) page to view the ID. You can set the parameter to default, which specifies the Default Category created by the system.
94
+ * The primary key ID of the category to which the document is uploaded. This parameter corresponds to the `CategoryId`<props="china"> returned by the [AddCategory](https://www.alibabacloud.com/help/zh/model-studio/developer-reference/api-bailian-2023-12-29-addcategory) operation. You can also click the ID icon next to the category name on the Unstructured Data tab of the [Data Management](https://bailian.console.alibabacloud.com/#/data-center) page to view the ID. You can set the parameter to default, which specifies the Default Category created by the system.
95
95
  *
96
96
  * This parameter is required.
97
97
  *
@@ -101,7 +101,7 @@ export declare class AddFileRequest extends $tea.Model {
101
101
  categoryId?: string;
102
102
  /**
103
103
  * @remarks
104
- * The lease ID, which corresponds to the `FileUploadLeaseId` parameter returned by the [ApplyFileUploadLease](https://help.aliyun.com/zh/model-studio/developer-reference/api-bailian-2023-12-29-applyfileuploadlease) operation.
104
+ * The lease ID, which corresponds to the `FileUploadLeaseId` parameter returned by the [ApplyFileUploadLease](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-applyfileuploadlease) operation.
105
105
  *
106
106
  * This parameter is required.
107
107
  *
@@ -139,7 +139,7 @@ export declare class AddFileRequest extends $tea.Model {
139
139
  export declare class AddFileShrinkRequest extends $tea.Model {
140
140
  /**
141
141
  * @remarks
142
- * The primary key ID of the category to which the document is uploaded. This parameter corresponds to the `CategoryId` returned by the [AddCategory](https://help.aliyun.com/zh/model-studio/developer-reference/api-bailian-2023-12-29-addcategory) operation. You can also click the ID icon next to the category name on the Unstructured Data tab of the [Data Management](https://bailian.console.aliyun.com/#/data-center) page to view the ID. You can set the parameter to default, which specifies the Default Category created by the system.
142
+ * The primary key ID of the category to which the document is uploaded. This parameter corresponds to the `CategoryId`<props="china"> returned by the [AddCategory](https://www.alibabacloud.com/help/zh/model-studio/developer-reference/api-bailian-2023-12-29-addcategory) operation. You can also click the ID icon next to the category name on the Unstructured Data tab of the [Data Management](https://bailian.console.alibabacloud.com/#/data-center) page to view the ID. You can set the parameter to default, which specifies the Default Category created by the system.
143
143
  *
144
144
  * This parameter is required.
145
145
  *
@@ -149,7 +149,7 @@ export declare class AddFileShrinkRequest extends $tea.Model {
149
149
  categoryId?: string;
150
150
  /**
151
151
  * @remarks
152
- * The lease ID, which corresponds to the `FileUploadLeaseId` parameter returned by the [ApplyFileUploadLease](https://help.aliyun.com/zh/model-studio/developer-reference/api-bailian-2023-12-29-applyfileuploadlease) operation.
152
+ * The lease ID, which corresponds to the `FileUploadLeaseId` parameter returned by the [ApplyFileUploadLease](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-applyfileuploadlease) operation.
153
153
  *
154
154
  * This parameter is required.
155
155
  *
@@ -377,6 +377,7 @@ export declare class CreateAndPulishAgentRequest extends $tea.Model {
377
377
  instructions?: string;
378
378
  modelId?: string;
379
379
  name?: string;
380
+ sampleLibrary?: CreateAndPulishAgentRequestSampleLibrary;
380
381
  static names(): {
381
382
  [key: string]: string;
382
383
  };
@@ -392,6 +393,7 @@ export declare class CreateAndPulishAgentShrinkRequest extends $tea.Model {
392
393
  instructions?: string;
393
394
  modelId?: string;
394
395
  name?: string;
396
+ sampleLibraryShrink?: string;
395
397
  static names(): {
396
398
  [key: string]: string;
397
399
  };
@@ -3277,6 +3279,7 @@ export declare class UpdateAndPublishAgentRequest extends $tea.Model {
3277
3279
  instructions?: string;
3278
3280
  modelId?: string;
3279
3281
  name?: string;
3282
+ sampleLibrary?: UpdateAndPublishAgentRequestSampleLibrary;
3280
3283
  static names(): {
3281
3284
  [key: string]: string;
3282
3285
  };
@@ -3292,6 +3295,7 @@ export declare class UpdateAndPublishAgentShrinkRequest extends $tea.Model {
3292
3295
  instructions?: string;
3293
3296
  modelId?: string;
3294
3297
  name?: string;
3298
+ sampleLibraryShrink?: string;
3295
3299
  static names(): {
3296
3300
  [key: string]: string;
3297
3301
  };
@@ -3335,6 +3339,71 @@ export declare class UpdateAndPublishAgentResponse extends $tea.Model {
3335
3339
  [key: string]: any;
3336
3340
  });
3337
3341
  }
3342
+ export declare class UpdateAndPublishAgentSelectiveRequest extends $tea.Model {
3343
+ applicationConfig?: UpdateAndPublishAgentSelectiveRequestApplicationConfig;
3344
+ instructions?: string;
3345
+ modelId?: string;
3346
+ name?: string;
3347
+ sampleLibrary?: UpdateAndPublishAgentSelectiveRequestSampleLibrary;
3348
+ static names(): {
3349
+ [key: string]: string;
3350
+ };
3351
+ static types(): {
3352
+ [key: string]: any;
3353
+ };
3354
+ constructor(map?: {
3355
+ [key: string]: any;
3356
+ });
3357
+ }
3358
+ export declare class UpdateAndPublishAgentSelectiveShrinkRequest extends $tea.Model {
3359
+ applicationConfigShrink?: string;
3360
+ instructions?: string;
3361
+ modelId?: string;
3362
+ name?: string;
3363
+ sampleLibraryShrink?: string;
3364
+ static names(): {
3365
+ [key: string]: string;
3366
+ };
3367
+ static types(): {
3368
+ [key: string]: any;
3369
+ };
3370
+ constructor(map?: {
3371
+ [key: string]: any;
3372
+ });
3373
+ }
3374
+ export declare class UpdateAndPublishAgentSelectiveResponseBody extends $tea.Model {
3375
+ code?: string;
3376
+ data?: string;
3377
+ httpStatusCode?: number;
3378
+ message?: string;
3379
+ requestId?: string;
3380
+ success?: boolean;
3381
+ static names(): {
3382
+ [key: string]: string;
3383
+ };
3384
+ static types(): {
3385
+ [key: string]: any;
3386
+ };
3387
+ constructor(map?: {
3388
+ [key: string]: any;
3389
+ });
3390
+ }
3391
+ export declare class UpdateAndPublishAgentSelectiveResponse extends $tea.Model {
3392
+ headers?: {
3393
+ [key: string]: string;
3394
+ };
3395
+ statusCode?: number;
3396
+ body?: UpdateAndPublishAgentSelectiveResponseBody;
3397
+ static names(): {
3398
+ [key: string]: string;
3399
+ };
3400
+ static types(): {
3401
+ [key: string]: any;
3402
+ };
3403
+ constructor(map?: {
3404
+ [key: string]: any;
3405
+ });
3406
+ }
3338
3407
  export declare class UpdateFileTagRequest extends $tea.Model {
3339
3408
  /**
3340
3409
  * @remarks
@@ -3723,9 +3792,17 @@ export declare class CreateAndPulishAgentRequestApplicationConfigParameters exte
3723
3792
  });
3724
3793
  }
3725
3794
  export declare class CreateAndPulishAgentRequestApplicationConfigRagConfig extends $tea.Model {
3795
+ answerScope?: string;
3726
3796
  enableCitation?: boolean;
3727
3797
  enableSearch?: boolean;
3798
+ enableWebSearch?: boolean;
3799
+ fixedReplyDetail?: string;
3728
3800
  knowledgeBaseCodeList?: string[];
3801
+ promptStrategy?: string;
3802
+ ragRejectType?: string;
3803
+ rejectFilterPrompt?: string;
3804
+ rejectFilterType?: string;
3805
+ retrieveMaxLength?: number;
3729
3806
  topK?: number;
3730
3807
  static names(): {
3731
3808
  [key: string]: string;
@@ -3791,6 +3868,20 @@ export declare class CreateAndPulishAgentRequestApplicationConfig extends $tea.M
3791
3868
  [key: string]: any;
3792
3869
  });
3793
3870
  }
3871
+ export declare class CreateAndPulishAgentRequestSampleLibrary extends $tea.Model {
3872
+ enableSample?: boolean;
3873
+ sampleLibraryIdList?: string[];
3874
+ topK?: number;
3875
+ static names(): {
3876
+ [key: string]: string;
3877
+ };
3878
+ static types(): {
3879
+ [key: string]: any;
3880
+ };
3881
+ constructor(map?: {
3882
+ [key: string]: any;
3883
+ });
3884
+ }
3794
3885
  export declare class CreateIndexRequestColumns extends $tea.Model {
3795
3886
  column?: string;
3796
3887
  isRecall?: boolean;
@@ -5163,9 +5254,17 @@ export declare class UpdateAndPublishAgentRequestApplicationConfigParameters ext
5163
5254
  });
5164
5255
  }
5165
5256
  export declare class UpdateAndPublishAgentRequestApplicationConfigRagConfig extends $tea.Model {
5257
+ answerScope?: string;
5166
5258
  enableCitation?: boolean;
5167
5259
  enableSearch?: boolean;
5260
+ enableWebSearch?: boolean;
5261
+ fixedReplyDetail?: string;
5168
5262
  knowledgeBaseCodeList?: string[];
5263
+ promptStrategy?: string;
5264
+ ragRejectType?: string;
5265
+ rejectFilterPrompt?: string;
5266
+ rejectFilterType?: string;
5267
+ retrieveMaxLength?: number;
5169
5268
  topK?: number;
5170
5269
  static names(): {
5171
5270
  [key: string]: string;
@@ -5231,6 +5330,153 @@ export declare class UpdateAndPublishAgentRequestApplicationConfig extends $tea.
5231
5330
  [key: string]: any;
5232
5331
  });
5233
5332
  }
5333
+ export declare class UpdateAndPublishAgentRequestSampleLibrary extends $tea.Model {
5334
+ enableSample?: boolean;
5335
+ sampleLibraryIdList?: string[];
5336
+ topK?: number;
5337
+ static names(): {
5338
+ [key: string]: string;
5339
+ };
5340
+ static types(): {
5341
+ [key: string]: any;
5342
+ };
5343
+ constructor(map?: {
5344
+ [key: string]: any;
5345
+ });
5346
+ }
5347
+ export declare class UpdateAndPublishAgentSelectiveRequestApplicationConfigHistoryConfig extends $tea.Model {
5348
+ enableAdbRecord?: boolean;
5349
+ enableRecord?: boolean;
5350
+ instanceId?: string;
5351
+ region?: string;
5352
+ storeCode?: string;
5353
+ static names(): {
5354
+ [key: string]: string;
5355
+ };
5356
+ static types(): {
5357
+ [key: string]: any;
5358
+ };
5359
+ constructor(map?: {
5360
+ [key: string]: any;
5361
+ });
5362
+ }
5363
+ export declare class UpdateAndPublishAgentSelectiveRequestApplicationConfigLongTermMemory extends $tea.Model {
5364
+ enable?: boolean;
5365
+ static names(): {
5366
+ [key: string]: string;
5367
+ };
5368
+ static types(): {
5369
+ [key: string]: any;
5370
+ };
5371
+ constructor(map?: {
5372
+ [key: string]: any;
5373
+ });
5374
+ }
5375
+ export declare class UpdateAndPublishAgentSelectiveRequestApplicationConfigParameters extends $tea.Model {
5376
+ dialogRound?: number;
5377
+ maxTokens?: number;
5378
+ temperature?: number;
5379
+ static names(): {
5380
+ [key: string]: string;
5381
+ };
5382
+ static types(): {
5383
+ [key: string]: any;
5384
+ };
5385
+ constructor(map?: {
5386
+ [key: string]: any;
5387
+ });
5388
+ }
5389
+ export declare class UpdateAndPublishAgentSelectiveRequestApplicationConfigRagConfig extends $tea.Model {
5390
+ answerScope?: string;
5391
+ enableCitation?: boolean;
5392
+ enableSearch?: boolean;
5393
+ enableWebSearch?: string;
5394
+ fixedReplyDetail?: string;
5395
+ knowledgeBaseCodeList?: string[];
5396
+ promptStrategy?: string;
5397
+ ragRejectType?: string;
5398
+ rejectFilterPrompt?: string;
5399
+ rejectFilterType?: string;
5400
+ retrieveMaxLength?: number;
5401
+ topK?: number;
5402
+ static names(): {
5403
+ [key: string]: string;
5404
+ };
5405
+ static types(): {
5406
+ [key: string]: any;
5407
+ };
5408
+ constructor(map?: {
5409
+ [key: string]: any;
5410
+ });
5411
+ }
5412
+ export declare class UpdateAndPublishAgentSelectiveRequestApplicationConfigSecurity extends $tea.Model {
5413
+ processingStrategy?: string;
5414
+ static names(): {
5415
+ [key: string]: string;
5416
+ };
5417
+ static types(): {
5418
+ [key: string]: any;
5419
+ };
5420
+ constructor(map?: {
5421
+ [key: string]: any;
5422
+ });
5423
+ }
5424
+ export declare class UpdateAndPublishAgentSelectiveRequestApplicationConfigTools extends $tea.Model {
5425
+ type?: string;
5426
+ static names(): {
5427
+ [key: string]: string;
5428
+ };
5429
+ static types(): {
5430
+ [key: string]: any;
5431
+ };
5432
+ constructor(map?: {
5433
+ [key: string]: any;
5434
+ });
5435
+ }
5436
+ export declare class UpdateAndPublishAgentSelectiveRequestApplicationConfigWorkFlows extends $tea.Model {
5437
+ type?: string;
5438
+ static names(): {
5439
+ [key: string]: string;
5440
+ };
5441
+ static types(): {
5442
+ [key: string]: any;
5443
+ };
5444
+ constructor(map?: {
5445
+ [key: string]: any;
5446
+ });
5447
+ }
5448
+ export declare class UpdateAndPublishAgentSelectiveRequestApplicationConfig extends $tea.Model {
5449
+ historyConfig?: UpdateAndPublishAgentSelectiveRequestApplicationConfigHistoryConfig;
5450
+ longTermMemory?: UpdateAndPublishAgentSelectiveRequestApplicationConfigLongTermMemory;
5451
+ parameters?: UpdateAndPublishAgentSelectiveRequestApplicationConfigParameters;
5452
+ ragConfig?: UpdateAndPublishAgentSelectiveRequestApplicationConfigRagConfig;
5453
+ security?: UpdateAndPublishAgentSelectiveRequestApplicationConfigSecurity;
5454
+ tools?: UpdateAndPublishAgentSelectiveRequestApplicationConfigTools[];
5455
+ workFlows?: UpdateAndPublishAgentSelectiveRequestApplicationConfigWorkFlows[];
5456
+ static names(): {
5457
+ [key: string]: string;
5458
+ };
5459
+ static types(): {
5460
+ [key: string]: any;
5461
+ };
5462
+ constructor(map?: {
5463
+ [key: string]: any;
5464
+ });
5465
+ }
5466
+ export declare class UpdateAndPublishAgentSelectiveRequestSampleLibrary extends $tea.Model {
5467
+ enableSample?: boolean;
5468
+ sampleLibraryIdList?: string[];
5469
+ topK?: number;
5470
+ static names(): {
5471
+ [key: string]: string;
5472
+ };
5473
+ static types(): {
5474
+ [key: string]: any;
5475
+ };
5476
+ constructor(map?: {
5477
+ [key: string]: any;
5478
+ });
5479
+ }
5234
5480
  export declare class UpdateFileTagResponseBodyData extends $tea.Model {
5235
5481
  /**
5236
5482
  * @example
@@ -5267,12 +5513,12 @@ export default class Client extends OpenApi {
5267
5513
  */
5268
5514
  addCategory(WorkspaceId: string, request: AddCategoryRequest): Promise<AddCategoryResponse>;
5269
5515
  /**
5270
- * Imports an unstructured document stored in the temporary storage space to Data Management.
5516
+ * 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.
5271
5517
  *
5272
5518
  * @remarks
5273
- * Before you call this operation, make sure that you have obtained the lease and uploaded the document to the temporary storage space by using the [ApplyFileUploadLease](https://help.aliyun.com/zh/model-studio/developer-reference/api-bailian-2023-12-29-applyfileuploadlease) operation. For more information, see [Upload files by calling API](https://help.aliyun.com/zh/model-studio/developer-reference/upload-files-by-calling-api).
5519
+ * Before you call this operation, make sure that you have obtained the lease and uploaded the document to the temporary storage space by using the [ApplyFileUploadLease](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-applyfileuploadlease) operation. For more information, see [Upload files by calling API](https://www.alibabacloud.com/help/en/model-studio/developer-reference/upload-files-by-calling-api).
5274
5520
  * > After you call this operation, the used lease ID expires immediately. Do not use the same lease ID to submit new requests.
5275
- * * You must call this operation within 12 hours after you call the [ApplyFileUploadLease](https://help.aliyun.com/zh/model-studio/developer-reference/api-bailian-2023-12-29-applyfileuploadlease) operation. Otherwise, the lease expires and the request fails.
5521
+ * * You must call this operation within 12 hours after you call the [ApplyFileUploadLease](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-applyfileuploadlease) operation. Otherwise, the lease expires and the request fails.
5276
5522
  * * After you call this operation, the system parses and imports your document. The process takes some time.
5277
5523
  * * This interface is not idempotent.
5278
5524
  *
@@ -5285,12 +5531,12 @@ export default class Client extends OpenApi {
5285
5531
  [key: string]: string;
5286
5532
  }, runtime: $Util.RuntimeOptions): Promise<AddFileResponse>;
5287
5533
  /**
5288
- * Imports an unstructured document stored in the temporary storage space to Data Management.
5534
+ * 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.
5289
5535
  *
5290
5536
  * @remarks
5291
- * Before you call this operation, make sure that you have obtained the lease and uploaded the document to the temporary storage space by using the [ApplyFileUploadLease](https://help.aliyun.com/zh/model-studio/developer-reference/api-bailian-2023-12-29-applyfileuploadlease) operation. For more information, see [Upload files by calling API](https://help.aliyun.com/zh/model-studio/developer-reference/upload-files-by-calling-api).
5537
+ * Before you call this operation, make sure that you have obtained the lease and uploaded the document to the temporary storage space by using the [ApplyFileUploadLease](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-applyfileuploadlease) operation. For more information, see [Upload files by calling API](https://www.alibabacloud.com/help/en/model-studio/developer-reference/upload-files-by-calling-api).
5292
5538
  * > After you call this operation, the used lease ID expires immediately. Do not use the same lease ID to submit new requests.
5293
- * * You must call this operation within 12 hours after you call the [ApplyFileUploadLease](https://help.aliyun.com/zh/model-studio/developer-reference/api-bailian-2023-12-29-applyfileuploadlease) operation. Otherwise, the lease expires and the request fails.
5539
+ * * You must call this operation within 12 hours after you call the [ApplyFileUploadLease](https://www.alibabacloud.com/help/en/model-studio/developer-reference/api-bailian-2023-12-29-applyfileuploadlease) operation. Otherwise, the lease expires and the request fails.
5294
5540
  * * After you call this operation, the system parses and imports your document. The process takes some time.
5295
5541
  * * This interface is not idempotent.
5296
5542
  *
@@ -5984,6 +6230,24 @@ export default class Client extends OpenApi {
5984
6230
  * @returns UpdateAndPublishAgentResponse
5985
6231
  */
5986
6232
  updateAndPublishAgent(workspaceId: string, appCode: string, request: UpdateAndPublishAgentRequest): Promise<UpdateAndPublishAgentResponse>;
6233
+ /**
6234
+ * 选择更新并发布智能体应用
6235
+ *
6236
+ * @param tmpReq - UpdateAndPublishAgentSelectiveRequest
6237
+ * @param headers - map
6238
+ * @param runtime - runtime options for this request RuntimeOptions
6239
+ * @returns UpdateAndPublishAgentSelectiveResponse
6240
+ */
6241
+ updateAndPublishAgentSelectiveWithOptions(workspaceId: string, appCode: string, tmpReq: UpdateAndPublishAgentSelectiveRequest, headers: {
6242
+ [key: string]: string;
6243
+ }, runtime: $Util.RuntimeOptions): Promise<UpdateAndPublishAgentSelectiveResponse>;
6244
+ /**
6245
+ * 选择更新并发布智能体应用
6246
+ *
6247
+ * @param request - UpdateAndPublishAgentSelectiveRequest
6248
+ * @returns UpdateAndPublishAgentSelectiveResponse
6249
+ */
6250
+ updateAndPublishAgentSelective(workspaceId: string, appCode: string, request: UpdateAndPublishAgentSelectiveRequest): Promise<UpdateAndPublishAgentSelectiveResponse>;
5987
6251
  /**
5988
6252
  * 更新文档Tag
5989
6253
  *