tencentcloud-sdk-python 3.0.1423__py2.py3-none-any.whl → 3.0.1425__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/ai3d/v20250513/models.py +2 -2
- tencentcloud/aiart/v20221229/models.py +2 -2
- tencentcloud/batch/v20170312/errorcodes.py +3 -0
- tencentcloud/cbs/v20170312/errorcodes.py +3 -0
- tencentcloud/ccc/v20200210/models.py +2 -2
- tencentcloud/cdb/v20170320/models.py +4 -4
- tencentcloud/cfg/v20210820/models.py +15 -0
- tencentcloud/cfs/v20190719/models.py +90 -0
- tencentcloud/csip/v20221121/models.py +32 -2
- tencentcloud/ctem/v20231128/ctem_client.py +92 -0
- tencentcloud/ctem/v20231128/models.py +2739 -1053
- tencentcloud/cwp/v20180228/models.py +15 -0
- tencentcloud/cynosdb/v20190107/models.py +45 -0
- tencentcloud/eb/v20210416/models.py +8 -8
- tencentcloud/ess/v20201111/ess_client.py +52 -0
- tencentcloud/ess/v20201111/models.py +445 -0
- tencentcloud/iai/v20180301/iai_client.py +0 -1
- tencentcloud/iai/v20180301/models.py +168 -126
- tencentcloud/igtm/v20231024/models.py +10 -144
- tencentcloud/ims/v20201229/errorcodes.py +3 -0
- tencentcloud/iss/v20230517/models.py +4 -8
- tencentcloud/lighthouse/v20200324/models.py +15 -0
- tencentcloud/live/v20180801/models.py +591 -0
- tencentcloud/lke/v20231130/models.py +4 -4
- tencentcloud/lkeap/v20240522/errorcodes.py +3 -0
- tencentcloud/lkeap/v20240522/lkeap_client.py +3 -0
- tencentcloud/lkeap/v20240522/models.py +194 -104
- tencentcloud/mongodb/v20190725/models.py +4 -2
- tencentcloud/monitor/v20180724/models.py +52 -6
- tencentcloud/mps/v20190612/models.py +576 -144
- tencentcloud/mps/v20190612/mps_client.py +26 -0
- tencentcloud/ocr/v20181119/models.py +42 -24
- tencentcloud/omics/v20221128/models.py +15 -0
- tencentcloud/scf/v20180416/errorcodes.py +93 -0
- tencentcloud/tcbr/v20220217/models.py +15 -0
- tencentcloud/teo/v20220901/models.py +7772 -5903
- tencentcloud/teo/v20220901/teo_client.py +322 -0
- tencentcloud/tione/v20211111/models.py +15 -0
- tencentcloud/tke/v20180525/models.py +95 -0
- tencentcloud/trtc/v20190722/models.py +2583 -725
- tencentcloud/trtc/v20190722/trtc_client.py +194 -0
- tencentcloud/tsf/v20180326/errorcodes.py +1 -1
- tencentcloud/tts/v20190823/tts_client.py +1 -1
- tencentcloud/vod/v20180717/errorcodes.py +3 -0
- tencentcloud/vpc/v20170312/errorcodes.py +3 -0
- tencentcloud/wedata/v20210820/errorcodes.py +12 -0
- tencentcloud/wedata/v20210820/models.py +865 -2
- tencentcloud/wedata/v20210820/wedata_client.py +161 -0
- {tencentcloud_sdk_python-3.0.1423.dist-info → tencentcloud_sdk_python-3.0.1425.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1423.dist-info → tencentcloud_sdk_python-3.0.1425.dist-info}/RECORD +54 -54
- {tencentcloud_sdk_python-3.0.1423.dist-info → tencentcloud_sdk_python-3.0.1425.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1423.dist-info → tencentcloud_sdk_python-3.0.1425.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1423.dist-info → tencentcloud_sdk_python-3.0.1425.dist-info}/top_level.txt +0 -0
@@ -26472,9 +26472,9 @@ class RateMsgRecordRequest(AbstractModel):
|
|
26472
26472
|
:type BotAppKey: str
|
26473
26473
|
:param _RecordId: 消息ID 【大模型回复答案的RecordID】
|
26474
26474
|
:type RecordId: str
|
26475
|
-
:param _Score: 1
|
26475
|
+
:param _Score: 1: 点赞, 2: 点踩
|
26476
26476
|
:type Score: int
|
26477
|
-
:param _Reasons:
|
26477
|
+
:param _Reasons: 原因,只有Score参数为2即点踩的时候才需要输入
|
26478
26478
|
:type Reasons: list of str
|
26479
26479
|
"""
|
26480
26480
|
self._BotAppKey = None
|
@@ -26506,7 +26506,7 @@ class RateMsgRecordRequest(AbstractModel):
|
|
26506
26506
|
|
26507
26507
|
@property
|
26508
26508
|
def Score(self):
|
26509
|
-
"""1
|
26509
|
+
"""1: 点赞, 2: 点踩
|
26510
26510
|
:rtype: int
|
26511
26511
|
"""
|
26512
26512
|
return self._Score
|
@@ -26517,7 +26517,7 @@ class RateMsgRecordRequest(AbstractModel):
|
|
26517
26517
|
|
26518
26518
|
@property
|
26519
26519
|
def Reasons(self):
|
26520
|
-
"""
|
26520
|
+
"""原因,只有Score参数为2即点踩的时候才需要输入
|
26521
26521
|
:rtype: list of str
|
26522
26522
|
"""
|
26523
26523
|
return self._Reasons
|
@@ -32,6 +32,9 @@ FAILEDOPERATION_IMAGEDECODEFAILED = 'FailedOperation.ImageDecodeFailed'
|
|
32
32
|
# 暂不支持解析该文件
|
33
33
|
FAILEDOPERATION_NONSUPPORTPARSE = 'FailedOperation.NonsupportParse'
|
34
34
|
|
35
|
+
# FailedOperation.OcrFailed
|
36
|
+
FAILEDOPERATION_OCRFAILED = 'FailedOperation.OcrFailed'
|
37
|
+
|
35
38
|
# 内部未知错误。
|
36
39
|
FAILEDOPERATION_UNKNOWERROR = 'FailedOperation.UnKnowError'
|
37
40
|
|
@@ -646,6 +646,9 @@ class LkeapClient(AbstractClient):
|
|
646
646
|
|
647
647
|
def ReconstructDocumentSSE(self, request):
|
648
648
|
"""准实时文档解析接口,使用HTTP SSE 协议通信。
|
649
|
+
支持将图片或PDF文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。
|
650
|
+
输入:pdf、ppt、docx、doc、jpg等
|
651
|
+
输出:正常阅读顺序的md文件、识别结果的json(可选)等
|
649
652
|
|
650
653
|
:param request: Request instance for ReconstructDocumentSSE.
|
651
654
|
:type request: :class:`tencentcloud.lkeap.v20240522.models.ReconstructDocumentSSERequest`
|
@@ -927,9 +927,12 @@ class CreateReconstructDocumentFlowConfig(AbstractModel):
|
|
927
927
|
4:返回全文MD + 每一页的MD,
|
928
928
|
默认值为0
|
929
929
|
:type ResultType: str
|
930
|
+
:param _IgnoreFailedPage: 是否忽略失败页,返回已成功的页数据。默认为true。
|
931
|
+
:type IgnoreFailedPage: bool
|
930
932
|
"""
|
931
933
|
self._TableResultType = None
|
932
934
|
self._ResultType = None
|
935
|
+
self._IgnoreFailedPage = None
|
933
936
|
|
934
937
|
@property
|
935
938
|
def TableResultType(self):
|
@@ -962,10 +965,22 @@ class CreateReconstructDocumentFlowConfig(AbstractModel):
|
|
962
965
|
def ResultType(self, ResultType):
|
963
966
|
self._ResultType = ResultType
|
964
967
|
|
968
|
+
@property
|
969
|
+
def IgnoreFailedPage(self):
|
970
|
+
"""是否忽略失败页,返回已成功的页数据。默认为true。
|
971
|
+
:rtype: bool
|
972
|
+
"""
|
973
|
+
return self._IgnoreFailedPage
|
974
|
+
|
975
|
+
@IgnoreFailedPage.setter
|
976
|
+
def IgnoreFailedPage(self, IgnoreFailedPage):
|
977
|
+
self._IgnoreFailedPage = IgnoreFailedPage
|
978
|
+
|
965
979
|
|
966
980
|
def _deserialize(self, params):
|
967
981
|
self._TableResultType = params.get("TableResultType")
|
968
982
|
self._ResultType = params.get("ResultType")
|
983
|
+
self._IgnoreFailedPage = params.get("IgnoreFailedPage")
|
969
984
|
memeber_set = set(params.keys())
|
970
985
|
for name, value in vars(self).items():
|
971
986
|
property_name = name[1:]
|
@@ -983,20 +998,10 @@ class CreateReconstructDocumentFlowRequest(AbstractModel):
|
|
983
998
|
|
984
999
|
def __init__(self):
|
985
1000
|
r"""
|
986
|
-
:param _FileType:
|
987
|
-
|
988
|
-
**支持的文件类型:**
|
989
|
-
- `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`、`BMP`、`GIF`、`WEBP`、`HEIC`、`EPS`、`ICNS`、`IM`、`PCX`、`PPM`、`TIFF`、`XBM`、`HEIF`、`JP2`
|
990
|
-
|
991
|
-
**支持的文件大小:**
|
992
|
-
- `PDF` 最大300M
|
993
|
-
- `DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
|
994
|
-
- `TXT`、`MD` 最大10M
|
995
|
-
- 其他 最大20M
|
996
|
-
|
1001
|
+
:param _FileType: 文件类型。**支持的文件类型:**- `WPS、PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`、`BMP`、`GIF`、`WEBP`、`HEIC`、`EPS`、`ICNS`、`IM`、`PCX`、`PPM`、`TIFF`、`XBM`、`HEIF`、`JP2`**支持的文件大小:** - `PDF` 最大300M - `WPS`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M - `TXT`、`MD` 最大10M - 其他 最大20M
|
997
1002
|
:type FileType: str
|
998
|
-
:param _FileUrl:
|
999
|
-
|
1003
|
+
:param _FileUrl: 说明:文件的 URL 地址。
|
1004
|
+
备注:文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
1000
1005
|
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
1001
1006
|
:type FileUrl: str
|
1002
1007
|
:param _FileBase64: 文件的 Base64 值。
|
@@ -1005,13 +1010,17 @@ class CreateReconstructDocumentFlowRequest(AbstractModel):
|
|
1005
1010
|
支持的图片像素:单边介于20-10000px之间。
|
1006
1011
|
文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
1007
1012
|
:type FileBase64: str
|
1008
|
-
:param _FileStartPageNumber:
|
1009
|
-
|
1013
|
+
:param _FileStartPageNumber: 说明:文档的起始页码。
|
1014
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。
|
1015
|
+
默认值:无
|
1010
1016
|
:type FileStartPageNumber: int
|
1011
|
-
:param _FileEndPageNumber:
|
1012
|
-
|
1017
|
+
:param _FileEndPageNumber: 说明:文档的结束页码。
|
1018
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值。
|
1019
|
+
默认值:无
|
1013
1020
|
:type FileEndPageNumber: int
|
1014
|
-
:param _Config:
|
1021
|
+
:param _Config: 说明:创建文档解析任务配置信息。
|
1022
|
+
备注:可设置结果的返回格式
|
1023
|
+
默认值:无
|
1015
1024
|
:type Config: :class:`tencentcloud.lkeap.v20240522.models.CreateReconstructDocumentFlowConfig`
|
1016
1025
|
"""
|
1017
1026
|
self._FileType = None
|
@@ -1023,17 +1032,7 @@ class CreateReconstructDocumentFlowRequest(AbstractModel):
|
|
1023
1032
|
|
1024
1033
|
@property
|
1025
1034
|
def FileType(self):
|
1026
|
-
"""
|
1027
|
-
|
1028
|
-
**支持的文件类型:**
|
1029
|
-
- `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`、`BMP`、`GIF`、`WEBP`、`HEIC`、`EPS`、`ICNS`、`IM`、`PCX`、`PPM`、`TIFF`、`XBM`、`HEIF`、`JP2`
|
1030
|
-
|
1031
|
-
**支持的文件大小:**
|
1032
|
-
- `PDF` 最大300M
|
1033
|
-
- `DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
|
1034
|
-
- `TXT`、`MD` 最大10M
|
1035
|
-
- 其他 最大20M
|
1036
|
-
|
1035
|
+
"""文件类型。**支持的文件类型:**- `WPS、PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`、`BMP`、`GIF`、`WEBP`、`HEIC`、`EPS`、`ICNS`、`IM`、`PCX`、`PPM`、`TIFF`、`XBM`、`HEIF`、`JP2`**支持的文件大小:** - `PDF` 最大300M - `WPS`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M - `TXT`、`MD` 最大10M - 其他 最大20M
|
1037
1036
|
:rtype: str
|
1038
1037
|
"""
|
1039
1038
|
return self._FileType
|
@@ -1044,8 +1043,8 @@ class CreateReconstructDocumentFlowRequest(AbstractModel):
|
|
1044
1043
|
|
1045
1044
|
@property
|
1046
1045
|
def FileUrl(self):
|
1047
|
-
"""
|
1048
|
-
|
1046
|
+
"""说明:文件的 URL 地址。
|
1047
|
+
备注:文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
1049
1048
|
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
1050
1049
|
:rtype: str
|
1051
1050
|
"""
|
@@ -1072,8 +1071,9 @@ class CreateReconstructDocumentFlowRequest(AbstractModel):
|
|
1072
1071
|
|
1073
1072
|
@property
|
1074
1073
|
def FileStartPageNumber(self):
|
1075
|
-
"""
|
1076
|
-
|
1074
|
+
"""说明:文档的起始页码。
|
1075
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。
|
1076
|
+
默认值:无
|
1077
1077
|
:rtype: int
|
1078
1078
|
"""
|
1079
1079
|
return self._FileStartPageNumber
|
@@ -1084,8 +1084,9 @@ class CreateReconstructDocumentFlowRequest(AbstractModel):
|
|
1084
1084
|
|
1085
1085
|
@property
|
1086
1086
|
def FileEndPageNumber(self):
|
1087
|
-
"""
|
1088
|
-
|
1087
|
+
"""说明:文档的结束页码。
|
1088
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值。
|
1089
|
+
默认值:无
|
1089
1090
|
:rtype: int
|
1090
1091
|
"""
|
1091
1092
|
return self._FileEndPageNumber
|
@@ -1096,7 +1097,9 @@ class CreateReconstructDocumentFlowRequest(AbstractModel):
|
|
1096
1097
|
|
1097
1098
|
@property
|
1098
1099
|
def Config(self):
|
1099
|
-
"""
|
1100
|
+
"""说明:创建文档解析任务配置信息。
|
1101
|
+
备注:可设置结果的返回格式
|
1102
|
+
默认值:无
|
1100
1103
|
:rtype: :class:`tencentcloud.lkeap.v20240522.models.CreateReconstructDocumentFlowConfig`
|
1101
1104
|
"""
|
1102
1105
|
return self._Config
|
@@ -1194,11 +1197,14 @@ class CreateSplitDocumentFlowConfig(AbstractModel):
|
|
1194
1197
|
:type EnableMllm: bool
|
1195
1198
|
:param _MaxChunkSize: 最大分片长度
|
1196
1199
|
:type MaxChunkSize: int
|
1200
|
+
:param _IgnoreFailedPage: 是否忽略返回失败页码
|
1201
|
+
:type IgnoreFailedPage: bool
|
1197
1202
|
"""
|
1198
1203
|
self._TableResultType = None
|
1199
1204
|
self._ResultType = None
|
1200
1205
|
self._EnableMllm = None
|
1201
1206
|
self._MaxChunkSize = None
|
1207
|
+
self._IgnoreFailedPage = None
|
1202
1208
|
|
1203
1209
|
@property
|
1204
1210
|
def TableResultType(self):
|
@@ -1263,12 +1269,24 @@ class CreateSplitDocumentFlowConfig(AbstractModel):
|
|
1263
1269
|
def MaxChunkSize(self, MaxChunkSize):
|
1264
1270
|
self._MaxChunkSize = MaxChunkSize
|
1265
1271
|
|
1272
|
+
@property
|
1273
|
+
def IgnoreFailedPage(self):
|
1274
|
+
"""是否忽略返回失败页码
|
1275
|
+
:rtype: bool
|
1276
|
+
"""
|
1277
|
+
return self._IgnoreFailedPage
|
1278
|
+
|
1279
|
+
@IgnoreFailedPage.setter
|
1280
|
+
def IgnoreFailedPage(self, IgnoreFailedPage):
|
1281
|
+
self._IgnoreFailedPage = IgnoreFailedPage
|
1282
|
+
|
1266
1283
|
|
1267
1284
|
def _deserialize(self, params):
|
1268
1285
|
self._TableResultType = params.get("TableResultType")
|
1269
1286
|
self._ResultType = params.get("ResultType")
|
1270
1287
|
self._EnableMllm = params.get("EnableMllm")
|
1271
1288
|
self._MaxChunkSize = params.get("MaxChunkSize")
|
1289
|
+
self._IgnoreFailedPage = params.get("IgnoreFailedPage")
|
1272
1290
|
memeber_set = set(params.keys())
|
1273
1291
|
for name, value in vars(self).items():
|
1274
1292
|
property_name = name[1:]
|
@@ -1286,17 +1304,7 @@ class CreateSplitDocumentFlowRequest(AbstractModel):
|
|
1286
1304
|
|
1287
1305
|
def __init__(self):
|
1288
1306
|
r"""
|
1289
|
-
:param _FileType:
|
1290
|
-
|
1291
|
-
**支持的文件类型:**
|
1292
|
-
- `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`
|
1293
|
-
|
1294
|
-
**支持的文件大小:**
|
1295
|
-
- `PDF` 最大300M
|
1296
|
-
- `DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
|
1297
|
-
- `TXT`、`MD` 最大10M
|
1298
|
-
- 其他 最大20M
|
1299
|
-
|
1307
|
+
:param _FileType: 文件类型。**支持的文件类型:**- `WPS`、`PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`**支持的文件大小:** - `PDF` 最大300M - `WPS`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M - `TXT`、`MD` 最大10M - 其他 最大20M
|
1300
1308
|
:type FileType: str
|
1301
1309
|
:param _FileUrl: 文件的 URL 地址。
|
1302
1310
|
文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
@@ -1330,17 +1338,7 @@ class CreateSplitDocumentFlowRequest(AbstractModel):
|
|
1330
1338
|
|
1331
1339
|
@property
|
1332
1340
|
def FileType(self):
|
1333
|
-
"""
|
1334
|
-
|
1335
|
-
**支持的文件类型:**
|
1336
|
-
- `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`
|
1337
|
-
|
1338
|
-
**支持的文件大小:**
|
1339
|
-
- `PDF` 最大300M
|
1340
|
-
- `DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
|
1341
|
-
- `TXT`、`MD` 最大10M
|
1342
|
-
- 其他 最大20M
|
1343
|
-
|
1341
|
+
"""文件类型。**支持的文件类型:**- `WPS`、`PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`**支持的文件大小:** - `PDF` 最大300M - `WPS`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M - `TXT`、`MD` 最大10M - 其他 最大20M
|
1344
1342
|
:rtype: str
|
1345
1343
|
"""
|
1346
1344
|
return self._FileType
|
@@ -2182,12 +2180,18 @@ class DocumentUsage(AbstractModel):
|
|
2182
2180
|
:type SplitTokens: int
|
2183
2181
|
:param _MllmTokens: mllm消耗的token数
|
2184
2182
|
:type MllmTokens: int
|
2183
|
+
:param _SuccessPageNum: 解析成功页数
|
2184
|
+
:type SuccessPageNum: int
|
2185
|
+
:param _FailPageNum: 解析失败页数
|
2186
|
+
:type FailPageNum: int
|
2185
2187
|
"""
|
2186
2188
|
self._PageNumber = None
|
2187
2189
|
self._TotalToken = None
|
2188
2190
|
self._TotalTokens = None
|
2189
2191
|
self._SplitTokens = None
|
2190
2192
|
self._MllmTokens = None
|
2193
|
+
self._SuccessPageNum = None
|
2194
|
+
self._FailPageNum = None
|
2191
2195
|
|
2192
2196
|
@property
|
2193
2197
|
def PageNumber(self):
|
@@ -2248,6 +2252,28 @@ class DocumentUsage(AbstractModel):
|
|
2248
2252
|
def MllmTokens(self, MllmTokens):
|
2249
2253
|
self._MllmTokens = MllmTokens
|
2250
2254
|
|
2255
|
+
@property
|
2256
|
+
def SuccessPageNum(self):
|
2257
|
+
"""解析成功页数
|
2258
|
+
:rtype: int
|
2259
|
+
"""
|
2260
|
+
return self._SuccessPageNum
|
2261
|
+
|
2262
|
+
@SuccessPageNum.setter
|
2263
|
+
def SuccessPageNum(self, SuccessPageNum):
|
2264
|
+
self._SuccessPageNum = SuccessPageNum
|
2265
|
+
|
2266
|
+
@property
|
2267
|
+
def FailPageNum(self):
|
2268
|
+
"""解析失败页数
|
2269
|
+
:rtype: int
|
2270
|
+
"""
|
2271
|
+
return self._FailPageNum
|
2272
|
+
|
2273
|
+
@FailPageNum.setter
|
2274
|
+
def FailPageNum(self, FailPageNum):
|
2275
|
+
self._FailPageNum = FailPageNum
|
2276
|
+
|
2251
2277
|
|
2252
2278
|
def _deserialize(self, params):
|
2253
2279
|
self._PageNumber = params.get("PageNumber")
|
@@ -2255,6 +2281,8 @@ class DocumentUsage(AbstractModel):
|
|
2255
2281
|
self._TotalTokens = params.get("TotalTokens")
|
2256
2282
|
self._SplitTokens = params.get("SplitTokens")
|
2257
2283
|
self._MllmTokens = params.get("MllmTokens")
|
2284
|
+
self._SuccessPageNum = params.get("SuccessPageNum")
|
2285
|
+
self._FailPageNum = params.get("FailPageNum")
|
2258
2286
|
memeber_set = set(params.keys())
|
2259
2287
|
for name, value in vars(self).items():
|
2260
2288
|
property_name = name[1:]
|
@@ -2492,14 +2520,16 @@ class GetReconstructDocumentResultRequest(AbstractModel):
|
|
2492
2520
|
|
2493
2521
|
def __init__(self):
|
2494
2522
|
r"""
|
2495
|
-
:param _TaskId:
|
2523
|
+
:param _TaskId: 说明:解析任务ID
|
2524
|
+
备注:仅支持单个任务ID
|
2496
2525
|
:type TaskId: str
|
2497
2526
|
"""
|
2498
2527
|
self._TaskId = None
|
2499
2528
|
|
2500
2529
|
@property
|
2501
2530
|
def TaskId(self):
|
2502
|
-
"""
|
2531
|
+
"""说明:解析任务ID
|
2532
|
+
备注:仅支持单个任务ID
|
2503
2533
|
:rtype: str
|
2504
2534
|
"""
|
2505
2535
|
return self._TaskId
|
@@ -2539,12 +2569,15 @@ class GetReconstructDocumentResultResponse(AbstractModel):
|
|
2539
2569
|
:type DocumentRecognizeResultUrl: str
|
2540
2570
|
:param _FailedPages: 文档解析失败的页码
|
2541
2571
|
:type FailedPages: list of ReconstructDocumentFailedPage
|
2572
|
+
:param _Usage: 文档拆分任务的用量
|
2573
|
+
:type Usage: :class:`tencentcloud.lkeap.v20240522.models.DocumentUsage`
|
2542
2574
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2543
2575
|
:type RequestId: str
|
2544
2576
|
"""
|
2545
2577
|
self._Status = None
|
2546
2578
|
self._DocumentRecognizeResultUrl = None
|
2547
2579
|
self._FailedPages = None
|
2580
|
+
self._Usage = None
|
2548
2581
|
self._RequestId = None
|
2549
2582
|
|
2550
2583
|
@property
|
@@ -2585,6 +2618,17 @@ class GetReconstructDocumentResultResponse(AbstractModel):
|
|
2585
2618
|
def FailedPages(self, FailedPages):
|
2586
2619
|
self._FailedPages = FailedPages
|
2587
2620
|
|
2621
|
+
@property
|
2622
|
+
def Usage(self):
|
2623
|
+
"""文档拆分任务的用量
|
2624
|
+
:rtype: :class:`tencentcloud.lkeap.v20240522.models.DocumentUsage`
|
2625
|
+
"""
|
2626
|
+
return self._Usage
|
2627
|
+
|
2628
|
+
@Usage.setter
|
2629
|
+
def Usage(self, Usage):
|
2630
|
+
self._Usage = Usage
|
2631
|
+
|
2588
2632
|
@property
|
2589
2633
|
def RequestId(self):
|
2590
2634
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -2606,6 +2650,9 @@ class GetReconstructDocumentResultResponse(AbstractModel):
|
|
2606
2650
|
obj = ReconstructDocumentFailedPage()
|
2607
2651
|
obj._deserialize(item)
|
2608
2652
|
self._FailedPages.append(obj)
|
2653
|
+
if params.get("Usage") is not None:
|
2654
|
+
self._Usage = DocumentUsage()
|
2655
|
+
self._Usage._deserialize(params.get("Usage"))
|
2609
2656
|
self._RequestId = params.get("RequestId")
|
2610
2657
|
|
2611
2658
|
|
@@ -3974,11 +4021,14 @@ class ReconstructDocumentSSEConfig(AbstractModel):
|
|
3974
4021
|
:type ReturnPageFormat: bool
|
3975
4022
|
:param _PageFormat: 自定义输出页码样式,{{p}}为页码占位符,开启ReturnPageFormat生效。未填默认样式:<page_num>page {{p}}</page_num>
|
3976
4023
|
:type PageFormat: str
|
4024
|
+
:param _IgnoreFailedPage: 是否忽略失败页,返回已成功的页数据
|
4025
|
+
:type IgnoreFailedPage: bool
|
3977
4026
|
"""
|
3978
4027
|
self._TableResultType = None
|
3979
4028
|
self._MarkdownImageResponseType = None
|
3980
4029
|
self._ReturnPageFormat = None
|
3981
4030
|
self._PageFormat = None
|
4031
|
+
self._IgnoreFailedPage = None
|
3982
4032
|
|
3983
4033
|
@property
|
3984
4034
|
def TableResultType(self):
|
@@ -4030,12 +4080,24 @@ class ReconstructDocumentSSEConfig(AbstractModel):
|
|
4030
4080
|
def PageFormat(self, PageFormat):
|
4031
4081
|
self._PageFormat = PageFormat
|
4032
4082
|
|
4083
|
+
@property
|
4084
|
+
def IgnoreFailedPage(self):
|
4085
|
+
"""是否忽略失败页,返回已成功的页数据
|
4086
|
+
:rtype: bool
|
4087
|
+
"""
|
4088
|
+
return self._IgnoreFailedPage
|
4089
|
+
|
4090
|
+
@IgnoreFailedPage.setter
|
4091
|
+
def IgnoreFailedPage(self, IgnoreFailedPage):
|
4092
|
+
self._IgnoreFailedPage = IgnoreFailedPage
|
4093
|
+
|
4033
4094
|
|
4034
4095
|
def _deserialize(self, params):
|
4035
4096
|
self._TableResultType = params.get("TableResultType")
|
4036
4097
|
self._MarkdownImageResponseType = params.get("MarkdownImageResponseType")
|
4037
4098
|
self._ReturnPageFormat = params.get("ReturnPageFormat")
|
4038
4099
|
self._PageFormat = params.get("PageFormat")
|
4100
|
+
self._IgnoreFailedPage = params.get("IgnoreFailedPage")
|
4039
4101
|
memeber_set = set(params.keys())
|
4040
4102
|
for name, value in vars(self).items():
|
4041
4103
|
property_name = name[1:]
|
@@ -4053,30 +4115,31 @@ class ReconstructDocumentSSERequest(AbstractModel):
|
|
4053
4115
|
|
4054
4116
|
def __init__(self):
|
4055
4117
|
r"""
|
4056
|
-
:param _FileType:
|
4057
|
-
**支持的文件类型**:PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、IM、PCX、PPM、TIFF、XBM、HEIF、JP2
|
4058
|
-
**支持的文件大小**:
|
4059
|
-
- PDF、DOC、DOCX、PPT、PPTX 支持100M
|
4060
|
-
- MD、TXT、XLS、XLSX、CSV 支持10M
|
4061
|
-
- 其他支持20M
|
4062
|
-
|
4118
|
+
:param _FileType: 支持解析的文件类型。**支持的文件类型**:WPS、PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、IM、PCX、PPM、TIFF、XBM、HEIF、JP2**支持的文件大小**:- WPS、PDF、DOC、DOCX、PPT、PPTX 支持100M- MD、TXT、XLS、XLSX、CSV 支持10M- 其他支持20M
|
4063
4119
|
:type FileType: str
|
4064
|
-
:param _FileUrl: 文件的 URL
|
4065
|
-
文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
4120
|
+
:param _FileUrl: 文件的 URL 地址。文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
4066
4121
|
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
4122
|
+
|
4123
|
+
默认值:无
|
4067
4124
|
:type FileUrl: str
|
4068
|
-
:param _FileBase64:
|
4069
|
-
|
4070
|
-
支持的图片像素:单边介于20-10000px
|
4071
|
-
|
4125
|
+
:param _FileBase64: 说明:文件的 Base64 值。
|
4126
|
+
备注:支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。
|
4127
|
+
支持的图片像素:单边介于20-10000px之间。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
4128
|
+
|
4129
|
+
默认值:无
|
4072
4130
|
:type FileBase64: str
|
4073
|
-
:param _FileStartPageNumber:
|
4074
|
-
|
4131
|
+
:param _FileStartPageNumber: 说明:文档的起始页码。
|
4132
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。
|
4133
|
+
默认值:无
|
4075
4134
|
:type FileStartPageNumber: int
|
4076
|
-
:param _FileEndPageNumber:
|
4077
|
-
|
4135
|
+
:param _FileEndPageNumber: 说明:文档的结束页码。
|
4136
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值。
|
4137
|
+
默认值:无
|
4078
4138
|
:type FileEndPageNumber: int
|
4079
|
-
:param _Config:
|
4139
|
+
:param _Config: 说明:文档解析配置信息
|
4140
|
+
备注:可设置返回markdown结果的格式
|
4141
|
+
默认值:无
|
4142
|
+
|
4080
4143
|
:type Config: :class:`tencentcloud.lkeap.v20240522.models.ReconstructDocumentSSEConfig`
|
4081
4144
|
"""
|
4082
4145
|
self._FileType = None
|
@@ -4088,13 +4151,7 @@ class ReconstructDocumentSSERequest(AbstractModel):
|
|
4088
4151
|
|
4089
4152
|
@property
|
4090
4153
|
def FileType(self):
|
4091
|
-
"""
|
4092
|
-
**支持的文件类型**:PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、IM、PCX、PPM、TIFF、XBM、HEIF、JP2
|
4093
|
-
**支持的文件大小**:
|
4094
|
-
- PDF、DOC、DOCX、PPT、PPTX 支持100M
|
4095
|
-
- MD、TXT、XLS、XLSX、CSV 支持10M
|
4096
|
-
- 其他支持20M
|
4097
|
-
|
4154
|
+
"""支持解析的文件类型。**支持的文件类型**:WPS、PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、IM、PCX、PPM、TIFF、XBM、HEIF、JP2**支持的文件大小**:- WPS、PDF、DOC、DOCX、PPT、PPTX 支持100M- MD、TXT、XLS、XLSX、CSV 支持10M- 其他支持20M
|
4098
4155
|
:rtype: str
|
4099
4156
|
"""
|
4100
4157
|
return self._FileType
|
@@ -4105,9 +4162,10 @@ class ReconstructDocumentSSERequest(AbstractModel):
|
|
4105
4162
|
|
4106
4163
|
@property
|
4107
4164
|
def FileUrl(self):
|
4108
|
-
"""文件的 URL
|
4109
|
-
文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
4165
|
+
"""文件的 URL 地址。文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
4110
4166
|
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
4167
|
+
|
4168
|
+
默认值:无
|
4111
4169
|
:rtype: str
|
4112
4170
|
"""
|
4113
4171
|
return self._FileUrl
|
@@ -4118,10 +4176,11 @@ class ReconstructDocumentSSERequest(AbstractModel):
|
|
4118
4176
|
|
4119
4177
|
@property
|
4120
4178
|
def FileBase64(self):
|
4121
|
-
"""
|
4122
|
-
|
4123
|
-
支持的图片像素:单边介于20-10000px
|
4124
|
-
|
4179
|
+
"""说明:文件的 Base64 值。
|
4180
|
+
备注:支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。
|
4181
|
+
支持的图片像素:单边介于20-10000px之间。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
4182
|
+
|
4183
|
+
默认值:无
|
4125
4184
|
:rtype: str
|
4126
4185
|
"""
|
4127
4186
|
return self._FileBase64
|
@@ -4132,8 +4191,9 @@ class ReconstructDocumentSSERequest(AbstractModel):
|
|
4132
4191
|
|
4133
4192
|
@property
|
4134
4193
|
def FileStartPageNumber(self):
|
4135
|
-
"""
|
4136
|
-
|
4194
|
+
"""说明:文档的起始页码。
|
4195
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。
|
4196
|
+
默认值:无
|
4137
4197
|
:rtype: int
|
4138
4198
|
"""
|
4139
4199
|
return self._FileStartPageNumber
|
@@ -4144,8 +4204,9 @@ class ReconstructDocumentSSERequest(AbstractModel):
|
|
4144
4204
|
|
4145
4205
|
@property
|
4146
4206
|
def FileEndPageNumber(self):
|
4147
|
-
"""
|
4148
|
-
|
4207
|
+
"""说明:文档的结束页码。
|
4208
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值。
|
4209
|
+
默认值:无
|
4149
4210
|
:rtype: int
|
4150
4211
|
"""
|
4151
4212
|
return self._FileEndPageNumber
|
@@ -4156,7 +4217,10 @@ class ReconstructDocumentSSERequest(AbstractModel):
|
|
4156
4217
|
|
4157
4218
|
@property
|
4158
4219
|
def Config(self):
|
4159
|
-
"""
|
4220
|
+
"""说明:文档解析配置信息
|
4221
|
+
备注:可设置返回markdown结果的格式
|
4222
|
+
默认值:无
|
4223
|
+
|
4160
4224
|
:rtype: :class:`tencentcloud.lkeap.v20240522.models.ReconstructDocumentSSEConfig`
|
4161
4225
|
"""
|
4162
4226
|
return self._Config
|
@@ -4194,19 +4258,21 @@ class ReconstructDocumentSSEResponse(AbstractModel):
|
|
4194
4258
|
r"""
|
4195
4259
|
:param _TaskId: 任务ID。本次请求的唯一标识
|
4196
4260
|
:type TaskId: str
|
4197
|
-
:param _ResponseType: 响应类型。1:返回进度信息,2:返回解析结果
|
4261
|
+
:param _ResponseType: 响应类型。1:返回进度信息, 2:返回解析结果
|
4198
4262
|
:type ResponseType: str
|
4199
4263
|
:param _Progress: 进度。0~100
|
4200
4264
|
:type Progress: str
|
4201
4265
|
:param _ProgressMessage: 进度信息。
|
4202
4266
|
:type ProgressMessage: str
|
4203
|
-
:param _DocumentRecognizeResultUrl:
|
4204
|
-
文件类型为zip压缩包,下载链接有效期30分钟。
|
4205
|
-
压缩包内包含*.md、*.json以及images文件夹。
|
4267
|
+
:param _DocumentRecognizeResultUrl: 文档解析结果的临时下载地址。文件类型为zip压缩包,下载链接有效期30分钟。压缩包内包含*.md、*.json以及images文件夹。
|
4206
4268
|
|
4207
4269
|
:type DocumentRecognizeResultUrl: str
|
4208
4270
|
:param _FailedPages: 文档解析失败的页码。
|
4209
4271
|
:type FailedPages: list of ReconstructDocumentFailedPage
|
4272
|
+
:param _FailPageNum: 文档解析失败页数
|
4273
|
+
:type FailPageNum: int
|
4274
|
+
:param _SuccessPageNum: 文档解析成功页数
|
4275
|
+
:type SuccessPageNum: int
|
4210
4276
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
4211
4277
|
:type RequestId: str
|
4212
4278
|
"""
|
@@ -4216,6 +4282,8 @@ class ReconstructDocumentSSEResponse(AbstractModel):
|
|
4216
4282
|
self._ProgressMessage = None
|
4217
4283
|
self._DocumentRecognizeResultUrl = None
|
4218
4284
|
self._FailedPages = None
|
4285
|
+
self._FailPageNum = None
|
4286
|
+
self._SuccessPageNum = None
|
4219
4287
|
self._RequestId = None
|
4220
4288
|
|
4221
4289
|
@property
|
@@ -4231,7 +4299,7 @@ class ReconstructDocumentSSEResponse(AbstractModel):
|
|
4231
4299
|
|
4232
4300
|
@property
|
4233
4301
|
def ResponseType(self):
|
4234
|
-
"""响应类型。1:返回进度信息,2:返回解析结果
|
4302
|
+
"""响应类型。1:返回进度信息, 2:返回解析结果
|
4235
4303
|
:rtype: str
|
4236
4304
|
"""
|
4237
4305
|
return self._ResponseType
|
@@ -4264,9 +4332,7 @@ class ReconstructDocumentSSEResponse(AbstractModel):
|
|
4264
4332
|
|
4265
4333
|
@property
|
4266
4334
|
def DocumentRecognizeResultUrl(self):
|
4267
|
-
"""
|
4268
|
-
文件类型为zip压缩包,下载链接有效期30分钟。
|
4269
|
-
压缩包内包含*.md、*.json以及images文件夹。
|
4335
|
+
"""文档解析结果的临时下载地址。文件类型为zip压缩包,下载链接有效期30分钟。压缩包内包含*.md、*.json以及images文件夹。
|
4270
4336
|
|
4271
4337
|
:rtype: str
|
4272
4338
|
"""
|
@@ -4287,6 +4353,28 @@ class ReconstructDocumentSSEResponse(AbstractModel):
|
|
4287
4353
|
def FailedPages(self, FailedPages):
|
4288
4354
|
self._FailedPages = FailedPages
|
4289
4355
|
|
4356
|
+
@property
|
4357
|
+
def FailPageNum(self):
|
4358
|
+
"""文档解析失败页数
|
4359
|
+
:rtype: int
|
4360
|
+
"""
|
4361
|
+
return self._FailPageNum
|
4362
|
+
|
4363
|
+
@FailPageNum.setter
|
4364
|
+
def FailPageNum(self, FailPageNum):
|
4365
|
+
self._FailPageNum = FailPageNum
|
4366
|
+
|
4367
|
+
@property
|
4368
|
+
def SuccessPageNum(self):
|
4369
|
+
"""文档解析成功页数
|
4370
|
+
:rtype: int
|
4371
|
+
"""
|
4372
|
+
return self._SuccessPageNum
|
4373
|
+
|
4374
|
+
@SuccessPageNum.setter
|
4375
|
+
def SuccessPageNum(self, SuccessPageNum):
|
4376
|
+
self._SuccessPageNum = SuccessPageNum
|
4377
|
+
|
4290
4378
|
@property
|
4291
4379
|
def RequestId(self):
|
4292
4380
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
@@ -4311,6 +4399,8 @@ class ReconstructDocumentSSEResponse(AbstractModel):
|
|
4311
4399
|
obj = ReconstructDocumentFailedPage()
|
4312
4400
|
obj._deserialize(item)
|
4313
4401
|
self._FailedPages.append(obj)
|
4402
|
+
self._FailPageNum = params.get("FailPageNum")
|
4403
|
+
self._SuccessPageNum = params.get("SuccessPageNum")
|
4314
4404
|
self._RequestId = params.get("RequestId")
|
4315
4405
|
|
4316
4406
|
|