@alicloud/bailian20231229 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/client.ts CHANGED
@@ -911,6 +911,7 @@ export class GetIndexJobStatusResponseBodyDataDocuments extends $dara.Model {
911
911
  * The name of the document.
912
912
  */
913
913
  docName?: string;
914
+ gmtModified?: number;
914
915
  /**
915
916
  * @remarks
916
917
  * The error message.
@@ -937,6 +938,7 @@ export class GetIndexJobStatusResponseBodyDataDocuments extends $dara.Model {
937
938
  code: 'Code',
938
939
  docId: 'DocId',
939
940
  docName: 'DocName',
941
+ gmtModified: 'GmtModified',
940
942
  message: 'Message',
941
943
  status: 'Status',
942
944
  };
@@ -947,6 +949,7 @@ export class GetIndexJobStatusResponseBodyDataDocuments extends $dara.Model {
947
949
  code: 'string',
948
950
  docId: 'string',
949
951
  docName: 'string',
952
+ gmtModified: 'number',
950
953
  message: 'string',
951
954
  status: 'string',
952
955
  };
@@ -1649,6 +1652,7 @@ export class ListIndexDocumentsResponseBodyDataDocuments extends $dara.Model {
1649
1652
  * pdf
1650
1653
  */
1651
1654
  documentType?: string;
1655
+ gmtModified?: number;
1652
1656
  /**
1653
1657
  * @remarks
1654
1658
  * The primary key ID of the document.
@@ -1705,6 +1709,7 @@ export class ListIndexDocumentsResponseBodyDataDocuments extends $dara.Model {
1705
1709
  return {
1706
1710
  code: 'Code',
1707
1711
  documentType: 'DocumentType',
1712
+ gmtModified: 'GmtModified',
1708
1713
  id: 'Id',
1709
1714
  message: 'Message',
1710
1715
  name: 'Name',
@@ -1718,6 +1723,7 @@ export class ListIndexDocumentsResponseBodyDataDocuments extends $dara.Model {
1718
1723
  return {
1719
1724
  code: 'string',
1720
1725
  documentType: 'string',
1726
+ gmtModified: 'number',
1721
1727
  id: 'string',
1722
1728
  message: 'string',
1723
1729
  name: 'string',
@@ -2127,18 +2133,36 @@ export class ListMemoryNodesResponseBodyMemoryNodes extends $dara.Model {
2127
2133
  }
2128
2134
 
2129
2135
  export class ListPromptTemplatesResponseBodyPromptTemplates extends $dara.Model {
2136
+ /**
2137
+ * @remarks
2138
+ * The template content
2139
+ */
2130
2140
  content?: string;
2141
+ /**
2142
+ * @remarks
2143
+ * The template name.
2144
+ */
2131
2145
  name?: string;
2132
2146
  /**
2147
+ * @remarks
2148
+ * The template ID.
2149
+ *
2133
2150
  * @example
2134
2151
  * d6935b7efbe34d11b13df9307151cf8c
2135
2152
  */
2136
2153
  promptTemplateId?: string;
2137
2154
  /**
2155
+ * @remarks
2156
+ * The template type.
2157
+ *
2138
2158
  * @example
2139
2159
  * "System"
2140
2160
  */
2141
2161
  type?: string;
2162
+ /**
2163
+ * @remarks
2164
+ * The variables of the template.
2165
+ */
2142
2166
  variables?: string[];
2143
2167
  static names(): { [key: string]: string } {
2144
2168
  return {
@@ -5713,6 +5737,9 @@ export class DeleteMemoryNodeResponse extends $dara.Model {
5713
5737
 
5714
5738
  export class DeletePromptTemplateResponseBody extends $dara.Model {
5715
5739
  /**
5740
+ * @remarks
5741
+ * The request ID.
5742
+ *
5716
5743
  * @example
5717
5744
  * FE9B6CBF-47E6-5D76-9C5D-B814DD5ABxxx
5718
5745
  */
@@ -6239,24 +6266,44 @@ export class GetMemoryNodeResponse extends $dara.Model {
6239
6266
  }
6240
6267
 
6241
6268
  export class GetPromptTemplateResponseBody extends $dara.Model {
6269
+ /**
6270
+ * @remarks
6271
+ * The template content.
6272
+ */
6242
6273
  content?: string;
6274
+ /**
6275
+ * @remarks
6276
+ * The template name.
6277
+ */
6243
6278
  name?: string;
6244
6279
  /**
6280
+ * @remarks
6281
+ * The template ID.
6282
+ *
6245
6283
  * @example
6246
6284
  * 6e49109bfeb94a39bb268f4e483ccxxx
6247
6285
  */
6248
6286
  promptTemplateId?: string;
6249
6287
  /**
6288
+ * @remarks
6289
+ * The request ID.
6290
+ *
6250
6291
  * @example
6251
6292
  * 8C56C7AF-6573-19CE-B018-E05E1EDCF4C5
6252
6293
  */
6253
6294
  requestId?: string;
6254
6295
  /**
6296
+ * @remarks
6297
+ * The variables of the template.
6298
+ *
6255
6299
  * @example
6256
6300
  * ["theme"]
6257
6301
  */
6258
6302
  variables?: string[];
6259
6303
  /**
6304
+ * @remarks
6305
+ * The workspace ID.
6306
+ *
6260
6307
  * @example
6261
6308
  * llm-us9hjmt32nysdxxx
6262
6309
  */
@@ -7514,17 +7561,30 @@ export class ListMemoryNodesResponse extends $dara.Model {
7514
7561
 
7515
7562
  export class ListPromptTemplatesRequest extends $dara.Model {
7516
7563
  /**
7564
+ * @remarks
7565
+ * The maximum number of returned entries.
7566
+ *
7517
7567
  * @example
7518
7568
  * 10
7519
7569
  */
7520
7570
  maxResults?: number;
7571
+ /**
7572
+ * @remarks
7573
+ * The keyword that is used to search for templates.
7574
+ */
7521
7575
  name?: string;
7522
7576
  /**
7577
+ * @remarks
7578
+ * The token that determines the start position of the query. Set this parameter to the value of the NextToken parameter that is returned from the last call.
7579
+ *
7523
7580
  * @example
7524
7581
  * dc270401186b433f975d7e1faaa34e0e
7525
7582
  */
7526
7583
  nextToken?: string;
7527
7584
  /**
7585
+ * @remarks
7586
+ * The type of the template. Valid values: · System · Custom
7587
+ *
7528
7588
  * @example
7529
7589
  * System
7530
7590
  */
@@ -7558,27 +7618,46 @@ export class ListPromptTemplatesRequest extends $dara.Model {
7558
7618
 
7559
7619
  export class ListPromptTemplatesResponseBody extends $dara.Model {
7560
7620
  /**
7621
+ * @remarks
7622
+ * The maximum number of returned entries.
7623
+ *
7561
7624
  * @example
7562
7625
  * 10
7563
7626
  */
7564
7627
  maxResults?: number;
7565
7628
  /**
7629
+ * @remarks
7630
+ * The token that determines the start position of the next query.
7631
+ *
7566
7632
  * @example
7567
7633
  * dc270401186b433f975d7e1faaa34e0e
7568
7634
  */
7569
7635
  nextToken?: string;
7636
+ /**
7637
+ * @remarks
7638
+ * The templates.
7639
+ */
7570
7640
  promptTemplates?: ListPromptTemplatesResponseBodyPromptTemplates[];
7571
7641
  /**
7642
+ * @remarks
7643
+ * The request ID.
7644
+ *
7572
7645
  * @example
7573
7646
  * FE9B6CBF-47E6-5D76-9C5D-B814DD5AB071
7574
7647
  */
7575
7648
  requestId?: string;
7576
7649
  /**
7650
+ * @remarks
7651
+ * The total number of entries returned.
7652
+ *
7577
7653
  * @example
7578
7654
  * 15
7579
7655
  */
7580
7656
  totalCount?: number;
7581
7657
  /**
7658
+ * @remarks
7659
+ * The workspace ID.
7660
+ *
7582
7661
  * @example
7583
7662
  * llm-us9hjmt32nysdxxx
7584
7663
  */
@@ -9221,7 +9300,15 @@ export class UpdateMemoryNodeResponse extends $dara.Model {
9221
9300
  }
9222
9301
 
9223
9302
  export class UpdatePromptTemplateRequest extends $dara.Model {
9303
+ /**
9304
+ * @remarks
9305
+ * The template content.
9306
+ */
9224
9307
  content?: string;
9308
+ /**
9309
+ * @remarks
9310
+ * The template name.
9311
+ */
9225
9312
  name?: string;
9226
9313
  static names(): { [key: string]: string } {
9227
9314
  return {
@@ -9248,6 +9335,9 @@ export class UpdatePromptTemplateRequest extends $dara.Model {
9248
9335
 
9249
9336
  export class UpdatePromptTemplateResponseBody extends $dara.Model {
9250
9337
  /**
9338
+ * @remarks
9339
+ * The request ID.
9340
+ *
9251
9341
  * @example
9252
9342
  * FE9B6CBF-47E6-5D76-9C5D-B814DD5ABxxx
9253
9343
  */
@@ -9332,6 +9422,8 @@ export default class Client extends OpenApi {
9332
9422
  }
9333
9423
 
9334
9424
  /**
9425
+ * 添加类目
9426
+ *
9335
9427
  * @param request - AddCategoryRequest
9336
9428
  * @param headers - map
9337
9429
  * @param runtime - runtime options for this request RuntimeOptions
@@ -9367,10 +9459,17 @@ export default class Client extends OpenApi {
9367
9459
  reqBodyType: "formData",
9368
9460
  bodyType: "json",
9369
9461
  });
9370
- return $dara.cast<AddCategoryResponse>(await this.callApi(params, req, runtime), new AddCategoryResponse({}));
9462
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9463
+ return $dara.cast<AddCategoryResponse>(await this.callApi(params, req, runtime), new AddCategoryResponse({}));
9464
+ } else {
9465
+ return $dara.cast<AddCategoryResponse>(await this.execute(params, req, runtime), new AddCategoryResponse({}));
9466
+ }
9467
+
9371
9468
  }
9372
9469
 
9373
9470
  /**
9471
+ * 添加类目
9472
+ *
9374
9473
  * @param request - AddCategoryRequest
9375
9474
  * @returns AddCategoryResponse
9376
9475
  */
@@ -9439,7 +9538,12 @@ export default class Client extends OpenApi {
9439
9538
  reqBodyType: "formData",
9440
9539
  bodyType: "json",
9441
9540
  });
9442
- return $dara.cast<AddFileResponse>(await this.callApi(params, req, runtime), new AddFileResponse({}));
9541
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9542
+ return $dara.cast<AddFileResponse>(await this.callApi(params, req, runtime), new AddFileResponse({}));
9543
+ } else {
9544
+ return $dara.cast<AddFileResponse>(await this.execute(params, req, runtime), new AddFileResponse({}));
9545
+ }
9546
+
9443
9547
  }
9444
9548
 
9445
9549
  /**
@@ -9509,7 +9613,12 @@ export default class Client extends OpenApi {
9509
9613
  reqBodyType: "formData",
9510
9614
  bodyType: "json",
9511
9615
  });
9512
- return $dara.cast<ApplyFileUploadLeaseResponse>(await this.callApi(params, req, runtime), new ApplyFileUploadLeaseResponse({}));
9616
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9617
+ return $dara.cast<ApplyFileUploadLeaseResponse>(await this.callApi(params, req, runtime), new ApplyFileUploadLeaseResponse({}));
9618
+ } else {
9619
+ return $dara.cast<ApplyFileUploadLeaseResponse>(await this.execute(params, req, runtime), new ApplyFileUploadLeaseResponse({}));
9620
+ }
9621
+
9513
9622
  }
9514
9623
 
9515
9624
  /**
@@ -9586,7 +9695,12 @@ export default class Client extends OpenApi {
9586
9695
  reqBodyType: "formData",
9587
9696
  bodyType: "json",
9588
9697
  });
9589
- return $dara.cast<CreateAndPulishAgentResponse>(await this.callApi(params, req, runtime), new CreateAndPulishAgentResponse({}));
9698
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9699
+ return $dara.cast<CreateAndPulishAgentResponse>(await this.callApi(params, req, runtime), new CreateAndPulishAgentResponse({}));
9700
+ } else {
9701
+ return $dara.cast<CreateAndPulishAgentResponse>(await this.execute(params, req, runtime), new CreateAndPulishAgentResponse({}));
9702
+ }
9703
+
9590
9704
  }
9591
9705
 
9592
9706
  /**
@@ -9730,7 +9844,12 @@ export default class Client extends OpenApi {
9730
9844
  reqBodyType: "json",
9731
9845
  bodyType: "json",
9732
9846
  });
9733
- return $dara.cast<CreateIndexResponse>(await this.callApi(params, req, runtime), new CreateIndexResponse({}));
9847
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9848
+ return $dara.cast<CreateIndexResponse>(await this.callApi(params, req, runtime), new CreateIndexResponse({}));
9849
+ } else {
9850
+ return $dara.cast<CreateIndexResponse>(await this.execute(params, req, runtime), new CreateIndexResponse({}));
9851
+ }
9852
+
9734
9853
  }
9735
9854
 
9736
9855
  /**
@@ -9780,7 +9899,12 @@ export default class Client extends OpenApi {
9780
9899
  reqBodyType: "json",
9781
9900
  bodyType: "json",
9782
9901
  });
9783
- return $dara.cast<CreateMemoryResponse>(await this.callApi(params, req, runtime), new CreateMemoryResponse({}));
9902
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9903
+ return $dara.cast<CreateMemoryResponse>(await this.callApi(params, req, runtime), new CreateMemoryResponse({}));
9904
+ } else {
9905
+ return $dara.cast<CreateMemoryResponse>(await this.execute(params, req, runtime), new CreateMemoryResponse({}));
9906
+ }
9907
+
9784
9908
  }
9785
9909
 
9786
9910
  /**
@@ -9825,7 +9949,12 @@ export default class Client extends OpenApi {
9825
9949
  reqBodyType: "json",
9826
9950
  bodyType: "json",
9827
9951
  });
9828
- return $dara.cast<CreateMemoryNodeResponse>(await this.callApi(params, req, runtime), new CreateMemoryNodeResponse({}));
9952
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9953
+ return $dara.cast<CreateMemoryNodeResponse>(await this.callApi(params, req, runtime), new CreateMemoryNodeResponse({}));
9954
+ } else {
9955
+ return $dara.cast<CreateMemoryNodeResponse>(await this.execute(params, req, runtime), new CreateMemoryNodeResponse({}));
9956
+ }
9957
+
9829
9958
  }
9830
9959
 
9831
9960
  /**
@@ -9841,7 +9970,7 @@ export default class Client extends OpenApi {
9841
9970
  }
9842
9971
 
9843
9972
  /**
9844
- * 创建Prompt模板
9973
+ * Creates a prompt template.
9845
9974
  *
9846
9975
  * @param request - CreatePromptTemplateRequest
9847
9976
  * @param headers - map
@@ -9874,11 +10003,16 @@ export default class Client extends OpenApi {
9874
10003
  reqBodyType: "json",
9875
10004
  bodyType: "json",
9876
10005
  });
9877
- return $dara.cast<CreatePromptTemplateResponse>(await this.callApi(params, req, runtime), new CreatePromptTemplateResponse({}));
10006
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10007
+ return $dara.cast<CreatePromptTemplateResponse>(await this.callApi(params, req, runtime), new CreatePromptTemplateResponse({}));
10008
+ } else {
10009
+ return $dara.cast<CreatePromptTemplateResponse>(await this.execute(params, req, runtime), new CreatePromptTemplateResponse({}));
10010
+ }
10011
+
9878
10012
  }
9879
10013
 
9880
10014
  /**
9881
- * 创建Prompt模板
10015
+ * Creates a prompt template.
9882
10016
  *
9883
10017
  * @param request - CreatePromptTemplateRequest
9884
10018
  * @returns CreatePromptTemplateResponse
@@ -9911,7 +10045,12 @@ export default class Client extends OpenApi {
9911
10045
  reqBodyType: "json",
9912
10046
  bodyType: "json",
9913
10047
  });
9914
- return $dara.cast<DeleteAgentResponse>(await this.callApi(params, req, runtime), new DeleteAgentResponse({}));
10048
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10049
+ return $dara.cast<DeleteAgentResponse>(await this.callApi(params, req, runtime), new DeleteAgentResponse({}));
10050
+ } else {
10051
+ return $dara.cast<DeleteAgentResponse>(await this.execute(params, req, runtime), new DeleteAgentResponse({}));
10052
+ }
10053
+
9915
10054
  }
9916
10055
 
9917
10056
  /**
@@ -9925,6 +10064,8 @@ export default class Client extends OpenApi {
9925
10064
  }
9926
10065
 
9927
10066
  /**
10067
+ * 删除类目
10068
+ *
9928
10069
  * @param headers - map
9929
10070
  * @param runtime - runtime options for this request RuntimeOptions
9930
10071
  * @returns DeleteCategoryResponse
@@ -9944,10 +10085,16 @@ export default class Client extends OpenApi {
9944
10085
  reqBodyType: "json",
9945
10086
  bodyType: "json",
9946
10087
  });
9947
- return $dara.cast<DeleteCategoryResponse>(await this.callApi(params, req, runtime), new DeleteCategoryResponse({}));
10088
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10089
+ return $dara.cast<DeleteCategoryResponse>(await this.callApi(params, req, runtime), new DeleteCategoryResponse({}));
10090
+ } else {
10091
+ return $dara.cast<DeleteCategoryResponse>(await this.execute(params, req, runtime), new DeleteCategoryResponse({}));
10092
+ }
10093
+
9948
10094
  }
9949
10095
 
9950
10096
  /**
10097
+ * 删除类目
9951
10098
  * @returns DeleteCategoryResponse
9952
10099
  */
9953
10100
  async deleteCategory(CategoryId: string, WorkspaceId: string): Promise<DeleteCategoryResponse> {
@@ -9978,7 +10125,12 @@ export default class Client extends OpenApi {
9978
10125
  reqBodyType: "json",
9979
10126
  bodyType: "json",
9980
10127
  });
9981
- return $dara.cast<DeleteFileResponse>(await this.callApi(params, req, runtime), new DeleteFileResponse({}));
10128
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10129
+ return $dara.cast<DeleteFileResponse>(await this.callApi(params, req, runtime), new DeleteFileResponse({}));
10130
+ } else {
10131
+ return $dara.cast<DeleteFileResponse>(await this.execute(params, req, runtime), new DeleteFileResponse({}));
10132
+ }
10133
+
9982
10134
  }
9983
10135
 
9984
10136
  /**
@@ -10028,7 +10180,12 @@ export default class Client extends OpenApi {
10028
10180
  reqBodyType: "json",
10029
10181
  bodyType: "json",
10030
10182
  });
10031
- return $dara.cast<DeleteIndexResponse>(await this.callApi(params, req, runtime), new DeleteIndexResponse({}));
10183
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10184
+ return $dara.cast<DeleteIndexResponse>(await this.callApi(params, req, runtime), new DeleteIndexResponse({}));
10185
+ } else {
10186
+ return $dara.cast<DeleteIndexResponse>(await this.execute(params, req, runtime), new DeleteIndexResponse({}));
10187
+ }
10188
+
10032
10189
  }
10033
10190
 
10034
10191
  /**
@@ -10097,7 +10254,12 @@ export default class Client extends OpenApi {
10097
10254
  reqBodyType: "json",
10098
10255
  bodyType: "json",
10099
10256
  });
10100
- return $dara.cast<DeleteIndexDocumentResponse>(await this.callApi(params, req, runtime), new DeleteIndexDocumentResponse({}));
10257
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10258
+ return $dara.cast<DeleteIndexDocumentResponse>(await this.callApi(params, req, runtime), new DeleteIndexDocumentResponse({}));
10259
+ } else {
10260
+ return $dara.cast<DeleteIndexDocumentResponse>(await this.execute(params, req, runtime), new DeleteIndexDocumentResponse({}));
10261
+ }
10262
+
10101
10263
  }
10102
10264
 
10103
10265
  /**
@@ -10141,7 +10303,12 @@ export default class Client extends OpenApi {
10141
10303
  reqBodyType: "json",
10142
10304
  bodyType: "json",
10143
10305
  });
10144
- return $dara.cast<DeleteMemoryResponse>(await this.callApi(params, req, runtime), new DeleteMemoryResponse({}));
10306
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10307
+ return $dara.cast<DeleteMemoryResponse>(await this.callApi(params, req, runtime), new DeleteMemoryResponse({}));
10308
+ } else {
10309
+ return $dara.cast<DeleteMemoryResponse>(await this.execute(params, req, runtime), new DeleteMemoryResponse({}));
10310
+ }
10311
+
10145
10312
  }
10146
10313
 
10147
10314
  /**
@@ -10176,7 +10343,12 @@ export default class Client extends OpenApi {
10176
10343
  reqBodyType: "json",
10177
10344
  bodyType: "json",
10178
10345
  });
10179
- return $dara.cast<DeleteMemoryNodeResponse>(await this.callApi(params, req, runtime), new DeleteMemoryNodeResponse({}));
10346
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10347
+ return $dara.cast<DeleteMemoryNodeResponse>(await this.callApi(params, req, runtime), new DeleteMemoryNodeResponse({}));
10348
+ } else {
10349
+ return $dara.cast<DeleteMemoryNodeResponse>(await this.execute(params, req, runtime), new DeleteMemoryNodeResponse({}));
10350
+ }
10351
+
10180
10352
  }
10181
10353
 
10182
10354
  /**
@@ -10190,7 +10362,7 @@ export default class Client extends OpenApi {
10190
10362
  }
10191
10363
 
10192
10364
  /**
10193
- * 基于模板Id删除Prompt模板。
10365
+ * Deletes a prompt template based on the template ID.
10194
10366
  *
10195
10367
  * @param headers - map
10196
10368
  * @param runtime - runtime options for this request RuntimeOptions
@@ -10211,11 +10383,16 @@ export default class Client extends OpenApi {
10211
10383
  reqBodyType: "json",
10212
10384
  bodyType: "json",
10213
10385
  });
10214
- return $dara.cast<DeletePromptTemplateResponse>(await this.callApi(params, req, runtime), new DeletePromptTemplateResponse({}));
10386
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10387
+ return $dara.cast<DeletePromptTemplateResponse>(await this.callApi(params, req, runtime), new DeletePromptTemplateResponse({}));
10388
+ } else {
10389
+ return $dara.cast<DeletePromptTemplateResponse>(await this.execute(params, req, runtime), new DeletePromptTemplateResponse({}));
10390
+ }
10391
+
10215
10392
  }
10216
10393
 
10217
10394
  /**
10218
- * 基于模板Id删除Prompt模板。
10395
+ * Deletes a prompt template based on the template ID.
10219
10396
  * @returns DeletePromptTemplateResponse
10220
10397
  */
10221
10398
  async deletePromptTemplate(workspaceId: string, promptTemplateId: string): Promise<DeletePromptTemplateResponse> {
@@ -10252,7 +10429,12 @@ export default class Client extends OpenApi {
10252
10429
  reqBodyType: "json",
10253
10430
  bodyType: "json",
10254
10431
  });
10255
- return $dara.cast<DescribeFileResponse>(await this.callApi(params, req, runtime), new DescribeFileResponse({}));
10432
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10433
+ return $dara.cast<DescribeFileResponse>(await this.callApi(params, req, runtime), new DescribeFileResponse({}));
10434
+ } else {
10435
+ return $dara.cast<DescribeFileResponse>(await this.execute(params, req, runtime), new DescribeFileResponse({}));
10436
+ }
10437
+
10256
10438
  }
10257
10439
 
10258
10440
  /**
@@ -10318,7 +10500,12 @@ export default class Client extends OpenApi {
10318
10500
  reqBodyType: "json",
10319
10501
  bodyType: "json",
10320
10502
  });
10321
- return $dara.cast<GetIndexJobStatusResponse>(await this.callApi(params, req, runtime), new GetIndexJobStatusResponse({}));
10503
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10504
+ return $dara.cast<GetIndexJobStatusResponse>(await this.callApi(params, req, runtime), new GetIndexJobStatusResponse({}));
10505
+ } else {
10506
+ return $dara.cast<GetIndexJobStatusResponse>(await this.execute(params, req, runtime), new GetIndexJobStatusResponse({}));
10507
+ }
10508
+
10322
10509
  }
10323
10510
 
10324
10511
  /**
@@ -10360,7 +10547,12 @@ export default class Client extends OpenApi {
10360
10547
  reqBodyType: "json",
10361
10548
  bodyType: "json",
10362
10549
  });
10363
- return $dara.cast<GetMemoryResponse>(await this.callApi(params, req, runtime), new GetMemoryResponse({}));
10550
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10551
+ return $dara.cast<GetMemoryResponse>(await this.callApi(params, req, runtime), new GetMemoryResponse({}));
10552
+ } else {
10553
+ return $dara.cast<GetMemoryResponse>(await this.execute(params, req, runtime), new GetMemoryResponse({}));
10554
+ }
10555
+
10364
10556
  }
10365
10557
 
10366
10558
  /**
@@ -10395,7 +10587,12 @@ export default class Client extends OpenApi {
10395
10587
  reqBodyType: "json",
10396
10588
  bodyType: "json",
10397
10589
  });
10398
- return $dara.cast<GetMemoryNodeResponse>(await this.callApi(params, req, runtime), new GetMemoryNodeResponse({}));
10590
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10591
+ return $dara.cast<GetMemoryNodeResponse>(await this.callApi(params, req, runtime), new GetMemoryNodeResponse({}));
10592
+ } else {
10593
+ return $dara.cast<GetMemoryNodeResponse>(await this.execute(params, req, runtime), new GetMemoryNodeResponse({}));
10594
+ }
10595
+
10399
10596
  }
10400
10597
 
10401
10598
  /**
@@ -10409,7 +10606,7 @@ export default class Client extends OpenApi {
10409
10606
  }
10410
10607
 
10411
10608
  /**
10412
- * 基于模板Id获取Prompt模板。
10609
+ * Obtains a prompt template based on the template ID.
10413
10610
  *
10414
10611
  * @param headers - map
10415
10612
  * @param runtime - runtime options for this request RuntimeOptions
@@ -10430,11 +10627,16 @@ export default class Client extends OpenApi {
10430
10627
  reqBodyType: "json",
10431
10628
  bodyType: "json",
10432
10629
  });
10433
- return $dara.cast<GetPromptTemplateResponse>(await this.callApi(params, req, runtime), new GetPromptTemplateResponse({}));
10630
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10631
+ return $dara.cast<GetPromptTemplateResponse>(await this.callApi(params, req, runtime), new GetPromptTemplateResponse({}));
10632
+ } else {
10633
+ return $dara.cast<GetPromptTemplateResponse>(await this.execute(params, req, runtime), new GetPromptTemplateResponse({}));
10634
+ }
10635
+
10434
10636
  }
10435
10637
 
10436
10638
  /**
10437
- * 基于模板Id获取Prompt模板。
10639
+ * Obtains a prompt template based on the template ID.
10438
10640
  * @returns GetPromptTemplateResponse
10439
10641
  */
10440
10642
  async getPromptTemplate(workspaceId: string, promptTemplateId: string): Promise<GetPromptTemplateResponse> {
@@ -10465,7 +10667,12 @@ export default class Client extends OpenApi {
10465
10667
  reqBodyType: "json",
10466
10668
  bodyType: "json",
10467
10669
  });
10468
- return $dara.cast<GetPublishedAgentResponse>(await this.callApi(params, req, runtime), new GetPublishedAgentResponse({}));
10670
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10671
+ return $dara.cast<GetPublishedAgentResponse>(await this.callApi(params, req, runtime), new GetPublishedAgentResponse({}));
10672
+ } else {
10673
+ return $dara.cast<GetPublishedAgentResponse>(await this.execute(params, req, runtime), new GetPublishedAgentResponse({}));
10674
+ }
10675
+
10469
10676
  }
10470
10677
 
10471
10678
  /**
@@ -10520,7 +10727,12 @@ export default class Client extends OpenApi {
10520
10727
  reqBodyType: "formData",
10521
10728
  bodyType: "json",
10522
10729
  });
10523
- return $dara.cast<ListCategoryResponse>(await this.callApi(params, req, runtime), new ListCategoryResponse({}));
10730
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10731
+ return $dara.cast<ListCategoryResponse>(await this.callApi(params, req, runtime), new ListCategoryResponse({}));
10732
+ } else {
10733
+ return $dara.cast<ListCategoryResponse>(await this.execute(params, req, runtime), new ListCategoryResponse({}));
10734
+ }
10735
+
10524
10736
  }
10525
10737
 
10526
10738
  /**
@@ -10589,7 +10801,12 @@ export default class Client extends OpenApi {
10589
10801
  reqBodyType: "json",
10590
10802
  bodyType: "json",
10591
10803
  });
10592
- return $dara.cast<ListChunksResponse>(await this.callApi(params, req, runtime), new ListChunksResponse({}));
10804
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10805
+ return $dara.cast<ListChunksResponse>(await this.callApi(params, req, runtime), new ListChunksResponse({}));
10806
+ } else {
10807
+ return $dara.cast<ListChunksResponse>(await this.execute(params, req, runtime), new ListChunksResponse({}));
10808
+ }
10809
+
10593
10810
  }
10594
10811
 
10595
10812
  /**
@@ -10650,7 +10867,12 @@ export default class Client extends OpenApi {
10650
10867
  reqBodyType: "json",
10651
10868
  bodyType: "json",
10652
10869
  });
10653
- return $dara.cast<ListFileResponse>(await this.callApi(params, req, runtime), new ListFileResponse({}));
10870
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10871
+ return $dara.cast<ListFileResponse>(await this.callApi(params, req, runtime), new ListFileResponse({}));
10872
+ } else {
10873
+ return $dara.cast<ListFileResponse>(await this.execute(params, req, runtime), new ListFileResponse({}));
10874
+ }
10875
+
10654
10876
  }
10655
10877
 
10656
10878
  /**
@@ -10715,7 +10937,12 @@ export default class Client extends OpenApi {
10715
10937
  reqBodyType: "json",
10716
10938
  bodyType: "json",
10717
10939
  });
10718
- return $dara.cast<ListIndexDocumentsResponse>(await this.callApi(params, req, runtime), new ListIndexDocumentsResponse({}));
10940
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
10941
+ return $dara.cast<ListIndexDocumentsResponse>(await this.callApi(params, req, runtime), new ListIndexDocumentsResponse({}));
10942
+ } else {
10943
+ return $dara.cast<ListIndexDocumentsResponse>(await this.execute(params, req, runtime), new ListIndexDocumentsResponse({}));
10944
+ }
10945
+
10719
10946
  }
10720
10947
 
10721
10948
  /**
@@ -10775,7 +11002,12 @@ export default class Client extends OpenApi {
10775
11002
  reqBodyType: "json",
10776
11003
  bodyType: "json",
10777
11004
  });
10778
- return $dara.cast<ListIndicesResponse>(await this.callApi(params, req, runtime), new ListIndicesResponse({}));
11005
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11006
+ return $dara.cast<ListIndicesResponse>(await this.callApi(params, req, runtime), new ListIndicesResponse({}));
11007
+ } else {
11008
+ return $dara.cast<ListIndicesResponse>(await this.execute(params, req, runtime), new ListIndicesResponse({}));
11009
+ }
11010
+
10779
11011
  }
10780
11012
 
10781
11013
  /**
@@ -10827,7 +11059,12 @@ export default class Client extends OpenApi {
10827
11059
  reqBodyType: "json",
10828
11060
  bodyType: "json",
10829
11061
  });
10830
- return $dara.cast<ListMemoriesResponse>(await this.callApi(params, req, runtime), new ListMemoriesResponse({}));
11062
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11063
+ return $dara.cast<ListMemoriesResponse>(await this.callApi(params, req, runtime), new ListMemoriesResponse({}));
11064
+ } else {
11065
+ return $dara.cast<ListMemoriesResponse>(await this.execute(params, req, runtime), new ListMemoriesResponse({}));
11066
+ }
11067
+
10831
11068
  }
10832
11069
 
10833
11070
  /**
@@ -10876,7 +11113,12 @@ export default class Client extends OpenApi {
10876
11113
  reqBodyType: "json",
10877
11114
  bodyType: "json",
10878
11115
  });
10879
- return $dara.cast<ListMemoryNodesResponse>(await this.callApi(params, req, runtime), new ListMemoryNodesResponse({}));
11116
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11117
+ return $dara.cast<ListMemoryNodesResponse>(await this.callApi(params, req, runtime), new ListMemoryNodesResponse({}));
11118
+ } else {
11119
+ return $dara.cast<ListMemoryNodesResponse>(await this.execute(params, req, runtime), new ListMemoryNodesResponse({}));
11120
+ }
11121
+
10880
11122
  }
10881
11123
 
10882
11124
  /**
@@ -10892,7 +11134,7 @@ export default class Client extends OpenApi {
10892
11134
  }
10893
11135
 
10894
11136
  /**
10895
- * 获取Prompt模板列表。
11137
+ * Obtains a list of prompt templates.
10896
11138
  *
10897
11139
  * @param request - ListPromptTemplatesRequest
10898
11140
  * @param headers - map
@@ -10933,11 +11175,16 @@ export default class Client extends OpenApi {
10933
11175
  reqBodyType: "json",
10934
11176
  bodyType: "json",
10935
11177
  });
10936
- return $dara.cast<ListPromptTemplatesResponse>(await this.callApi(params, req, runtime), new ListPromptTemplatesResponse({}));
11178
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11179
+ return $dara.cast<ListPromptTemplatesResponse>(await this.callApi(params, req, runtime), new ListPromptTemplatesResponse({}));
11180
+ } else {
11181
+ return $dara.cast<ListPromptTemplatesResponse>(await this.execute(params, req, runtime), new ListPromptTemplatesResponse({}));
11182
+ }
11183
+
10937
11184
  }
10938
11185
 
10939
11186
  /**
10940
- * 获取Prompt模板列表。
11187
+ * Obtains a list of prompt templates.
10941
11188
  *
10942
11189
  * @param request - ListPromptTemplatesRequest
10943
11190
  * @returns ListPromptTemplatesResponse
@@ -10982,7 +11229,12 @@ export default class Client extends OpenApi {
10982
11229
  reqBodyType: "json",
10983
11230
  bodyType: "json",
10984
11231
  });
10985
- return $dara.cast<ListPublishedAgentResponse>(await this.callApi(params, req, runtime), new ListPublishedAgentResponse({}));
11232
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11233
+ return $dara.cast<ListPublishedAgentResponse>(await this.callApi(params, req, runtime), new ListPublishedAgentResponse({}));
11234
+ } else {
11235
+ return $dara.cast<ListPublishedAgentResponse>(await this.execute(params, req, runtime), new ListPublishedAgentResponse({}));
11236
+ }
11237
+
10986
11238
  }
10987
11239
 
10988
11240
  /**
@@ -11098,7 +11350,12 @@ export default class Client extends OpenApi {
11098
11350
  reqBodyType: "json",
11099
11351
  bodyType: "json",
11100
11352
  });
11101
- return $dara.cast<RetrieveResponse>(await this.callApi(params, req, runtime), new RetrieveResponse({}));
11353
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11354
+ return $dara.cast<RetrieveResponse>(await this.callApi(params, req, runtime), new RetrieveResponse({}));
11355
+ } else {
11356
+ return $dara.cast<RetrieveResponse>(await this.execute(params, req, runtime), new RetrieveResponse({}));
11357
+ }
11358
+
11102
11359
  }
11103
11360
 
11104
11361
  /**
@@ -11176,7 +11433,12 @@ export default class Client extends OpenApi {
11176
11433
  reqBodyType: "json",
11177
11434
  bodyType: "json",
11178
11435
  });
11179
- return $dara.cast<SubmitIndexAddDocumentsJobResponse>(await this.callApi(params, req, runtime), new SubmitIndexAddDocumentsJobResponse({}));
11436
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11437
+ return $dara.cast<SubmitIndexAddDocumentsJobResponse>(await this.callApi(params, req, runtime), new SubmitIndexAddDocumentsJobResponse({}));
11438
+ } else {
11439
+ return $dara.cast<SubmitIndexAddDocumentsJobResponse>(await this.execute(params, req, runtime), new SubmitIndexAddDocumentsJobResponse({}));
11440
+ }
11441
+
11180
11442
  }
11181
11443
 
11182
11444
  /**
@@ -11233,7 +11495,12 @@ export default class Client extends OpenApi {
11233
11495
  reqBodyType: "json",
11234
11496
  bodyType: "json",
11235
11497
  });
11236
- return $dara.cast<SubmitIndexJobResponse>(await this.callApi(params, req, runtime), new SubmitIndexJobResponse({}));
11498
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11499
+ return $dara.cast<SubmitIndexJobResponse>(await this.callApi(params, req, runtime), new SubmitIndexJobResponse({}));
11500
+ } else {
11501
+ return $dara.cast<SubmitIndexJobResponse>(await this.execute(params, req, runtime), new SubmitIndexJobResponse({}));
11502
+ }
11503
+
11237
11504
  }
11238
11505
 
11239
11506
  /**
@@ -11310,7 +11577,12 @@ export default class Client extends OpenApi {
11310
11577
  reqBodyType: "formData",
11311
11578
  bodyType: "json",
11312
11579
  });
11313
- return $dara.cast<UpdateAndPublishAgentResponse>(await this.callApi(params, req, runtime), new UpdateAndPublishAgentResponse({}));
11580
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11581
+ return $dara.cast<UpdateAndPublishAgentResponse>(await this.callApi(params, req, runtime), new UpdateAndPublishAgentResponse({}));
11582
+ } else {
11583
+ return $dara.cast<UpdateAndPublishAgentResponse>(await this.execute(params, req, runtime), new UpdateAndPublishAgentResponse({}));
11584
+ }
11585
+
11314
11586
  }
11315
11587
 
11316
11588
  /**
@@ -11381,7 +11653,12 @@ export default class Client extends OpenApi {
11381
11653
  reqBodyType: "formData",
11382
11654
  bodyType: "json",
11383
11655
  });
11384
- return $dara.cast<UpdateAndPublishAgentSelectiveResponse>(await this.callApi(params, req, runtime), new UpdateAndPublishAgentSelectiveResponse({}));
11656
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11657
+ return $dara.cast<UpdateAndPublishAgentSelectiveResponse>(await this.callApi(params, req, runtime), new UpdateAndPublishAgentSelectiveResponse({}));
11658
+ } else {
11659
+ return $dara.cast<UpdateAndPublishAgentSelectiveResponse>(await this.execute(params, req, runtime), new UpdateAndPublishAgentSelectiveResponse({}));
11660
+ }
11661
+
11385
11662
  }
11386
11663
 
11387
11664
  /**
@@ -11432,7 +11709,12 @@ export default class Client extends OpenApi {
11432
11709
  reqBodyType: "formData",
11433
11710
  bodyType: "json",
11434
11711
  });
11435
- return $dara.cast<UpdateFileTagResponse>(await this.callApi(params, req, runtime), new UpdateFileTagResponse({}));
11712
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11713
+ return $dara.cast<UpdateFileTagResponse>(await this.callApi(params, req, runtime), new UpdateFileTagResponse({}));
11714
+ } else {
11715
+ return $dara.cast<UpdateFileTagResponse>(await this.execute(params, req, runtime), new UpdateFileTagResponse({}));
11716
+ }
11717
+
11436
11718
  }
11437
11719
 
11438
11720
  /**
@@ -11477,7 +11759,12 @@ export default class Client extends OpenApi {
11477
11759
  reqBodyType: "json",
11478
11760
  bodyType: "json",
11479
11761
  });
11480
- return $dara.cast<UpdateMemoryResponse>(await this.callApi(params, req, runtime), new UpdateMemoryResponse({}));
11762
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11763
+ return $dara.cast<UpdateMemoryResponse>(await this.callApi(params, req, runtime), new UpdateMemoryResponse({}));
11764
+ } else {
11765
+ return $dara.cast<UpdateMemoryResponse>(await this.execute(params, req, runtime), new UpdateMemoryResponse({}));
11766
+ }
11767
+
11481
11768
  }
11482
11769
 
11483
11770
  /**
@@ -11522,7 +11809,12 @@ export default class Client extends OpenApi {
11522
11809
  reqBodyType: "json",
11523
11810
  bodyType: "json",
11524
11811
  });
11525
- return $dara.cast<UpdateMemoryNodeResponse>(await this.callApi(params, req, runtime), new UpdateMemoryNodeResponse({}));
11812
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11813
+ return $dara.cast<UpdateMemoryNodeResponse>(await this.callApi(params, req, runtime), new UpdateMemoryNodeResponse({}));
11814
+ } else {
11815
+ return $dara.cast<UpdateMemoryNodeResponse>(await this.execute(params, req, runtime), new UpdateMemoryNodeResponse({}));
11816
+ }
11817
+
11526
11818
  }
11527
11819
 
11528
11820
  /**
@@ -11538,7 +11830,7 @@ export default class Client extends OpenApi {
11538
11830
  }
11539
11831
 
11540
11832
  /**
11541
- * 基于模板Id增量更新Prompt模板。
11833
+ * Updates a prompt template based on the template ID.
11542
11834
  *
11543
11835
  * @param request - UpdatePromptTemplateRequest
11544
11836
  * @param headers - map
@@ -11571,11 +11863,16 @@ export default class Client extends OpenApi {
11571
11863
  reqBodyType: "json",
11572
11864
  bodyType: "json",
11573
11865
  });
11574
- return $dara.cast<UpdatePromptTemplateResponse>(await this.callApi(params, req, runtime), new UpdatePromptTemplateResponse({}));
11866
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
11867
+ return $dara.cast<UpdatePromptTemplateResponse>(await this.callApi(params, req, runtime), new UpdatePromptTemplateResponse({}));
11868
+ } else {
11869
+ return $dara.cast<UpdatePromptTemplateResponse>(await this.execute(params, req, runtime), new UpdatePromptTemplateResponse({}));
11870
+ }
11871
+
11575
11872
  }
11576
11873
 
11577
11874
  /**
11578
- * 基于模板Id增量更新Prompt模板。
11875
+ * Updates a prompt template based on the template ID.
11579
11876
  *
11580
11877
  * @param request - UpdatePromptTemplateRequest
11581
11878
  * @returns UpdatePromptTemplateResponse