tencentcloud-sdk-python-dataagent 3.1.8__tar.gz → 3.1.15__tar.gz

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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_dataagent-3.1.8 → tencentcloud_sdk_python_dataagent-3.1.15}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_dataagent-3.1.8 → tencentcloud_sdk_python_dataagent-3.1.15}/setup.py +1 -1
  3. {tencentcloud_sdk_python_dataagent-3.1.8 → tencentcloud_sdk_python_dataagent-3.1.15}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_dataagent-3.1.8 → tencentcloud_sdk_python_dataagent-3.1.15}/tencentcloud/dataagent/v20250513/dataagent_client.py +23 -0
  5. {tencentcloud_sdk_python_dataagent-3.1.8 → tencentcloud_sdk_python_dataagent-3.1.15}/tencentcloud/dataagent/v20250513/dataagent_client_async.py +18 -0
  6. {tencentcloud_sdk_python_dataagent-3.1.8 → tencentcloud_sdk_python_dataagent-3.1.15}/tencentcloud/dataagent/v20250513/models.py +585 -0
  7. {tencentcloud_sdk_python_dataagent-3.1.8 → tencentcloud_sdk_python_dataagent-3.1.15}/tencentcloud_sdk_python_dataagent.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_dataagent-3.1.15/tencentcloud_sdk_python_dataagent.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_dataagent-3.1.8/tencentcloud_sdk_python_dataagent.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_dataagent-3.1.8 → tencentcloud_sdk_python_dataagent-3.1.15}/README.rst +0 -0
  11. {tencentcloud_sdk_python_dataagent-3.1.8 → tencentcloud_sdk_python_dataagent-3.1.15}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_dataagent-3.1.8 → tencentcloud_sdk_python_dataagent-3.1.15}/tencentcloud/dataagent/__init__.py +0 -0
  13. {tencentcloud_sdk_python_dataagent-3.1.8 → tencentcloud_sdk_python_dataagent-3.1.15}/tencentcloud/dataagent/v20250513/__init__.py +0 -0
  14. {tencentcloud_sdk_python_dataagent-3.1.8 → tencentcloud_sdk_python_dataagent-3.1.15}/tencentcloud/dataagent/v20250513/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_dataagent-3.1.8 → tencentcloud_sdk_python_dataagent-3.1.15}/tencentcloud_sdk_python_dataagent.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_dataagent-3.1.8 → tencentcloud_sdk_python_dataagent-3.1.15}/tencentcloud_sdk_python_dataagent.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_dataagent-3.1.8 → tencentcloud_sdk_python_dataagent-3.1.15}/tencentcloud_sdk_python_dataagent.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-dataagent
3
- Version: 3.1.8
3
+ Version: 3.1.15
4
4
  Summary: Tencent Cloud Dataagent SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.8
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.15
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-dataagent',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.8,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.15,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Dataagent SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.8'
17
+ __version__ = '3.1.15'
@@ -136,6 +136,29 @@ class DataagentClient(AbstractClient):
136
136
  raise TencentCloudSDKException(type(e).__name__, str(e))
137
137
 
138
138
 
139
+ def GetJobsByKnowledgeBaseId(self, request):
140
+ r"""根据知识库id查询jobs 列表
141
+
142
+ :param request: Request instance for GetJobsByKnowledgeBaseId.
143
+ :type request: :class:`tencentcloud.dataagent.v20250513.models.GetJobsByKnowledgeBaseIdRequest`
144
+ :rtype: :class:`tencentcloud.dataagent.v20250513.models.GetJobsByKnowledgeBaseIdResponse`
145
+
146
+ """
147
+ try:
148
+ params = request._serialize()
149
+ headers = request.headers
150
+ body = self.call("GetJobsByKnowledgeBaseId", params, headers=headers)
151
+ response = json.loads(body)
152
+ model = models.GetJobsByKnowledgeBaseIdResponse()
153
+ model._deserialize(response["Response"])
154
+ return model
155
+ except Exception as e:
156
+ if isinstance(e, TencentCloudSDKException):
157
+ raise
158
+ else:
159
+ raise TencentCloudSDKException(type(e).__name__, str(e))
160
+
161
+
139
162
  def GetKnowledgeBaseFileList(self, request):
