tencentcloud-sdk-python-dataagent 3.1.7__tar.gz → 3.1.9__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.
- {tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/setup.py +1 -1
- {tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/tencentcloud/dataagent/v20250513/dataagent_client.py +23 -0
- {tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/tencentcloud/dataagent/v20250513/dataagent_client_async.py +18 -0
- {tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/tencentcloud/dataagent/v20250513/models.py +595 -0
- {tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/tencentcloud_sdk_python_dataagent.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_dataagent-3.1.9/tencentcloud_sdk_python_dataagent.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_dataagent-3.1.7/tencentcloud_sdk_python_dataagent.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/README.rst +0 -0
- {tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/setup.cfg +0 -0
- {tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/tencentcloud/dataagent/__init__.py +0 -0
- {tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/tencentcloud/dataagent/v20250513/__init__.py +0 -0
- {tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/tencentcloud/dataagent/v20250513/errorcodes.py +0 -0
- {tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/tencentcloud_sdk_python_dataagent.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/tencentcloud_sdk_python_dataagent.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/tencentcloud_sdk_python_dataagent.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-dataagent
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.9
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.9
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
{tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/setup.py
RENAMED
|
@@ -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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.9,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Dataagent SDK for Python',
|
|
@@ -136,6 +136,29 @@ class DataagentClient(AbstractClient):
|
|
|
136
136
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
137
137
|
|
|
138
138
|
|
|
139
|
+
def GetKnowledgeBaseFileList(self, request):
|
|
140
|
+
r"""获取知识库文件信息列表
|
|
141
|
+
|
|
142
|
+
:param request: Request instance for GetKnowledgeBaseFileList.
|
|
143
|
+
:type request: :class:`tencentcloud.dataagent.v20250513.models.GetKnowledgeBaseFileListRequest`
|
|
144
|
+
:rtype: :class:`tencentcloud.dataagent.v20250513.models.GetKnowledgeBaseFileListResponse`
|
|
145
|
+
|
|
146
|
+
"""
|
|
147
|
+
try:
|
|
148
|
+
params = request._serialize()
|
|
149
|
+
headers = request.headers
|
|
150
|
+
body = self.call("GetKnowledgeBaseFileList", params, headers=headers)
|
|
151
|
+
response = json.loads(body)
|
|
152
|
+
model = models.GetKnowledgeBaseFileListResponse()
|
|
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 GetKnowledgeBaseList(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 GetKnowledgeBaseFileList(
|
|
119
|
+
self,
|
|
120
|
+
request: models.GetKnowledgeBaseFileListRequest,
|
|
121
|
+
opts: Dict = None,
|
|
122
|
+
) -> models.GetKnowledgeBaseFileListResponse:
|
|
123
|
+
"""
|
|
124
|
+
获取知识库文件信息列表
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = {}
|
|
128
|
+
kwargs["action"] = "GetKnowledgeBaseFileList"
|
|
129
|
+
kwargs["params"] = request._serialize()
|
|
130
|
+
kwargs["resp_cls"] = models.GetKnowledgeBaseFileListResponse
|
|
131
|
+
kwargs["headers"] = request.headers
|
|
132
|
+
kwargs["opts"] = opts or {}
|
|
133
|
+
|
|
134
|
+
return await self.call_and_deserialize(**kwargs)
|
|
135
|
+
|
|
118
136
|
async def GetKnowledgeBaseList(
|
|
119
137
|
self,
|
|
120
138
|
request: models.GetKnowledgeBaseListRequest,
|
|
@@ -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,357 @@ 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 GetKnowledgeBaseFileListRequest(AbstractModel):
|
|
1092
|
+
r"""GetKnowledgeBaseFileList请求参数结构体
|
|
1093
|
+
|
|
1094
|
+
"""
|
|
1095
|
+
|
|
1096
|
+
def __init__(self):
|
|
1097
|
+
r"""
|
|
1098
|
+
:param _InstanceId: 实例id
|
|
1099
|
+
:type InstanceId: str
|
|
1100
|
+
:param _Page: 默认 1 表示第一页,可以不填
|
|
1101
|
+
:type Page: int
|
|
1102
|
+
:param _PageSize: 默认 10 一页展示 10 条,可以不填
|
|
1103
|
+
:type PageSize: int
|
|
1104
|
+
:param _KnowledgeBaseId: 知识库id
|
|
1105
|
+
:type KnowledgeBaseId: str
|
|
1106
|
+
"""
|
|
1107
|
+
self._InstanceId = None
|
|
1108
|
+
self._Page = None
|
|
1109
|
+
self._PageSize = None
|
|
1110
|
+
self._KnowledgeBaseId = None
|
|
1111
|
+
|
|
1112
|
+
@property
|
|
1113
|
+
def InstanceId(self):
|
|
1114
|
+
r"""实例id
|
|
1115
|
+
:rtype: str
|
|
1116
|
+
"""
|
|
1117
|
+
return self._InstanceId
|
|
1118
|
+
|
|
1119
|
+
@InstanceId.setter
|
|
1120
|
+
def InstanceId(self, InstanceId):
|
|
1121
|
+
self._InstanceId = InstanceId
|
|
1122
|
+
|
|
1123
|
+
@property
|
|
1124
|
+
def Page(self):
|
|
1125
|
+
r"""默认 1 表示第一页,可以不填
|
|
1126
|
+
:rtype: int
|
|
1127
|
+
"""
|
|
1128
|
+
return self._Page
|
|
1129
|
+
|
|
1130
|
+
@Page.setter
|
|
1131
|
+
def Page(self, Page):
|
|
1132
|
+
self._Page = Page
|
|
1133
|
+
|
|
1134
|
+
@property
|
|
1135
|
+
def PageSize(self):
|
|
1136
|
+
r"""默认 10 一页展示 10 条,可以不填
|
|
1137
|
+
:rtype: int
|
|
1138
|
+
"""
|
|
1139
|
+
return self._PageSize
|
|
1140
|
+
|
|
1141
|
+
@PageSize.setter
|
|
1142
|
+
def PageSize(self, PageSize):
|
|
1143
|
+
self._PageSize = PageSize
|
|
1144
|
+
|
|
1145
|
+
@property
|
|
1146
|
+
def KnowledgeBaseId(self):
|
|
1147
|
+
r"""知识库id
|
|
1148
|
+
:rtype: str
|
|
1149
|
+
"""
|
|
1150
|
+
return self._KnowledgeBaseId
|
|
1151
|
+
|
|
1152
|
+
@KnowledgeBaseId.setter
|
|
1153
|
+
def KnowledgeBaseId(self, KnowledgeBaseId):
|
|
1154
|
+
self._KnowledgeBaseId = KnowledgeBaseId
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
def _deserialize(self, params):
|
|
1158
|
+
self._InstanceId = params.get("InstanceId")
|
|
1159
|
+
self._Page = params.get("Page")
|
|
1160
|
+
self._PageSize = params.get("PageSize")
|
|
1161
|
+
self._KnowledgeBaseId = params.get("KnowledgeBaseId")
|
|
1162
|
+
memeber_set = set(params.keys())
|
|
1163
|
+
for name, value in vars(self).items():
|
|
1164
|
+
property_name = name[1:]
|
|
1165
|
+
if property_name in memeber_set:
|
|
1166
|
+
memeber_set.remove(property_name)
|
|
1167
|
+
if len(memeber_set) > 0:
|
|
1168
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
class GetKnowledgeBaseFileListResponse(AbstractModel):
|
|
1173
|
+
r"""GetKnowledgeBaseFileList返回参数结构体
|
|
1174
|
+
|
|
1175
|
+
"""
|
|
1176
|
+
|
|
1177
|
+
def __init__(self):
|
|
1178
|
+
r"""
|
|
1179
|
+
:param _FileList: 文件信息列表
|
|
1180
|
+
:type FileList: list of FileInfo
|
|
1181
|
+
:param _Total: 文件信息总数
|
|
1182
|
+
:type Total: int
|
|
1183
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1184
|
+
:type RequestId: str
|
|
1185
|
+
"""
|
|
1186
|
+
self._FileList = None
|
|
1187
|
+
self._Total = None
|
|
1188
|
+
self._RequestId = None
|
|
1189
|
+
|
|
1190
|
+
@property
|
|
1191
|
+
def FileList(self):
|
|
1192
|
+
r"""文件信息列表
|
|
1193
|
+
:rtype: list of FileInfo
|
|
1194
|
+
"""
|
|
1195
|
+
return self._FileList
|
|
1196
|
+
|
|
1197
|
+
@FileList.setter
|
|
1198
|
+
def FileList(self, FileList):
|
|
1199
|
+
self._FileList = FileList
|
|
1200
|
+
|
|
1201
|
+
@property
|
|
1202
|
+
def Total(self):
|
|
1203
|
+
r"""文件信息总数
|
|
1204
|
+
:rtype: int
|
|
1205
|
+
"""
|
|
1206
|
+
return self._Total
|
|
1207
|
+
|
|
1208
|
+
@Total.setter
|
|
1209
|
+
def Total(self, Total):
|
|
1210
|
+
self._Total = Total
|
|
1211
|
+
|
|
1212
|
+
@property
|
|
1213
|
+
def RequestId(self):
|
|
1214
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1215
|
+
:rtype: str
|
|
1216
|
+
"""
|
|
1217
|
+
return self._RequestId
|
|
1218
|
+
|
|
1219
|
+
@RequestId.setter
|
|
1220
|
+
def RequestId(self, RequestId):
|
|
1221
|
+
self._RequestId = RequestId
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
def _deserialize(self, params):
|
|
1225
|
+
if params.get("FileList") is not None:
|
|
1226
|
+
self._FileList = []
|
|
1227
|
+
for item in params.get("FileList"):
|
|
1228
|
+
obj = FileInfo()
|
|
1229
|
+
obj._deserialize(item)
|
|
1230
|
+
self._FileList.append(obj)
|
|
1231
|
+
self._Total = params.get("Total")
|
|
1232
|
+
self._RequestId = params.get("RequestId")
|
|
1233
|
+
|
|
1234
|
+
|
|
788
1235
|
class GetKnowledgeBaseListRequest(AbstractModel):
|
|
789
1236
|
r"""GetKnowledgeBaseList请求参数结构体
|
|
790
1237
|
|
|
@@ -1222,6 +1669,154 @@ class KnowledgeBase(AbstractModel):
|
|
|
1222
1669
|
|
|
1223
1670
|
|
|
1224
1671
|
|
|
1672
|
+
class KnowledgeTaskConfig(AbstractModel):
|
|
1673
|
+
r"""任务配置
|
|
1674
|
+
|
|
1675
|
+
"""
|
|
1676
|
+
|
|
1677
|
+
def __init__(self):
|
|
1678
|
+
r"""
|
|
1679
|
+
:param _ChunkType: 切片类型 0:自定义切片,1:智能切片
|
|
1680
|
+
:type ChunkType: int
|
|
1681
|
+
:param _MaxChunkSize: /智能切片:最小值 1000,默认 4800 自定义切片:正整数即可,默认值 1000
|
|
1682
|
+
:type MaxChunkSize: int
|
|
1683
|
+
:param _Delimiters: 切片分隔符,自定义切片使用:默认值为:["\n\n", "\n", "。", "!", "?", ",", ""]
|
|
1684
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1685
|
+
:type Delimiters: list of str
|
|
1686
|
+
:param _ChunkOverlap: 自定义切片使用:默认0 可重叠字符长度
|
|
1687
|
+
:type ChunkOverlap: int
|
|
1688
|
+
:param _Columns: 表格类文档解析
|
|
1689
|
+
:type Columns: list of ColumnInfo
|
|
1690
|
+
:param _Indexes: 带检索的索引列表
|
|
1691
|
+
:type Indexes: list of int
|
|
1692
|
+
:param _GenDocSummary: 0:不生成文档摘要,1:生成文档概要。默认0,当取1时,GenParaSummary必须也为1
|
|
1693
|
+
:type GenDocSummary: int
|
|
1694
|
+
:param _GenParaSummary: 0:不生成段落摘要,1:生成段落概要。默认0
|
|
1695
|
+
:type GenParaSummary: int
|
|
1696
|
+
"""
|
|
1697
|
+
self._ChunkType = None
|
|
1698
|
+
self._MaxChunkSize = None
|
|
1699
|
+
self._Delimiters = None
|
|
1700
|
+
self._ChunkOverlap = None
|
|
1701
|
+
self._Columns = None
|
|
1702
|
+
self._Indexes = None
|
|
1703
|
+
self._GenDocSummary = None
|
|
1704
|
+
self._GenParaSummary = None
|
|
1705
|
+
|
|
1706
|
+
@property
|
|
1707
|
+
def ChunkType(self):
|
|
1708
|
+
r"""切片类型 0:自定义切片,1:智能切片
|
|
1709
|
+
:rtype: int
|
|
1710
|
+
"""
|
|
1711
|
+
return self._ChunkType
|
|
1712
|
+
|
|
1713
|
+
@ChunkType.setter
|
|
1714
|
+
def ChunkType(self, ChunkType):
|
|
1715
|
+
self._ChunkType = ChunkType
|
|
1716
|
+
|
|
1717
|
+
@property
|
|
1718
|
+
def MaxChunkSize(self):
|
|
1719
|
+
r"""/智能切片:最小值 1000,默认 4800 自定义切片:正整数即可,默认值 1000
|
|
1720
|
+
:rtype: int
|
|
1721
|
+
"""
|
|
1722
|
+
return self._MaxChunkSize
|
|
1723
|
+
|
|
1724
|
+
@MaxChunkSize.setter
|
|
1725
|
+
def MaxChunkSize(self, MaxChunkSize):
|
|
1726
|
+
self._MaxChunkSize = MaxChunkSize
|
|
1727
|
+
|
|
1728
|
+
@property
|
|
1729
|
+
def Delimiters(self):
|
|
1730
|
+
r""" 切片分隔符,自定义切片使用:默认值为:["\n\n", "\n", "。", "!", "?", ",", ""]
|
|
1731
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1732
|
+
:rtype: list of str
|
|
1733
|
+
"""
|
|
1734
|
+
return self._Delimiters
|
|
1735
|
+
|
|
1736
|
+
@Delimiters.setter
|
|
1737
|
+
def Delimiters(self, Delimiters):
|
|
1738
|
+
self._Delimiters = Delimiters
|
|
1739
|
+
|
|
1740
|
+
@property
|
|
1741
|
+
def ChunkOverlap(self):
|
|
1742
|
+
r"""自定义切片使用:默认0 可重叠字符长度
|
|
1743
|
+
:rtype: int
|
|
1744
|
+
"""
|
|
1745
|
+
return self._ChunkOverlap
|
|
1746
|
+
|
|
1747
|
+
@ChunkOverlap.setter
|
|
1748
|
+
def ChunkOverlap(self, ChunkOverlap):
|
|
1749
|
+
self._ChunkOverlap = ChunkOverlap
|
|
1750
|
+
|
|
1751
|
+
@property
|
|
1752
|
+
def Columns(self):
|
|
1753
|
+
r"""表格类文档解析
|
|
1754
|
+
:rtype: list of ColumnInfo
|
|
1755
|
+
"""
|
|
1756
|
+
return self._Columns
|
|
1757
|
+
|
|
1758
|
+
@Columns.setter
|
|
1759
|
+
def Columns(self, Columns):
|
|
1760
|
+
self._Columns = Columns
|
|
1761
|
+
|
|
1762
|
+
@property
|
|
1763
|
+
def Indexes(self):
|
|
1764
|
+
r"""带检索的索引列表
|
|
1765
|
+
:rtype: list of int
|
|
1766
|
+
"""
|
|
1767
|
+
return self._Indexes
|
|
1768
|
+
|
|
1769
|
+
@Indexes.setter
|
|
1770
|
+
def Indexes(self, Indexes):
|
|
1771
|
+
self._Indexes = Indexes
|
|
1772
|
+
|
|
1773
|
+
@property
|
|
1774
|
+
def GenDocSummary(self):
|
|
1775
|
+
r"""0:不生成文档摘要,1:生成文档概要。默认0,当取1时,GenParaSummary必须也为1
|
|
1776
|
+
:rtype: int
|
|
1777
|
+
"""
|
|
1778
|
+
return self._GenDocSummary
|
|
1779
|
+
|
|
1780
|
+
@GenDocSummary.setter
|
|
1781
|
+
def GenDocSummary(self, GenDocSummary):
|
|
1782
|
+
self._GenDocSummary = GenDocSummary
|
|
1783
|
+
|
|
1784
|
+
@property
|
|
1785
|
+
def GenParaSummary(self):
|
|
1786
|
+
r"""0:不生成段落摘要,1:生成段落概要。默认0
|
|
1787
|
+
:rtype: int
|
|
1788
|
+
"""
|
|
1789
|
+
return self._GenParaSummary
|
|
1790
|
+
|
|
1791
|
+
@GenParaSummary.setter
|
|
1792
|
+
def GenParaSummary(self, GenParaSummary):
|
|
1793
|
+
self._GenParaSummary = GenParaSummary
|
|
1794
|
+
|
|
1795
|
+
|
|
1796
|
+
def _deserialize(self, params):
|
|
1797
|
+
self._ChunkType = params.get("ChunkType")
|
|
1798
|
+
self._MaxChunkSize = params.get("MaxChunkSize")
|
|
1799
|
+
self._Delimiters = params.get("Delimiters")
|
|
1800
|
+
self._ChunkOverlap = params.get("ChunkOverlap")
|
|
1801
|
+
if params.get("Columns") is not None:
|
|
1802
|
+
self._Columns = []
|
|
1803
|
+
for item in params.get("Columns"):
|
|
1804
|
+
obj = ColumnInfo()
|
|
1805
|
+
obj._deserialize(item)
|
|
1806
|
+
self._Columns.append(obj)
|
|
1807
|
+
self._Indexes = params.get("Indexes")
|
|
1808
|
+
self._GenDocSummary = params.get("GenDocSummary")
|
|
1809
|
+
self._GenParaSummary = params.get("GenParaSummary")
|
|
1810
|
+
memeber_set = set(params.keys())
|
|
1811
|
+
for name, value in vars(self).items():
|
|
1812
|
+
property_name = name[1:]
|
|
1813
|
+
if property_name in memeber_set:
|
|
1814
|
+
memeber_set.remove(property_name)
|
|
1815
|
+
if len(memeber_set) > 0:
|
|
1816
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
|
|
1225
1820
|
class ModifyChunkRequest(AbstractModel):
|
|
1226
1821
|
r"""ModifyChunk请求参数结构体
|
|
1227
1822
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-dataagent
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.9
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.9
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
tencentcloud_sdk_python_dataagent-3.1.9/tencentcloud_sdk_python_dataagent.egg-info/requires.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.9
|
tencentcloud_sdk_python_dataagent-3.1.7/tencentcloud_sdk_python_dataagent.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.7
|
{tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/README.rst
RENAMED
|
File without changes
|
{tencentcloud_sdk_python_dataagent-3.1.7 → tencentcloud_sdk_python_dataagent-3.1.9}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|