tencentcloud-sdk-python 3.0.1422__py2.py3-none-any.whl → 3.0.1423__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/cdn/v20180606/models.py +2 -2
- tencentcloud/cdwch/v20200915/models.py +2 -2
- tencentcloud/cme/v20191029/errorcodes.py +3 -0
- tencentcloud/ctem/v20231128/ctem_client.py +69 -0
- tencentcloud/ctem/v20231128/models.py +1011 -0
- tencentcloud/gme/v20180711/models.py +75 -0
- tencentcloud/kms/v20190118/models.py +296 -0
- tencentcloud/lke/v20231130/errorcodes.py +0 -33
- tencentcloud/lke/v20231130/lke_client.py +0 -191
- tencentcloud/lke/v20231130/models.py +216 -2159
- tencentcloud/monitor/v20230616/errorcodes.py +2 -11
- tencentcloud/monitor/v20230616/models.py +104 -369
- tencentcloud/monitor/v20230616/monitor_client.py +7 -13
- tencentcloud/redis/v20180412/models.py +42 -6
- tencentcloud/scf/v20180416/errorcodes.py +24 -0
- tencentcloud/ssl/v20191205/models.py +47 -2
- tencentcloud/tke/v20180525/models.py +4 -4
- tencentcloud/tse/v20201207/models.py +347 -0
- tencentcloud/tse/v20201207/tse_client.py +23 -0
- {tencentcloud_sdk_python-3.0.1422.dist-info → tencentcloud_sdk_python-3.0.1423.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1422.dist-info → tencentcloud_sdk_python-3.0.1423.dist-info}/RECORD +25 -25
- {tencentcloud_sdk_python-3.0.1422.dist-info → tencentcloud_sdk_python-3.0.1423.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1422.dist-info → tencentcloud_sdk_python-3.0.1423.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1422.dist-info → tencentcloud_sdk_python-3.0.1423.dist-info}/top_level.txt +0 -0
@@ -72,31 +72,6 @@ class LkeClient(AbstractClient):
|
|
72
72
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
73
73
|
|
74
74
|
|
75
|
-
def ConvertDocument(self, request):
|
76
|
-
"""产品规划
|
77
|
-
|
78
|
-
接口支持图片和PDF转可编辑word格式文件,将文件中的图片、文本、表格等元素识别,并根据位置进行还原。
|
79
|
-
|
80
|
-
:param request: Request instance for ConvertDocument.
|
81
|
-
:type request: :class:`tencentcloud.lke.v20231130.models.ConvertDocumentRequest`
|
82
|
-
:rtype: :class:`tencentcloud.lke.v20231130.models.ConvertDocumentResponse`
|
83
|
-
|
84
|
-
"""
|
85
|
-
try:
|
86
|
-
params = request._serialize()
|
87
|
-
headers = request.headers
|
88
|
-
body = self.call("ConvertDocument", params, headers=headers)
|
89
|
-
response = json.loads(body)
|
90
|
-
model = models.ConvertDocumentResponse()
|
91
|
-
model._deserialize(response["Response"])
|
92
|
-
return model
|
93
|
-
except Exception as e:
|
94
|
-
if isinstance(e, TencentCloudSDKException):
|
95
|
-
raise
|
96
|
-
else:
|
97
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
98
|
-
|
99
|
-
|
100
75
|
def CreateAgent(self, request):
|
101
76
|
"""你创建一个Agent
|
102
77
|
|
@@ -166,29 +141,6 @@ class LkeClient(AbstractClient):
|
|
166
141
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
167
142
|
|
168
143
|
|
169
|
-
def CreateCorp(self, request):
|
170
|
-
"""创建企业
|
171
|
-
|
172
|
-
:param request: Request instance for CreateCorp.
|
173
|
-
:type request: :class:`tencentcloud.lke.v20231130.models.CreateCorpRequest`
|
174
|
-
:rtype: :class:`tencentcloud.lke.v20231130.models.CreateCorpResponse`
|
175
|
-
|
176
|
-
"""
|
177
|
-
try:
|
178
|
-
params = request._serialize()
|
179
|
-
headers = request.headers
|
180
|
-
body = self.call("CreateCorp", params, headers=headers)
|
181
|
-
response = json.loads(body)
|
182
|
-
model = models.CreateCorpResponse()
|
183
|
-
model._deserialize(response["Response"])
|
184
|
-
return model
|
185
|
-
except Exception as e:
|
186
|
-
if isinstance(e, TencentCloudSDKException):
|
187
|
-
raise
|
188
|
-
else:
|
189
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
190
|
-
|
191
|
-
|
192
144
|
def CreateDocCate(self, request):
|
193
145
|
"""创建Doc分类
|
194
146
|
|
@@ -742,29 +694,6 @@ class LkeClient(AbstractClient):
|
|
742
694
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
743
695
|
|
744
696
|
|
745
|
-
def DescribeCorp(self, request):
|
746
|
-
"""企业详情
|
747
|
-
|
748
|
-
:param request: Request instance for DescribeCorp.
|
749
|
-
:type request: :class:`tencentcloud.lke.v20231130.models.DescribeCorpRequest`
|
750
|
-
:rtype: :class:`tencentcloud.lke.v20231130.models.DescribeCorpResponse`
|
751
|
-
|
752
|
-
"""
|
753
|
-
try:
|
754
|
-
params = request._serialize()
|
755
|
-
headers = request.headers
|
756
|
-
body = self.call("DescribeCorp", params, headers=headers)
|
757
|
-
response = json.loads(body)
|
758
|
-
model = models.DescribeCorpResponse()
|
759
|
-
model._deserialize(response["Response"])
|
760
|
-
return model
|
761
|
-
except Exception as e:
|
762
|
-
if isinstance(e, TencentCloudSDKException):
|
763
|
-
raise
|
764
|
-
else:
|
765
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
766
|
-
|
767
|
-
|
768
697
|
def DescribeDoc(self, request):
|
769
698
|
"""文档详情
|
770
699
|
|
@@ -1340,31 +1269,6 @@ class LkeClient(AbstractClient):
|
|
1340
1269
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1341
1270
|
|
1342
1271
|
|
1343
|
-
def GetEmbedding(self, request):
|
1344
|
-
"""本接口(GetEmbedding)调用文本表示模型,将文本转化为用数值表示的向量形式,可用于文本检索、信息推荐、知识挖掘等场景。
|
1345
|
-
开通[产品体验](https://lke.cloud.tencent.com/lke/#/trialProduct)后可获得50wtoken体验额度。
|
1346
|
-
本接口(GetEmbedding)有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
1347
|
-
|
1348
|
-
:param request: Request instance for GetEmbedding.
|
1349
|
-
:type request: :class:`tencentcloud.lke.v20231130.models.GetEmbeddingRequest`
|
1350
|
-
:rtype: :class:`tencentcloud.lke.v20231130.models.GetEmbeddingResponse`
|
1351
|
-
|
1352
|
-
"""
|
1353
|
-
try:
|
1354
|
-
params = request._serialize()
|
1355
|
-
headers = request.headers
|
1356
|
-
body = self.call("GetEmbedding", params, headers=headers)
|
1357
|
-
response = json.loads(body)
|
1358
|
-
model = models.GetEmbeddingResponse()
|
1359
|
-
model._deserialize(response["Response"])
|
1360
|
-
return model
|
1361
|
-
except Exception as e:
|
1362
|
-
if isinstance(e, TencentCloudSDKException):
|
1363
|
-
raise
|
1364
|
-
else:
|
1365
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1366
|
-
|
1367
|
-
|
1368
1272
|
def GetLikeDataCount(self, request):
|
1369
1273
|
"""点赞点踩数据统计
|
1370
1274
|
|
@@ -1412,29 +1316,6 @@ class LkeClient(AbstractClient):
|
|
1412
1316
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1413
1317
|
|
1414
1318
|
|
1415
|
-
def GetReconstructDocumentResult(self, request):
|
1416
|
-
"""本接口为异步接口的查询结果接口,用于获取文档解析处理结果。
|
1417
|
-
|
1418
|
-
:param request: Request instance for GetReconstructDocumentResult.
|
1419
|
-
:type request: :class:`tencentcloud.lke.v20231130.models.GetReconstructDocumentResultRequest`
|
1420
|
-
:rtype: :class:`tencentcloud.lke.v20231130.models.GetReconstructDocumentResultResponse`
|
1421
|
-
|
1422
|
-
"""
|
1423
|
-
try:
|
1424
|
-
params = request._serialize()
|
1425
|
-
headers = request.headers
|
1426
|
-
body = self.call("GetReconstructDocumentResult", params, headers=headers)
|
1427
|
-
response = json.loads(body)
|
1428
|
-
model = models.GetReconstructDocumentResultResponse()
|
1429
|
-
model._deserialize(response["Response"])
|
1430
|
-
return model
|
1431
|
-
except Exception as e:
|
1432
|
-
if isinstance(e, TencentCloudSDKException):
|
1433
|
-
raise
|
1434
|
-
else:
|
1435
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1436
|
-
|
1437
|
-
|
1438
1319
|
def GetTaskStatus(self, request):
|
1439
1320
|
"""获取任务状态
|
1440
1321
|
|
@@ -2309,30 +2190,6 @@ class LkeClient(AbstractClient):
|
|
2309
2190
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2310
2191
|
|
2311
2192
|
|
2312
|
-
def QueryRewrite(self, request):
|
2313
|
-
"""多轮改写(QueryRewrite)主要用于多轮对话中,进行指代消解和省略补全。使用本接口,无需输入prompt描述,根据对话历史即可生成更精确的用户查询。在应用场景上,本接口可应用于智能问答、对话式搜索等多种场景。
|
2314
|
-
开通[产品体验](https://lke.cloud.tencent.com/lke/#/trialProduct)后可获得50wtoken体验额度。本接口(QueryRewrite)有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
2315
|
-
|
2316
|
-
:param request: Request instance for QueryRewrite.
|
2317
|
-
:type request: :class:`tencentcloud.lke.v20231130.models.QueryRewriteRequest`
|
2318
|
-
:rtype: :class:`tencentcloud.lke.v20231130.models.QueryRewriteResponse`
|
2319
|
-
|
2320
|
-
"""
|
2321
|
-
try:
|
2322
|
-
params = request._serialize()
|
2323
|
-
headers = request.headers
|
2324
|
-
body = self.call("QueryRewrite", params, headers=headers)
|
2325
|
-
response = json.loads(body)
|
2326
|
-
model = models.QueryRewriteResponse()
|
2327
|
-
model._deserialize(response["Response"])
|
2328
|
-
return model
|
2329
|
-
except Exception as e:
|
2330
|
-
if isinstance(e, TencentCloudSDKException):
|
2331
|
-
raise
|
2332
|
-
else:
|
2333
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2334
|
-
|
2335
|
-
|
2336
2193
|
def RateMsgRecord(self, request):
|
2337
2194
|
"""点赞点踩消息
|
2338
2195
|
|
@@ -2356,31 +2213,6 @@ class LkeClient(AbstractClient):
|
|
2356
2213
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2357
2214
|
|
2358
2215
|
|
2359
|
-
def ReconstructDocument(self, request):
|
2360
|
-
"""支持将图片或PDF文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。
|
2361
|
-
|
2362
|
-
体验期间单账号限制qps仅为1,若有正式接入需要请与产研团队沟通开放。
|
2363
|
-
|
2364
|
-
:param request: Request instance for ReconstructDocument.
|
2365
|
-
:type request: :class:`tencentcloud.lke.v20231130.models.ReconstructDocumentRequest`
|
2366
|
-
:rtype: :class:`tencentcloud.lke.v20231130.models.ReconstructDocumentResponse`
|
2367
|
-
|
2368
|
-
"""
|
2369
|
-
try:
|
2370
|
-
params = request._serialize()
|
2371
|
-
headers = request.headers
|
2372
|
-
body = self.call("ReconstructDocument", params, headers=headers)
|
2373
|
-
response = json.loads(body)
|
2374
|
-
model = models.ReconstructDocumentResponse()
|
2375
|
-
model._deserialize(response["Response"])
|
2376
|
-
return model
|
2377
|
-
except Exception as e:
|
2378
|
-
if isinstance(e, TencentCloudSDKException):
|
2379
|
-
raise
|
2380
|
-
else:
|
2381
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2382
|
-
|
2383
|
-
|
2384
2216
|
def ReferShareKnowledge(self, request):
|
2385
2217
|
"""应用引用共享知识库,可以引用一个或多个,每次都是全量覆盖
|
2386
2218
|
|
@@ -2496,29 +2328,6 @@ class LkeClient(AbstractClient):
|
|
2496
2328
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2497
2329
|
|
2498
2330
|
|
2499
|
-
def RunReRank(self, request):
|
2500
|
-
"""基于知识引擎精调模型技术的rerank模型,支持对多路召回的结果进行重排序,根据query与切片内容的相关性,按分数由高到低对切片进行排序,并输出对应的打分结果。(这个接口已下线,请使用新接口,接口文档:https://cloud.tencent.com/document/product/1772/115339)。
|
2501
|
-
|
2502
|
-
:param request: Request instance for RunReRank.
|
2503
|
-
:type request: :class:`tencentcloud.lke.v20231130.models.RunReRankRequest`
|
2504
|
-
:rtype: :class:`tencentcloud.lke.v20231130.models.RunReRankResponse`
|
2505
|
-
|
2506
|
-
"""
|
2507
|
-
try:
|
2508
|
-
params = request._serialize()
|
2509
|
-
headers = request.headers
|
2510
|
-
body = self.call("RunReRank", params, headers=headers)
|
2511
|
-
response = json.loads(body)
|
2512
|
-
model = models.RunReRankResponse()
|
2513
|
-
model._deserialize(response["Response"])
|
2514
|
-
return model
|
2515
|
-
except Exception as e:
|
2516
|
-
if isinstance(e, TencentCloudSDKException):
|
2517
|
-
raise
|
2518
|
-
else:
|
2519
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2520
|
-
|
2521
|
-
|
2522
2331
|
def SaveDoc(self, request):
|
2523
2332
|
"""知识库文档问答保存。
|
2524
2333
|
将文件存储到应用的知识库内需要三步:
|