140
163
  r"""获取知识库文件信息列表
141
164
 
@@ -115,6 +115,24 @@ class DataagentClient(AbstractClient):
115
115
 
116
116
  return await self.call_and_deserialize(**kwargs)
117
117
 
118
+ async def GetJobsByKnowledgeBaseId(
119
+ self,
120
+ request: models.GetJobsByKnowledgeBaseIdRequest,
121
+ opts: Dict = None,
122
+ ) -> models.GetJobsByKnowledgeBaseIdResponse:
123
+ """
124
+ 根据知识库id查询jobs 列表
125
+ """
126
+
127
+ kwargs = {}
128
+ kwargs["action"] = "GetJobsByKnowledgeBaseId"
129
+ kwargs["params"] = request._serialize()
130
+ kwargs["resp_cls"] = models.GetJobsByKnowledgeBaseIdResponse
131
+ kwargs["headers"] = request.headers
132
+ kwargs["opts"] = opts or {}
133
+
134
+ return await self.call_and_deserialize(**kwargs)
135
+
118
136
  async def GetKnowledgeBaseFileList(
119
137
  self,
120
138
  request: models.GetKnowledgeBaseFileListRequest,
@@ -452,6 +452,102 @@ class Chunk(AbstractModel):
452
452
 
453
453
 
454
454
 
455
+ class ColumnInfo(AbstractModel):
456
+ r"""知识库文档表列信息
457
+
458
+ """
459
+
460
+ def __init__(self):
461
+ r"""
462
+ :param _Name: 列名称
463
+ :type Name: str
464
+ :param _Type: 列类型:int, bigint, double, date, datetime, string,decimal
465
+ :type Type: str
466
+ :param _Description: 列名称描述
467
+ :type Description: str
468
+ :param _Index: 列索引
469
+ :type Index: int
470
+ :param _OriginalName: 原始字段名称
471
+ :type OriginalName: str
472
+ """
473
+ self._Name = None
474
+ self._Type = None
475
+ self._Description = None
476
+ self._Index = None
477
+ self._OriginalName = None
478
+
479
+ @property
480
+ def Name(self):
481
+ r"""列名称
482
+ :rtype: str
483
+ """
484
+ return self._Name
485
+
486
+ @Name.setter
487
+ def Name(self, Name):
488
+ self._Name = Name
489
+
490
+ @property
491
+ def Type(self):
492
+ r"""列类型:int, bigint, double, date, datetime, string,decimal
493
+ :rtype: str
494
+ """
495
+ return self._Type
496
+
497
+ @Type.setter
498
+ def Type(self, Type):
499
+ self._Type = Type
500
+
501
+ @property
502
+ def Description(self):
503
+ r"""列名称描述
504
+ :rtype: str
505
+ """
506
+ return self._Description
507
+
508
+ @Description.setter
509
+ def Description(self, Description):
510
+ self._Description = Description
511
+
512
+ @property
513
+ def Index(self):
514
+ r"""列索引
515
+ :rtype: int
516
+ """
517
+ return self._Index
518
+
519
+ @Index.setter
520
+ def Index(self, Index):
521
+ self._Index = Index
522
+
523
+ @property
524
+ def OriginalName(self):
525
+ r"""原始字段名称
526
+ :rtype: str
527
+ """
528
+ return self._OriginalName
529
+
530
+ @OriginalName.setter
531
+ def OriginalName(self, OriginalName):
532
+ self._OriginalName = OriginalName
533
+
534
+
535
+ def _deserialize(self, params):
536
+ self._Name = params.get("Name")
537
+ self._Type = params.get("Type")
538
+ self._Description = params.get("Description")
539
+ self._Index = params.get("Index")
540
+ self._OriginalName = params.get("OriginalName")
541
+ memeber_set = set(params.keys())
542
+ for name, value in vars(self).items():
543
+ property_name = name[1:]
544
+ if property_name in memeber_set:
545
+ memeber_set.remove(property_name)
546
+ if len(memeber_set) > 0:
547
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
548
+
549
+
550
+
455
551
  class CosFileInfo(AbstractModel):
456
552
  r"""cos 文件信息
