@alicloud/bailian20231229 2.0.3 → 2.0.4

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
@@ -2608,6 +2608,7 @@ export declare class CreateIndexRequest extends $dara.Model {
2608
2608
  * structured
2609
2609
  */
2610
2610
  structureType?: string;
2611
+ chunkMode?: string;
2611
2612
  enableHeaders?: boolean;
2612
2613
  metaExtractColumns?: CreateIndexRequestMetaExtractColumns[];
2613
2614
  static names(): {
@@ -2796,6 +2797,7 @@ export declare class CreateIndexShrinkRequest extends $dara.Model {
2796
2797
  * structured
2797
2798
  */
2798
2799
  structureType?: string;
2800
+ chunkMode?: string;
2799
2801
  enableHeaders?: boolean;
2800
2802
  metaExtractColumnsShrink?: string;
2801
2803
  static names(): {
package/dist/client.js CHANGED
@@ -2624,6 +2624,7 @@ class CreateIndexRequest extends $dara.Model {
2624
2624
  sinkType: 'SinkType',
2625
2625
  sourceType: 'SourceType',
2626
2626
  structureType: 'StructureType',
2627
+ chunkMode: 'chunkMode',
2627
2628
  enableHeaders: 'enableHeaders',
2628
2629
  metaExtractColumns: 'metaExtractColumns',
2629
2630
  };
@@ -2647,6 +2648,7 @@ class CreateIndexRequest extends $dara.Model {
2647
2648
  sinkType: 'string',
2648
2649
  sourceType: 'string',
2649
2650
  structureType: 'string',
2651
+ chunkMode: 'string',
2650
2652
  enableHeaders: 'boolean',
2651
2653
  metaExtractColumns: { 'type': 'array', 'itemType': CreateIndexRequestMetaExtractColumns },
2652
2654
  };
@@ -2694,6 +2696,7 @@ class CreateIndexShrinkRequest extends $dara.Model {
2694
2696
  sinkType: 'SinkType',
2695
2697
  sourceType: 'SourceType',
2696
2698
  structureType: 'StructureType',
2699
+ chunkMode: 'chunkMode',
2697
2700
  enableHeaders: 'enableHeaders',
2698
2701
  metaExtractColumnsShrink: 'metaExtractColumns',
2699
2702
  };
@@ -2717,6 +2720,7 @@ class CreateIndexShrinkRequest extends $dara.Model {
2717
2720
  sinkType: 'string',
2718
2721
  sourceType: 'string',
2719
2722
  structureType: 'string',
2723
+ chunkMode: 'string',
2720
2724
  enableHeaders: 'boolean',
2721
2725
  metaExtractColumnsShrink: 'string',
2722
2726
  };
@@ -5605,12 +5609,7 @@ class Client extends openapi_core_1.default {
5605
5609
  reqBodyType: "formData",
5606
5610
  bodyType: "json",
5607
5611
  });
5608
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
5609
- return $dara.cast(await this.callApi(params, req, runtime), new AddCategoryResponse({}));
5610
- }
5611
- else {
5612
- return $dara.cast(await this.execute(params, req, runtime), new AddCategoryResponse({}));
5613
- }
5612
+ return $dara.cast(await this.callApi(params, req, runtime), new AddCategoryResponse({}));
5614
5613
  }
5615
5614
  /**
5616
5615
  * 添加类目
@@ -5676,12 +5675,7 @@ class Client extends openapi_core_1.default {
5676
5675
  reqBodyType: "formData",
5677
5676
  bodyType: "json",
5678
5677
  });
5679
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
5680
- return $dara.cast(await this.callApi(params, req, runtime), new AddFileResponse({}));
5681
- }
5682
- else {
5683
- return $dara.cast(await this.execute(params, req, runtime), new AddFileResponse({}));
5684
- }
5678
+ return $dara.cast(await this.callApi(params, req, runtime), new AddFileResponse({}));
5685
5679
  }
5686
5680
  /**
5687
5681
  * Imports an unstructured document stored in the temporary storage space to Data Management. You cannot use the API to import structured documents. Use the console instead.
@@ -5748,12 +5742,7 @@ class Client extends openapi_core_1.default {
5748
5742
  reqBodyType: "formData",
5749
5743
  bodyType: "json",
5750
5744
  });
5751
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
5752
- return $dara.cast(await this.callApi(params, req, runtime), new ApplyFileUploadLeaseResponse({}));
5753
- }
5754
- else {
5755
- return $dara.cast(await this.execute(params, req, runtime), new ApplyFileUploadLeaseResponse({}));
5756
- }
5745
+ return $dara.cast(await this.callApi(params, req, runtime), new ApplyFileUploadLeaseResponse({}));
5757
5746
  }
5758
5747
  /**
5759
5748
  * Applies for a document upload lease to upload a document.
@@ -5821,12 +5810,7 @@ class Client extends openapi_core_1.default {
5821
5810
  reqBodyType: "formData",
5822
5811
  bodyType: "json",
5823
5812
  });
5824
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
5825
- return $dara.cast(await this.callApi(params, req, runtime), new CreateAndPulishAgentResponse({}));
5826
- }
5827
- else {
5828
- return $dara.cast(await this.execute(params, req, runtime), new CreateAndPulishAgentResponse({}));
5829
- }
5813
+ return $dara.cast(await this.callApi(params, req, runtime), new CreateAndPulishAgentResponse({}));
5830
5814
  }
5831
5815
  /**
5832
5816
  * 创建并发布智能体应用
@@ -5923,6 +5907,9 @@ class Client extends openapi_core_1.default {
5923
5907
  if (!$dara.isNull(request.structureType)) {
5924
5908
  query["StructureType"] = request.structureType;
5925
5909
  }
5910
+ if (!$dara.isNull(request.chunkMode)) {
5911
+ query["chunkMode"] = request.chunkMode;
5912
+ }
5926
5913
  if (!$dara.isNull(request.enableHeaders)) {
5927
5914
  query["enableHeaders"] = request.enableHeaders;
5928
5915
  }
@@ -5944,12 +5931,7 @@ class Client extends openapi_core_1.default {
5944
5931
  reqBodyType: "json",
5945
5932
  bodyType: "json",
5946
5933
  });
5947
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
5948
- return $dara.cast(await this.callApi(params, req, runtime), new CreateIndexResponse({}));
5949
- }
5950
- else {
5951
- return $dara.cast(await this.execute(params, req, runtime), new CreateIndexResponse({}));
5952
- }
5934
+ return $dara.cast(await this.callApi(params, req, runtime), new CreateIndexResponse({}));
5953
5935
  }
5954
5936
  /**
5955
5937
  * Creates an unstructured knowledge base and imports one or more parsed documents into the knowledge base. You cannot create a structured knowledge base by calling an API operation. Use the console instead.
@@ -5996,12 +5978,7 @@ class Client extends openapi_core_1.default {
5996
5978
  reqBodyType: "json",
5997
5979
  bodyType: "json",
5998
5980
  });
5999
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6000
- return $dara.cast(await this.callApi(params, req, runtime), new CreateMemoryResponse({}));
6001
- }
6002
- else {
6003
- return $dara.cast(await this.execute(params, req, runtime), new CreateMemoryResponse({}));
6004
- }
5981
+ return $dara.cast(await this.callApi(params, req, runtime), new CreateMemoryResponse({}));
6005
5982
  }
6006
5983
  /**
6007
5984
  * 创建Memory
@@ -6043,12 +6020,7 @@ class Client extends openapi_core_1.default {
6043
6020
  reqBodyType: "json",
6044
6021
  bodyType: "json",
6045
6022
  });
6046
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6047
- return $dara.cast(await this.callApi(params, req, runtime), new CreateMemoryNodeResponse({}));
6048
- }
6049
- else {
6050
- return $dara.cast(await this.execute(params, req, runtime), new CreateMemoryNodeResponse({}));
6051
- }
6023
+ return $dara.cast(await this.callApi(params, req, runtime), new CreateMemoryNodeResponse({}));
6052
6024
  }
6053
6025
  /**
6054
6026
  * 创建记忆Node
@@ -6093,12 +6065,7 @@ class Client extends openapi_core_1.default {
6093
6065
  reqBodyType: "json",
6094
6066
  bodyType: "json",
6095
6067
  });
6096
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6097
- return $dara.cast(await this.callApi(params, req, runtime), new CreatePromptTemplateResponse({}));
6098
- }
6099
- else {
6100
- return $dara.cast(await this.execute(params, req, runtime), new CreatePromptTemplateResponse({}));
6101
- }
6068
+ return $dara.cast(await this.callApi(params, req, runtime), new CreatePromptTemplateResponse({}));
6102
6069
  }
6103
6070
  /**
6104
6071
  * Creates a prompt template.
@@ -6133,12 +6100,7 @@ class Client extends openapi_core_1.default {
6133
6100
  reqBodyType: "json",
6134
6101
  bodyType: "json",
6135
6102
  });
6136
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6137
- return $dara.cast(await this.callApi(params, req, runtime), new DeleteAgentResponse({}));
6138
- }
6139
- else {
6140
- return $dara.cast(await this.execute(params, req, runtime), new DeleteAgentResponse({}));
6141
- }
6103
+ return $dara.cast(await this.callApi(params, req, runtime), new DeleteAgentResponse({}));
6142
6104
  }
6143
6105
  /**
6144
6106
  * 删除智能体
@@ -6171,12 +6133,7 @@ class Client extends openapi_core_1.default {
6171
6133
  reqBodyType: "json",
6172
6134
  bodyType: "json",
6173
6135
  });
6174
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6175
- return $dara.cast(await this.callApi(params, req, runtime), new DeleteCategoryResponse({}));
6176
- }
6177
- else {
6178
- return $dara.cast(await this.execute(params, req, runtime), new DeleteCategoryResponse({}));
6179
- }
6136
+ return $dara.cast(await this.callApi(params, req, runtime), new DeleteCategoryResponse({}));
6180
6137
  }
6181
6138
  /**
6182
6139
  * 删除类目
@@ -6209,12 +6166,7 @@ class Client extends openapi_core_1.default {
6209
6166
  reqBodyType: "json",
6210
6167
  bodyType: "json",
6211
6168
  });
6212
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6213
- return $dara.cast(await this.callApi(params, req, runtime), new DeleteFileResponse({}));
6214
- }
6215
- else {
6216
- return $dara.cast(await this.execute(params, req, runtime), new DeleteFileResponse({}));
6217
- }
6169
+ return $dara.cast(await this.callApi(params, req, runtime), new DeleteFileResponse({}));
6218
6170
  }
6219
6171
  /**
6220
6172
  * 删除文档
@@ -6261,12 +6213,7 @@ class Client extends openapi_core_1.default {
6261
6213
  reqBodyType: "json",
6262
6214
  bodyType: "json",
6263
6215
  });
6264
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6265
- return $dara.cast(await this.callApi(params, req, runtime), new DeleteIndexResponse({}));
6266
- }
6267
- else {
6268
- return $dara.cast(await this.execute(params, req, runtime), new DeleteIndexResponse({}));
6269
- }
6216
+ return $dara.cast(await this.callApi(params, req, runtime), new DeleteIndexResponse({}));
6270
6217
  }
6271
6218
  /**
6272
6219
  * Deletes a specified knowledge base permanently.
@@ -6330,12 +6277,7 @@ class Client extends openapi_core_1.default {
6330
6277
  reqBodyType: "json",
6331
6278
  bodyType: "json",
6332
6279
  });
6333
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6334
- return $dara.cast(await this.callApi(params, req, runtime), new DeleteIndexDocumentResponse({}));
6335
- }
6336
- else {
6337
- return $dara.cast(await this.execute(params, req, runtime), new DeleteIndexDocumentResponse({}));
6338
- }
6280
+ return $dara.cast(await this.callApi(params, req, runtime), new DeleteIndexDocumentResponse({}));
6339
6281
  }
6340
6282
  /**
6341
6283
  * Deletes one or more documents from a specified unstructured knowledge base permanently.
@@ -6377,12 +6319,7 @@ class Client extends openapi_core_1.default {
6377
6319
  reqBodyType: "json",
6378
6320
  bodyType: "json",
6379
6321
  });
6380
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6381
- return $dara.cast(await this.callApi(params, req, runtime), new DeleteMemoryResponse({}));
6382
- }
6383
- else {
6384
- return $dara.cast(await this.execute(params, req, runtime), new DeleteMemoryResponse({}));
6385
- }
6322
+ return $dara.cast(await this.callApi(params, req, runtime), new DeleteMemoryResponse({}));
6386
6323
  }
6387
6324
  /**
6388
6325
  * 删除memory
@@ -6415,12 +6352,7 @@ class Client extends openapi_core_1.default {
6415
6352
  reqBodyType: "json",
6416
6353
  bodyType: "json",
6417
6354
  });
6418
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6419
- return $dara.cast(await this.callApi(params, req, runtime), new DeleteMemoryNodeResponse({}));
6420
- }
6421
- else {
6422
- return $dara.cast(await this.execute(params, req, runtime), new DeleteMemoryNodeResponse({}));
6423
- }
6355
+ return $dara.cast(await this.callApi(params, req, runtime), new DeleteMemoryNodeResponse({}));
6424
6356
  }
6425
6357
  /**
6426
6358
  * 删除记忆Node
@@ -6453,12 +6385,7 @@ class Client extends openapi_core_1.default {
6453
6385
  reqBodyType: "json",
6454
6386
  bodyType: "json",
6455
6387
  });
6456
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6457
- return $dara.cast(await this.callApi(params, req, runtime), new DeletePromptTemplateResponse({}));
6458
- }
6459
- else {
6460
- return $dara.cast(await this.execute(params, req, runtime), new DeletePromptTemplateResponse({}));
6461
- }
6388
+ return $dara.cast(await this.callApi(params, req, runtime), new DeletePromptTemplateResponse({}));
6462
6389
  }
6463
6390
  /**
6464
6391
  * Deletes a prompt template based on the template ID.
@@ -6497,12 +6424,7 @@ class Client extends openapi_core_1.default {
6497
6424
  reqBodyType: "json",
6498
6425
  bodyType: "json",
6499
6426
  });
6500
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6501
- return $dara.cast(await this.callApi(params, req, runtime), new DescribeFileResponse({}));
6502
- }
6503
- else {
6504
- return $dara.cast(await this.execute(params, req, runtime), new DescribeFileResponse({}));
6505
- }
6427
+ return $dara.cast(await this.callApi(params, req, runtime), new DescribeFileResponse({}));
6506
6428
  }
6507
6429
  /**
6508
6430
  * Queries the details of an unstructured document.
@@ -6562,12 +6484,7 @@ class Client extends openapi_core_1.default {
6562
6484
  reqBodyType: "json",
6563
6485
  bodyType: "json",
6564
6486
  });
6565
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6566
- return $dara.cast(await this.callApi(params, req, runtime), new GetIndexJobStatusResponse({}));
6567
- }
6568
- else {
6569
- return $dara.cast(await this.execute(params, req, runtime), new GetIndexJobStatusResponse({}));
6570
- }
6487
+ return $dara.cast(await this.callApi(params, req, runtime), new GetIndexJobStatusResponse({}));
6571
6488
  }
6572
6489
  /**
6573
6490
  * Queries the current status of a specified knowledge base creation or add document job.
@@ -6607,12 +6524,7 @@ class Client extends openapi_core_1.default {
6607
6524
  reqBodyType: "json",
6608
6525
  bodyType: "json",
6609
6526
  });
6610
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6611
- return $dara.cast(await this.callApi(params, req, runtime), new GetMemoryResponse({}));
6612
- }
6613
- else {
6614
- return $dara.cast(await this.execute(params, req, runtime), new GetMemoryResponse({}));
6615
- }
6527
+ return $dara.cast(await this.callApi(params, req, runtime), new GetMemoryResponse({}));
6616
6528
  }
6617
6529
  /**
6618
6530
  * 获取memory
@@ -6645,12 +6557,7 @@ class Client extends openapi_core_1.default {
6645
6557
  reqBodyType: "json",
6646
6558
  bodyType: "json",
6647
6559
  });
6648
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6649
- return $dara.cast(await this.callApi(params, req, runtime), new GetMemoryNodeResponse({}));
6650
- }
6651
- else {
6652
- return $dara.cast(await this.execute(params, req, runtime), new GetMemoryNodeResponse({}));
6653
- }
6560
+ return $dara.cast(await this.callApi(params, req, runtime), new GetMemoryNodeResponse({}));
6654
6561
  }
6655
6562
  /**
6656
6563
  * 获取记忆Node
@@ -6683,12 +6590,7 @@ class Client extends openapi_core_1.default {
6683
6590
  reqBodyType: "json",
6684
6591
  bodyType: "json",
6685
6592
  });
6686
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6687
- return $dara.cast(await this.callApi(params, req, runtime), new GetPromptTemplateResponse({}));
6688
- }
6689
- else {
6690
- return $dara.cast(await this.execute(params, req, runtime), new GetPromptTemplateResponse({}));
6691
- }
6593
+ return $dara.cast(await this.callApi(params, req, runtime), new GetPromptTemplateResponse({}));
6692
6594
  }
6693
6595
  /**
6694
6596
  * Obtains a prompt template based on the template ID.
@@ -6721,12 +6623,7 @@ class Client extends openapi_core_1.default {
6721
6623
  reqBodyType: "json",
6722
6624
  bodyType: "json",
6723
6625
  });
6724
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6725
- return $dara.cast(await this.callApi(params, req, runtime), new GetPublishedAgentResponse({}));
6726
- }
6727
- else {
6728
- return $dara.cast(await this.execute(params, req, runtime), new GetPublishedAgentResponse({}));
6729
- }
6626
+ return $dara.cast(await this.callApi(params, req, runtime), new GetPublishedAgentResponse({}));
6730
6627
  }
6731
6628
  /**
6732
6629
  * 获取发布态智能体应用
@@ -6775,12 +6672,7 @@ class Client extends openapi_core_1.default {
6775
6672
  reqBodyType: "formData",
6776
6673
  bodyType: "json",
6777
6674
  });
6778
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6779
- return $dara.cast(await this.callApi(params, req, runtime), new ListCategoryResponse({}));
6780
- }
6781
- else {
6782
- return $dara.cast(await this.execute(params, req, runtime), new ListCategoryResponse({}));
6783
- }
6675
+ return $dara.cast(await this.callApi(params, req, runtime), new ListCategoryResponse({}));
6784
6676
  }
6785
6677
  /**
6786
6678
  * ListCategory
@@ -6841,12 +6733,7 @@ class Client extends openapi_core_1.default {
6841
6733
  reqBodyType: "json",
6842
6734
  bodyType: "json",
6843
6735
  });
6844
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6845
- return $dara.cast(await this.callApi(params, req, runtime), new ListChunksResponse({}));
6846
- }
6847
- else {
6848
- return $dara.cast(await this.execute(params, req, runtime), new ListChunksResponse({}));
6849
- }
6736
+ return $dara.cast(await this.callApi(params, req, runtime), new ListChunksResponse({}));
6850
6737
  }
6851
6738
  /**
6852
6739
  * For unstructured knowledge base, obtains the details of all chunks of a specified document; for structured knowledge base, obtains the details of all chunks.
@@ -6901,12 +6788,7 @@ class Client extends openapi_core_1.default {
6901
6788
  reqBodyType: "json",
6902
6789
  bodyType: "json",
6903
6790
  });
6904
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6905
- return $dara.cast(await this.callApi(params, req, runtime), new ListFileResponse({}));
6906
- }
6907
- else {
6908
- return $dara.cast(await this.execute(params, req, runtime), new ListFileResponse({}));
6909
- }
6791
+ return $dara.cast(await this.callApi(params, req, runtime), new ListFileResponse({}));
6910
6792
  }
6911
6793
  /**
6912
6794
  * 获取文档列表
@@ -6964,12 +6846,7 @@ class Client extends openapi_core_1.default {
6964
6846
  reqBodyType: "json",
6965
6847
  bodyType: "json",
6966
6848
  });
6967
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
6968
- return $dara.cast(await this.callApi(params, req, runtime), new ListIndexDocumentsResponse({}));
6969
- }
6970
- else {
6971
- return $dara.cast(await this.execute(params, req, runtime), new ListIndexDocumentsResponse({}));
6972
- }
6849
+ return $dara.cast(await this.callApi(params, req, runtime), new ListIndexDocumentsResponse({}));
6973
6850
  }
6974
6851
  /**
6975
6852
  * Queries the details of one or more documents in a specified knowledge base.
@@ -7024,12 +6901,7 @@ class Client extends openapi_core_1.default {
7024
6901
  reqBodyType: "json",
7025
6902
  bodyType: "json",
7026
6903
  });
7027
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7028
- return $dara.cast(await this.callApi(params, req, runtime), new ListIndicesResponse({}));
7029
- }
7030
- else {
7031
- return $dara.cast(await this.execute(params, req, runtime), new ListIndicesResponse({}));
7032
- }
6904
+ return $dara.cast(await this.callApi(params, req, runtime), new ListIndicesResponse({}));
7033
6905
  }
7034
6906
  /**
7035
6907
  * Lists knowledge bases in a specified workspace.
@@ -7077,12 +6949,7 @@ class Client extends openapi_core_1.default {
7077
6949
  reqBodyType: "json",
7078
6950
  bodyType: "json",
7079
6951
  });
7080
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7081
- return $dara.cast(await this.callApi(params, req, runtime), new ListMemoriesResponse({}));
7082
- }
7083
- else {
7084
- return $dara.cast(await this.execute(params, req, runtime), new ListMemoriesResponse({}));
7085
- }
6952
+ return $dara.cast(await this.callApi(params, req, runtime), new ListMemoriesResponse({}));
7086
6953
  }
7087
6954
  /**
7088
6955
  * 获取memory
@@ -7127,12 +6994,7 @@ class Client extends openapi_core_1.default {
7127
6994
  reqBodyType: "json",
7128
6995
  bodyType: "json",
7129
6996
  });
7130
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7131
- return $dara.cast(await this.callApi(params, req, runtime), new ListMemoryNodesResponse({}));
7132
- }
7133
- else {
7134
- return $dara.cast(await this.execute(params, req, runtime), new ListMemoryNodesResponse({}));
7135
- }
6997
+ return $dara.cast(await this.callApi(params, req, runtime), new ListMemoryNodesResponse({}));
7136
6998
  }
7137
6999
  /**
7138
7000
  * 获取记忆Node列表
@@ -7183,12 +7045,7 @@ class Client extends openapi_core_1.default {
7183
7045
  reqBodyType: "json",
7184
7046
  bodyType: "json",
7185
7047
  });
7186
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7187
- return $dara.cast(await this.callApi(params, req, runtime), new ListPromptTemplatesResponse({}));
7188
- }
7189
- else {
7190
- return $dara.cast(await this.execute(params, req, runtime), new ListPromptTemplatesResponse({}));
7191
- }
7048
+ return $dara.cast(await this.callApi(params, req, runtime), new ListPromptTemplatesResponse({}));
7192
7049
  }
7193
7050
  /**
7194
7051
  * Obtains a list of prompt templates.
@@ -7233,12 +7090,7 @@ class Client extends openapi_core_1.default {
7233
7090
  reqBodyType: "json",
7234
7091
  bodyType: "json",
7235
7092
  });
7236
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7237
- return $dara.cast(await this.callApi(params, req, runtime), new ListPublishedAgentResponse({}));
7238
- }
7239
- else {
7240
- return $dara.cast(await this.execute(params, req, runtime), new ListPublishedAgentResponse({}));
7241
- }
7093
+ return $dara.cast(await this.callApi(params, req, runtime), new ListPublishedAgentResponse({}));
7242
7094
  }
7243
7095
  /**
7244
7096
  * 查询已发布的智能体应用列表
@@ -7341,12 +7193,7 @@ class Client extends openapi_core_1.default {
7341
7193
  reqBodyType: "json",
7342
7194
  bodyType: "json",
7343
7195
  });
7344
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7345
- return $dara.cast(await this.callApi(params, req, runtime), new RetrieveResponse({}));
7346
- }
7347
- else {
7348
- return $dara.cast(await this.execute(params, req, runtime), new RetrieveResponse({}));
7349
- }
7196
+ return $dara.cast(await this.callApi(params, req, runtime), new RetrieveResponse({}));
7350
7197
  }
7351
7198
  /**
7352
7199
  * Queries information from a specified knowledge base.
@@ -7416,12 +7263,7 @@ class Client extends openapi_core_1.default {
7416
7263
  reqBodyType: "json",
7417
7264
  bodyType: "json",
7418
7265
  });
7419
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7420
- return $dara.cast(await this.callApi(params, req, runtime), new SubmitIndexAddDocumentsJobResponse({}));
7421
- }
7422
- else {
7423
- return $dara.cast(await this.execute(params, req, runtime), new SubmitIndexAddDocumentsJobResponse({}));
7424
- }
7266
+ return $dara.cast(await this.callApi(params, req, runtime), new SubmitIndexAddDocumentsJobResponse({}));
7425
7267
  }
7426
7268
  /**
7427
7269
  * Adds parsed documents to an unstructured knowledge base.
@@ -7475,12 +7317,7 @@ class Client extends openapi_core_1.default {
7475
7317
  reqBodyType: "json",
7476
7318
  bodyType: "json",
7477
7319
  });
7478
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7479
- return $dara.cast(await this.callApi(params, req, runtime), new SubmitIndexJobResponse({}));
7480
- }
7481
- else {
7482
- return $dara.cast(await this.execute(params, req, runtime), new SubmitIndexJobResponse({}));
7483
- }
7320
+ return $dara.cast(await this.callApi(params, req, runtime), new SubmitIndexJobResponse({}));
7484
7321
  }
7485
7322
  /**
7486
7323
  * Submits a specified CreateIndex job to complete knowledge base creation.
@@ -7548,12 +7385,7 @@ class Client extends openapi_core_1.default {
7548
7385
  reqBodyType: "formData",
7549
7386
  bodyType: "json",
7550
7387
  });
7551
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7552
- return $dara.cast(await this.callApi(params, req, runtime), new UpdateAndPublishAgentResponse({}));
7553
- }
7554
- else {
7555
- return $dara.cast(await this.execute(params, req, runtime), new UpdateAndPublishAgentResponse({}));
7556
- }
7388
+ return $dara.cast(await this.callApi(params, req, runtime), new UpdateAndPublishAgentResponse({}));
7557
7389
  }
7558
7390
  /**
7559
7391
  * 更新并发布智能体应用
@@ -7615,12 +7447,7 @@ class Client extends openapi_core_1.default {
7615
7447
  reqBodyType: "formData",
7616
7448
  bodyType: "json",
7617
7449
  });
7618
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7619
- return $dara.cast(await this.callApi(params, req, runtime), new UpdateAndPublishAgentSelectiveResponse({}));
7620
- }
7621
- else {
7622
- return $dara.cast(await this.execute(params, req, runtime), new UpdateAndPublishAgentSelectiveResponse({}));
7623
- }
7450
+ return $dara.cast(await this.callApi(params, req, runtime), new UpdateAndPublishAgentSelectiveResponse({}));
7624
7451
  }
7625
7452
  /**
7626
7453
  * 选择更新并发布智能体应用
@@ -7667,12 +7494,7 @@ class Client extends openapi_core_1.default {
7667
7494
  reqBodyType: "formData",
7668
7495
  bodyType: "json",
7669
7496
  });
7670
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7671
- return $dara.cast(await this.callApi(params, req, runtime), new UpdateFileTagResponse({}));
7672
- }
7673
- else {
7674
- return $dara.cast(await this.execute(params, req, runtime), new UpdateFileTagResponse({}));
7675
- }
7497
+ return $dara.cast(await this.callApi(params, req, runtime), new UpdateFileTagResponse({}));
7676
7498
  }
7677
7499
  /**
7678
7500
  * 更新文档Tag
@@ -7714,12 +7536,7 @@ class Client extends openapi_core_1.default {
7714
7536
  reqBodyType: "json",
7715
7537
  bodyType: "json",
7716
7538
  });
7717
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7718
- return $dara.cast(await this.callApi(params, req, runtime), new UpdateMemoryResponse({}));
7719
- }
7720
- else {
7721
- return $dara.cast(await this.execute(params, req, runtime), new UpdateMemoryResponse({}));
7722
- }
7539
+ return $dara.cast(await this.callApi(params, req, runtime), new UpdateMemoryResponse({}));
7723
7540
  }
7724
7541
  /**
7725
7542
  * 更新memory
@@ -7761,12 +7578,7 @@ class Client extends openapi_core_1.default {
7761
7578
  reqBodyType: "json",
7762
7579
  bodyType: "json",
7763
7580
  });
7764
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7765
- return $dara.cast(await this.callApi(params, req, runtime), new UpdateMemoryNodeResponse({}));
7766
- }
7767
- else {
7768
- return $dara.cast(await this.execute(params, req, runtime), new UpdateMemoryNodeResponse({}));
7769
- }
7581
+ return $dara.cast(await this.callApi(params, req, runtime), new UpdateMemoryNodeResponse({}));
7770
7582
  }
7771
7583
  /**
7772
7584
  * 更新记忆Node
@@ -7811,12 +7623,7 @@ class Client extends openapi_core_1.default {
7811
7623
  reqBodyType: "json",
7812
7624
  bodyType: "json",
7813
7625
  });
7814
- if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7815
- return $dara.cast(await this.callApi(params, req, runtime), new UpdatePromptTemplateResponse({}));
7816
- }
7817
- else {
7818
- return $dara.cast(await this.execute(params, req, runtime), new UpdatePromptTemplateResponse({}));
7819
- }
7626
+ return $dara.cast(await this.callApi(params, req, runtime), new UpdatePromptTemplateResponse({}));
7820
7627
  }
7821
7628
  /**
7822
7629
  * Updates a prompt template based on the template ID.