457
553
 
@@ -785,6 +881,312 @@ class DeleteDataAgentSessionResponse(AbstractModel):
785
881
  self._RequestId = params.get("RequestId")
786
882
 
787
883
 
884
+ class FileInfo(AbstractModel):
885
+ r"""知识库文件信息
886
+
887
+ """
888
+
889
+ def __init__(self):
890
+ r"""
891
+ :param _FileName: 文件名称
892
+ :type FileName: str
893
+ :param _FileSize: 文件大小,字节
894
+ :type FileSize: float
895
+ :param _Type: 文件类型,0=文本,1=表格,默认0
896
+
897
+ :type Type: int
898
+ :param _FileId: 文件ID
899
+ :type FileId: str
900
+ :param _Status: 状态,0:数据处理中 1:可用 -1:错误
901
+ :type Status: int
902
+ :param _CreateUser: 操作者
903
+
904
+ :type CreateUser: str
905
+ :param _CreateTime: 创建时间
906
+ :type CreateTime: str
907
+ :param _ChunkConfig: 分片策略
908
+ :type ChunkConfig: :class:`tencentcloud.dataagent.v20250513.models.KnowledgeTaskConfig`
909
+ :param _Source: 文件来源0=unknow,1=user_cos,2=local
910
+ :type Source: int
911
+ :param _FileUrl: 文件url
912
+ :type FileUrl: str
913
+ :param _IsShowCase: 是否官方示例,0=否,1=是
914
+ :type IsShowCase: int
915
+ :param _DocumentSummary: 文档摘要
916
+ :type DocumentSummary: str
917
+ """
918
+ self._FileName = None
919
+ self._FileSize = None
920
+ self._Type = None
921
+ self._FileId = None
922
+ self._Status = None
923
+ self._CreateUser = None
924
+ self._CreateTime = None
925
+ self._ChunkConfig = None
926
+ self._Source = None
927
+ self._FileUrl = None
928
+ self._IsShowCase = None
929
+ self._DocumentSummary = None
930
+
931
+ @property
932
+ def FileName(self):
933
+ r"""文件名称
934
+ :rtype: str
935
+ """
936
+ return self._FileName
937
+
938
+ @FileName.setter
939
+ def FileName(self, FileName):
940
+ self._FileName = FileName
941
+
942
+ @property
943
+ def FileSize(self):
944
+ r"""文件大小,字节
945
+ :rtype: float
946
+ """
947
+ return self._FileSize
948
+
949
+ @FileSize.setter
950
+ def FileSize(self, FileSize):
951
+ self._FileSize = FileSize
952
+
953
+ @property
954
+ def Type(self):
955
+ r"""文件类型,0=文本,1=表格,默认0
956
+
957
+ :rtype: int
958
+ """
959
+ return self._Type
960
+
961
+ @Type.setter
962
+ def Type(self, Type):
963
+ self._Type = Type
964
+
965
+ @property
966
+ def FileId(self):
967
+ r"""文件ID
968
+ :rtype: str
969
+ """
970
+ return self._FileId
971
+
972
+ @FileId.setter
973
+ def FileId(self, FileId):
974
+ self._FileId = FileId
975
+
976
+ @property
977
+ def Status(self):
978
+ r"""状态,0:数据处理中 1:可用 -1:错误
979
+ :rtype: int
980
+ """
981
+ return self._Status
982
+
983
+ @Status.setter
984
+ def Status(self, Status):
985
+ self._Status = Status
986
+
987
+ @property
988
+ def CreateUser(self):
989
+ r"""操作者
990
+
991
+ :rtype: str
992
+ """
993
+ return self._CreateUser
994
+
995
+ @CreateUser.setter
996
+ def CreateUser(self, CreateUser):
997
+ self._CreateUser = CreateUser
998
+
999
+ @property
1000
+ def CreateTime(self):
1001
+ r"""创建时间
1002
+ :rtype: str
1003
+ """
1004
+ return self._CreateTime
1005
+
1006
+ @CreateTime.setter
1007
+ def CreateTime(self, CreateTime):
1008
+ self._CreateTime = CreateTime
1009
+
1010
+ @property
1011
+ def ChunkConfig(self):
1012
+ r"""分片策略
1013
+ :rtype: :class:`tencentcloud.dataagent.v20250513.models.KnowledgeTaskConfig`
1014
+ """
1015
+ return self._ChunkConfig
1016
+
1017
+ @ChunkConfig.setter
1018
+ def ChunkConfig(self, ChunkConfig):
1019
+ self._ChunkConfig = ChunkConfig
1020
+
1021
+ @property
1022
+ def Source(self):
1023
+ r"""文件来源0=unknow,1=user_cos,2=local
1024
+ :rtype: int
1025
+ """
1026
+ return self._Source
1027
+
1028
+ @Source.setter
1029
+ def Source(self, Source):
1030
+ self._Source = Source
1031
+
1032
+ @property
1033
+ def FileUrl(self):
1034
+ r"""文件url
1035
+ :rtype: str
1036
+ """
1037
+ return self._FileUrl
1038
+
1039
+ @FileUrl.setter
1040
+ def FileUrl(self, FileUrl):
1041
+ self._FileUrl = FileUrl
1042
+
1043
+ @property
1044
+ def IsShowCase(self):
1045
+ r"""是否官方示例,0=否,1=是
1046
+ :rtype: int
1047
+ """
1048
+ return self._IsShowCase
1049
+
1050
+ @IsShowCase.setter
1051
+ def IsShowCase(self, IsShowCase):
1052
+ self._IsShowCase = IsShowCase
1053
+
1054
+ @property
1055
+ def DocumentSummary(self):
1056
+ r"""文档摘要
1057
+ :rtype: str
1058
+ """
1059
+ return self._DocumentSummary
1060
+
1061
+ @DocumentSummary.setter
1062
+ def DocumentSummary(self, DocumentSummary):
1063
+ self._DocumentSummary = DocumentSummary
1064
+
1065
+
1066
+ def _deserialize(self, params):
1067
+ self._FileName = params.get("FileName")
1068
+ self._FileSize = params.get("FileSize")
1069
+ self._Type = params.get("Type")
1070
+ self._FileId = params.get("FileId")
1071
+ self._Status = params.get("Status")
1072
+ self._CreateUser = params.get("CreateUser")
1073
+ self._CreateTime = params.get("CreateTime")
1074
+ if params.get("ChunkConfig") is not None:
1075
+ self._ChunkConfig = KnowledgeTaskConfig()
1076
+ self._ChunkConfig._deserialize(params.get("ChunkConfig"))
1077
+ self._Source = params.get("Source")
1078
+ self._FileUrl = params.get("FileUrl")
1079
+ self._IsShowCase = params.get("IsShowCase")
1080
+ self._DocumentSummary = params.get("DocumentSummary")
1081
+ memeber_set = set(params.keys())
1082
+ for name, value in vars(self).items():
1083
+ property_name = name[1:]
1084
+ if property_name in memeber_set:
1085
+ memeber_set.remove(property_name)
1086
+ if len(memeber_set) > 0:
1087
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1088
+
1089
+
1090
+
1091
+ class GetJobsByKnowledgeBaseIdRequest(AbstractModel):
1092
+ r"""GetJobsByKnowledgeBaseId请求参数结构体
1093
+
1094
+ """
1095
+
1096
+ def __init__(self):
1097
+ r"""
1098
+ :param _InstanceId: 实例ID
1099
+ :type InstanceId: str
1100
+ :param _KnowledgeBaseId: 知识库id
1101
+ :type KnowledgeBaseId: str
1102
+ """
1103
+ self._InstanceId = None
1104
+ self._KnowledgeBaseId = None
1105
+
1106
+ @property
1107
+ def InstanceId(self):
1108
+ r"""实例ID
1109
+ :rtype: str
1110
+ """
1111
+ return self._InstanceId
1112
+
1113
+ @InstanceId.setter
1114
+ def InstanceId(self, InstanceId):
1115
+ self._InstanceId = InstanceId
1116
+
1117
+ @property
1118
+ def KnowledgeBaseId(self):
1119
+ r"""知识库id
1120
+ :rtype: str
1121
+ """
1122
+ return self._KnowledgeBaseId
1123
+
1124
+ @KnowledgeBaseId.setter
1125
+ def KnowledgeBaseId(self, KnowledgeBaseId):
1126
+ self._KnowledgeBaseId = KnowledgeBaseId
1127
+
1128
+
1129
+ def _deserialize(self, params):
1130
+ self._InstanceId = params.get("InstanceId")
1131
+ self._KnowledgeBaseId = params.get("KnowledgeBaseId")
1132
+ memeber_set = set(params.keys())
1133
+ for name, value in vars(self).items():
1134
+ property_name = name[1:]
1135
+ if property_name in memeber_set:
1136
+ memeber_set.remove(property_name)
1137
+ if len(memeber_set) > 0:
1138
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1139
+
1140
+
1141
+
1142
+ class GetJobsByKnowledgeBaseIdResponse(AbstractModel):
1143
+ r"""GetJobsByKnowledgeBaseId返回参数结构体
1144
+
1145
+ """
1146
+
1147
+ def __init__(self):
1148
+ r"""
1149
+ :param _Jobs: 任务列表详情
1150
+ :type Jobs: list of UploadJob
1151
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1152
+ :type RequestId: str
1153
+ """
1154
+ self._Jobs = None
1155
+ self._RequestId = None
1156
+
1157
+ @property
1158
+ def Jobs(self):
1159
+ r"""任务列表详情
1160
+ :rtype: list of UploadJob
1161
+ """
1162
+ return self._Jobs
1163
+
1164
+ @Jobs.setter
1165
+ def Jobs(self, Jobs):
1166
+ self._Jobs = Jobs
1167
+
1168
+ @property
1169
+ def RequestId(self):
1170
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1171
+ :rtype: str
1172
+ """
1173
+ return self._RequestId
1174
+
1175
+ @RequestId.setter
1176
+ def RequestId(self, RequestId):
1177
+ self._RequestId = RequestId
1178
+
1179
+
1180
+ def _deserialize(self, params):
1181
+ if params.get("Jobs") is not None:
1182
+ self._Jobs = []
1183
+ for item in params.get("Jobs"):
1184
+ obj = UploadJob()
1185
+ obj._deserialize(item)
1186
+ self._Jobs.append(obj)
1187
+ self._RequestId = params.get("RequestId")
1188
+
1189
+
788
1190
  class GetKnowledgeBaseFileListRequest(AbstractModel):
789
1191
  r"""GetKnowledgeBaseFileList请求参数结构体
790
1192
 
@@ -873,11 +1275,39 @@ class GetKnowledgeBaseFileListResponse(AbstractModel):
873
1275
 
874
1276
  def __init__(self):
875
1277
  r"""
1278
+ :param _FileList: 文件信息列表
1279
+ :type FileList: list of FileInfo
1280
+ :param _Total: 文件信息总数
1281
+ :type Total: int
876
1282
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
877
1283
  :type RequestId: str
878
1284
  """
1285
+ self._FileList = None
1286
+ self._Total = None
879
1287
  self._RequestId = None
880
1288
 
1289
+ @property
1290
+ def FileList(self):
1291
+ r"""文件信息列表
1292
+ :rtype: list of FileInfo
1293
+ """
1294
+ return self._FileList
1295
+
1296
+ @FileList.setter
1297
+ def FileList(self, FileList):
1298
+ self._FileList = FileList
1299
+
1300
+ @property
1301
+ def Total(self):
1302
+ r"""文件信息总数
1303
+ :rtype: int
1304
+ """
1305
+ return self._Total
1306
+
1307
+ @Total.setter
1308
+ def Total(self, Total):
1309
+ self._Total = Total
1310
+
881
1311
  @property
882
1312
  def RequestId(self):
883
1313
  r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -891,6 +1321,13 @@ class GetKnowledgeBaseFileListResponse(AbstractModel):
891
1321
 
892
1322
 
893
1323
  def _deserialize(self, params):
1324
+ if params.get("FileList") is not None:
1325
+ self._FileList = []
1326
+ for item in params.get("FileList"):
1327
+ obj = FileInfo()
1328
+ obj._deserialize(item)
1329
+ self._FileList.append(obj)
1330
+ self._Total = params.get("Total")
894
1331
  self._RequestId = params.get("RequestId")
895
1332
 
896
1333
 
@@ -1331,6 +1768,154 @@ class KnowledgeBase(AbstractModel):
1331
1768
 
1332
1769
 
1333
1770
 
1771
+ class KnowledgeTaskConfig(AbstractModel):
1772
+ r"""任务配置
1773
+
1774
+ """
1775
+
1776
+ def __init__(self):
1777
+ r"""
1778
+ :param _ChunkType: 切片类型 0:自定义切片,1:智能切片
1779
+ :type ChunkType: int
1780
+ :param _MaxChunkSize: /智能切片:最小值 1000,默认 4800 自定义切片:正整数即可,默认值 1000
1781
+ :type MaxChunkSize: int
1782
+ :param _Delimiters: 切片分隔符,自定义切片使用:默认值为:["\n\n", "\n", "。", "!", "?", ",", ""]
1783
+ 注意:此字段可能返回 null,表示取不到有效值。
1784
+ :type Delimiters: list of str
1785
+ :param _ChunkOverlap: 自定义切片使用:默认0 可重叠字符长度
1786
+ :type ChunkOverlap: int
1787
+ :param _Columns: 表格类文档解析
1788
+ :type Columns: list of ColumnInfo
1789
+ :param _Indexes: 带检索的索引列表
1790
+ :type Indexes: list of int
1791
+ :param _GenDocSummary: 0:不生成文档摘要,1:生成文档概要。默认0,当取1时,GenParaSummary必须也为1
1792
+ :type GenDocSummary: int
1793
+ :param _GenParaSummary: 0:不生成段落摘要,1:生成段落概要。默认0
1794
+ :type GenParaSummary: int
1795
+ """
1796
+ self._ChunkType = None
1797
+ self._MaxChunkSize = None
1798
+ self._Delimiters = None
1799
+ self._ChunkOverlap = None
1800
+ self._Columns = None
1801
+ self._Indexes = None
1802
+ self._GenDocSummary = None
1803
+ self._GenParaSummary = None
1804
+
1805
+ @property
1806
+ def ChunkType(self):
1807
+ r"""切片类型 0:自定义切片,1:智能切片
1808
+ :rtype: int
1809
+ """
1810
+ return self._ChunkType
1811
+
1812
+ @ChunkType.setter
1813
+ def ChunkType(self, ChunkType):
1814
+ self._ChunkType = ChunkType
1815
+
1816
+ @property
1817
+ def MaxChunkSize(self):
1818
+ r"""/智能切片:最小值 1000,默认 4800 自定义切片:正整数即可,默认值 1000
1819
+ :rtype: int
1820
+ """
1821
+ return self._MaxChunkSize
1822
+
1823
+ @MaxChunkSize.setter
1824
+ def MaxChunkSize(self, MaxChunkSize):
1825
+ self._MaxChunkSize = MaxChunkSize
1826
+
1827
+ @property
1828
+ def Delimiters(self):
1829
+ r""" 切片分隔符,自定义切片使用:默认值为:["\n\n", "\n", "。", "!", "?", ",", ""]
1830
+ 注意:此字段可能返回 null,表示取不到有效值。
1831
+ :rtype: list of str
1832
+ """
1833
+ return self._Delimiters
1834
+
1835
+ @Delimiters.setter
1836
+ def Delimiters(self, Delimiters):
1837
+ self._Delimiters = Delimiters
1838
+
1839
+ @property
1840
+ def ChunkOverlap(self):
1841
+ r"""自定义切片使用:默认0 可重叠字符长度
1842
+ :rtype: int
1843
+ """
1844
+ return self._ChunkOverlap
1845
+
1846
+ @ChunkOverlap.setter
1847
+ def ChunkOverlap(self, ChunkOverlap):
1848
+ self._ChunkOverlap = ChunkOverlap
1849
+
1850
+ @property
1851
+ def Columns(self):
1852
+ r"""表格类文档解析
1853
+ :rtype: list of ColumnInfo
1854
+ """
1855
+ return self._Columns
1856
+
1857
+ @Columns.setter
1858
+ def Columns(self, Columns):
1859
+ self._Columns = Columns
1860
+
1861
+ @property
1862
+ def Indexes(self):
1863
+ r"""带检索的索引列表
1864
+ :rtype: list of int
1865
+ """
1866
+ return self._Indexes
1867
+
1868
+ @Indexes.setter
1869
+ def Indexes(self, Indexes):
1870
+ self._Indexes = Indexes
1871
+
1872
+ @property
1873
+ def GenDocSummary(self):
1874
+ r"""0:不生成文档摘要,1:生成文档概要。默认0,当取1时,GenParaSummary必须也为1
1875
+ :rtype: int
1876
+ """
1877
+ return self._GenDocSummary
1878
+
1879
+ @GenDocSummary.setter
1880
+ def GenDocSummary(self, GenDocSummary):
1881
+ self._GenDocSummary = GenDocSummary
1882
+
1883
+ @property
1884
+ def GenParaSummary(self):
1885
+ r"""0:不生成段落摘要,1:生成段落概要。默认0
1886
+ :rtype: int
1887
+ """
1888
+ return self._GenParaSummary
1889
+
1890
+ @GenParaSummary.setter
1891
+ def GenParaSummary(self, GenParaSummary):
1892
+ self._GenParaSummary = GenParaSummary
1893
+
1894
+
1895
+ def _deserialize(self, params):
1896
+ self._ChunkType = params.get("ChunkType")
1897
+ self._MaxChunkSize = params.get("MaxChunkSize")
1898
+ self._Delimiters = params.get("Delimiters")
1899
+ self._ChunkOverlap = params.get("ChunkOverlap")
1900
+ if params.get("Columns") is not None:
1901
+ self._Columns = []
1902
+ for item in params.get("Columns"):
1903
+ obj = ColumnInfo()
1904
+ obj._deserialize(item)
1905
+ self._Columns.append(obj)
1906
+ self._Indexes = params.get("Indexes")
1907
+ self._GenDocSummary = params.get("GenDocSummary")
1908
+ self._GenParaSummary = params.get("GenParaSummary")
1909
+ memeber_set = set(params.keys())
1910
+ for name, value in vars(self).items():
1911
+ property_name = name[1:]
1912
+ if property_name in memeber_set:
1913
+ memeber_set.remove(property_name)
1914
+ if len(memeber_set) > 0:
1915
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1916
+
1917
+
1918
+
1334
1919
  class ModifyChunkRequest(AbstractModel):
1335
1920
  r"""ModifyChunk请求参数结构体
1336
1921
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-dataagent
3
- Version: 3.1.8
3
+ Version: 3.1.15
4
4
  Summary: Tencent Cloud Dataagent SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.8
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.15
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.15
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.8