tencentcloud-sdk-lke 3.0.1098 → 3.0.1101
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20231130/client.rb +0 -199
- data/lib/v20231130/models.rb +0 -797
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22ffd830d4b9abadf89c8747398cb1cd1e1b035d
|
4
|
+
data.tar.gz: ad7bd7ab8643869acab3c4071fb93232817dee9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7813fc1ef166353df1b1a351d62ff8407edceb0db84d7ad5afe2e8d1e560e0a75eb0a00bc53e3f93f3a4b21c3bc8fe85358eea78b71f7662e2fe73c2a93676c
|
7
|
+
data.tar.gz: 757cc432b8ff4129a8777ed6988369cef54847c845adbf242738724504cf9c5071d3af21a31bbf7f8fd3b2b42f14170fcf765abe5db3206d87d653ce9547e7b9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1101
|
data/lib/v20231130/client.rb
CHANGED
@@ -77,32 +77,6 @@ module TencentCloud
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
78
|
end
|
79
79
|
|
80
|
-
# 产品规划
|
81
|
-
|
82
|
-
# 接口支持图片和PDF转可编辑word格式文件,将文件中的图片、文本、表格等元素识别,并根据位置进行还原。
|
83
|
-
|
84
|
-
# @param request: Request instance for ConvertDocument.
|
85
|
-
# @type request: :class:`Tencentcloud::lke::V20231130::ConvertDocumentRequest`
|
86
|
-
# @rtype: :class:`Tencentcloud::lke::V20231130::ConvertDocumentResponse`
|
87
|
-
def ConvertDocument(request)
|
88
|
-
body = send_request('ConvertDocument', request.serialize)
|
89
|
-
response = JSON.parse(body)
|
90
|
-
if response['Response'].key?('Error') == false
|
91
|
-
model = ConvertDocumentResponse.new
|
92
|
-
model.deserialize(response['Response'])
|
93
|
-
model
|
94
|
-
else
|
95
|
-
code = response['Response']['Error']['Code']
|
96
|
-
message = response['Response']['Error']['Message']
|
97
|
-
reqid = response['Response']['RequestId']
|
98
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
99
|
-
end
|
100
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
101
|
-
raise e
|
102
|
-
rescue StandardError => e
|
103
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
104
|
-
end
|
105
|
-
|
106
80
|
# 你创建一个Agent
|
107
81
|
|
108
82
|
# @param request: Request instance for CreateAgent.
|
@@ -175,30 +149,6 @@ module TencentCloud
|
|
175
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
176
150
|
end
|
177
151
|
|
178
|
-
# 创建企业
|
179
|
-
|
180
|
-
# @param request: Request instance for CreateCorp.
|
181
|
-
# @type request: :class:`Tencentcloud::lke::V20231130::CreateCorpRequest`
|
182
|
-
# @rtype: :class:`Tencentcloud::lke::V20231130::CreateCorpResponse`
|
183
|
-
def CreateCorp(request)
|
184
|
-
body = send_request('CreateCorp', request.serialize)
|
185
|
-
response = JSON.parse(body)
|
186
|
-
if response['Response'].key?('Error') == false
|
187
|
-
model = CreateCorpResponse.new
|
188
|
-
model.deserialize(response['Response'])
|
189
|
-
model
|
190
|
-
else
|
191
|
-
code = response['Response']['Error']['Code']
|
192
|
-
message = response['Response']['Error']['Message']
|
193
|
-
reqid = response['Response']['RequestId']
|
194
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
195
|
-
end
|
196
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
197
|
-
raise e
|
198
|
-
rescue StandardError => e
|
199
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
200
|
-
end
|
201
|
-
|
202
152
|
# 创建Doc分类
|
203
153
|
|
204
154
|
# @param request: Request instance for CreateDocCate.
|
@@ -776,30 +726,6 @@ module TencentCloud
|
|
776
726
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
777
727
|
end
|
778
728
|
|
779
|
-
# 企业详情
|
780
|
-
|
781
|
-
# @param request: Request instance for DescribeCorp.
|
782
|
-
# @type request: :class:`Tencentcloud::lke::V20231130::DescribeCorpRequest`
|
783
|
-
# @rtype: :class:`Tencentcloud::lke::V20231130::DescribeCorpResponse`
|
784
|
-
def DescribeCorp(request)
|
785
|
-
body = send_request('DescribeCorp', request.serialize)
|
786
|
-
response = JSON.parse(body)
|
787
|
-
if response['Response'].key?('Error') == false
|
788
|
-
model = DescribeCorpResponse.new
|
789
|
-
model.deserialize(response['Response'])
|
790
|
-
model
|
791
|
-
else
|
792
|
-
code = response['Response']['Error']['Code']
|
793
|
-
message = response['Response']['Error']['Message']
|
794
|
-
reqid = response['Response']['RequestId']
|
795
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
796
|
-
end
|
797
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
798
|
-
raise e
|
799
|
-
rescue StandardError => e
|
800
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
801
|
-
end
|
802
|
-
|
803
729
|
# 文档详情
|
804
730
|
|
805
731
|
# @param request: Request instance for DescribeDoc.
|
@@ -1400,32 +1326,6 @@ module TencentCloud
|
|
1400
1326
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1401
1327
|
end
|
1402
1328
|
|
1403
|
-
# 本接口(GetEmbedding)调用文本表示模型,将文本转化为用数值表示的向量形式,可用于文本检索、信息推荐、知识挖掘等场景。
|
1404
|
-
# 开通[产品体验](https://lke.cloud.tencent.com/lke/#/trialProduct)后可获得50wtoken体验额度。
|
1405
|
-
# 本接口(GetEmbedding)有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
1406
|
-
|
1407
|
-
# @param request: Request instance for GetEmbedding.
|
1408
|
-
# @type request: :class:`Tencentcloud::lke::V20231130::GetEmbeddingRequest`
|
1409
|
-
# @rtype: :class:`Tencentcloud::lke::V20231130::GetEmbeddingResponse`
|
1410
|
-
def GetEmbedding(request)
|
1411
|
-
body = send_request('GetEmbedding', request.serialize)
|
1412
|
-
response = JSON.parse(body)
|
1413
|
-
if response['Response'].key?('Error') == false
|
1414
|
-
model = GetEmbeddingResponse.new
|
1415
|
-
model.deserialize(response['Response'])
|
1416
|
-
model
|
1417
|
-
else
|
1418
|
-
code = response['Response']['Error']['Code']
|
1419
|
-
message = response['Response']['Error']['Message']
|
1420
|
-
reqid = response['Response']['RequestId']
|
1421
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1422
|
-
end
|
1423
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1424
|
-
raise e
|
1425
|
-
rescue StandardError => e
|
1426
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1427
|
-
end
|
1428
|
-
|
1429
1329
|
# 点赞点踩数据统计
|
1430
1330
|
|
1431
1331
|
# @param request: Request instance for GetLikeDataCount.
|
@@ -1475,30 +1375,6 @@ module TencentCloud
|
|
1475
1375
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1476
1376
|
end
|
1477
1377
|
|
1478
|
-
# 本接口为异步接口的查询结果接口,用于获取文档解析处理结果。
|
1479
|
-
|
1480
|
-
# @param request: Request instance for GetReconstructDocumentResult.
|
1481
|
-
# @type request: :class:`Tencentcloud::lke::V20231130::GetReconstructDocumentResultRequest`
|
1482
|
-
# @rtype: :class:`Tencentcloud::lke::V20231130::GetReconstructDocumentResultResponse`
|
1483
|
-
def GetReconstructDocumentResult(request)
|
1484
|
-
body = send_request('GetReconstructDocumentResult', request.serialize)
|
1485
|
-
response = JSON.parse(body)
|
1486
|
-
if response['Response'].key?('Error') == false
|
1487
|
-
model = GetReconstructDocumentResultResponse.new
|
1488
|
-
model.deserialize(response['Response'])
|
1489
|
-
model
|
1490
|
-
else
|
1491
|
-
code = response['Response']['Error']['Code']
|
1492
|
-
message = response['Response']['Error']['Message']
|
1493
|
-
reqid = response['Response']['RequestId']
|
1494
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1495
|
-
end
|
1496
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1497
|
-
raise e
|
1498
|
-
rescue StandardError => e
|
1499
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1500
|
-
end
|
1501
|
-
|
1502
1378
|
# 获取任务状态
|
1503
1379
|
|
1504
1380
|
# @param request: Request instance for GetTaskStatus.
|
@@ -2411,31 +2287,6 @@ module TencentCloud
|
|
2411
2287
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2412
2288
|
end
|
2413
2289
|
|
2414
|
-
# 多轮改写(QueryRewrite)主要用于多轮对话中,进行指代消解和省略补全。使用本接口,无需输入prompt描述,根据对话历史即可生成更精确的用户查询。在应用场景上,本接口可应用于智能问答、对话式搜索等多种场景。
|
2415
|
-
# 开通[产品体验](https://lke.cloud.tencent.com/lke/#/trialProduct)后可获得50wtoken体验额度。本接口(QueryRewrite)有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
2416
|
-
|
2417
|
-
# @param request: Request instance for QueryRewrite.
|
2418
|
-
# @type request: :class:`Tencentcloud::lke::V20231130::QueryRewriteRequest`
|
2419
|
-
# @rtype: :class:`Tencentcloud::lke::V20231130::QueryRewriteResponse`
|
2420
|
-
def QueryRewrite(request)
|
2421
|
-
body = send_request('QueryRewrite', request.serialize)
|
2422
|
-
response = JSON.parse(body)
|
2423
|
-
if response['Response'].key?('Error') == false
|
2424
|
-
model = QueryRewriteResponse.new
|
2425
|
-
model.deserialize(response['Response'])
|
2426
|
-
model
|
2427
|
-
else
|
2428
|
-
code = response['Response']['Error']['Code']
|
2429
|
-
message = response['Response']['Error']['Message']
|
2430
|
-
reqid = response['Response']['RequestId']
|
2431
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2432
|
-
end
|
2433
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2434
|
-
raise e
|
2435
|
-
rescue StandardError => e
|
2436
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2437
|
-
end
|
2438
|
-
|
2439
2290
|
# 点赞点踩消息
|
2440
2291
|
|
2441
2292
|
# @param request: Request instance for RateMsgRecord.
|
@@ -2460,32 +2311,6 @@ module TencentCloud
|
|
2460
2311
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2461
2312
|
end
|
2462
2313
|
|
2463
|
-
# 支持将图片或PDF文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。
|
2464
|
-
|
2465
|
-
# 体验期间单账号限制qps仅为1,若有正式接入需要请与产研团队沟通开放。
|
2466
|
-
|
2467
|
-
# @param request: Request instance for ReconstructDocument.
|
2468
|
-
# @type request: :class:`Tencentcloud::lke::V20231130::ReconstructDocumentRequest`
|
2469
|
-
# @rtype: :class:`Tencentcloud::lke::V20231130::ReconstructDocumentResponse`
|
2470
|
-
def ReconstructDocument(request)
|
2471
|
-
body = send_request('ReconstructDocument', request.serialize)
|
2472
|
-
response = JSON.parse(body)
|
2473
|
-
if response['Response'].key?('Error') == false
|
2474
|
-
model = ReconstructDocumentResponse.new
|
2475
|
-
model.deserialize(response['Response'])
|
2476
|
-
model
|
2477
|
-
else
|
2478
|
-
code = response['Response']['Error']['Code']
|
2479
|
-
message = response['Response']['Error']['Message']
|
2480
|
-
reqid = response['Response']['RequestId']
|
2481
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2482
|
-
end
|
2483
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2484
|
-
raise e
|
2485
|
-
rescue StandardError => e
|
2486
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2487
|
-
end
|
2488
|
-
|
2489
2314
|
# 应用引用共享知识库,可以引用一个或多个,每次都是全量覆盖
|
2490
2315
|
|
2491
2316
|
# @param request: Request instance for ReferShareKnowledge.
|
@@ -2606,30 +2431,6 @@ module TencentCloud
|
|
2606
2431
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2607
2432
|
end
|
2608
2433
|
|
2609
|
-
# 基于知识引擎精调模型技术的rerank模型,支持对多路召回的结果进行重排序,根据query与切片内容的相关性,按分数由高到低对切片进行排序,并输出对应的打分结果。(这个接口已下线,请使用新接口,接口文档:https://cloud.tencent.com/document/product/1772/115339)。
|
2610
|
-
|
2611
|
-
# @param request: Request instance for RunReRank.
|
2612
|
-
# @type request: :class:`Tencentcloud::lke::V20231130::RunReRankRequest`
|
2613
|
-
# @rtype: :class:`Tencentcloud::lke::V20231130::RunReRankResponse`
|
2614
|
-
def RunReRank(request)
|
2615
|
-
body = send_request('RunReRank', request.serialize)
|
2616
|
-
response = JSON.parse(body)
|
2617
|
-
if response['Response'].key?('Error') == false
|
2618
|
-
model = RunReRankResponse.new
|
2619
|
-
model.deserialize(response['Response'])
|
2620
|
-
model
|
2621
|
-
else
|
2622
|
-
code = response['Response']['Error']['Code']
|
2623
|
-
message = response['Response']['Error']['Message']
|
2624
|
-
reqid = response['Response']['RequestId']
|
2625
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2626
|
-
end
|
2627
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2628
|
-
raise e
|
2629
|
-
rescue StandardError => e
|
2630
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2631
|
-
end
|
2632
|
-
|
2633
2434
|
# 知识库文档问答保存。
|
2634
2435
|
# 将文件存储到应用的知识库内需要三步:
|
2635
2436
|
# 1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)。获取临时密钥不同参数组合权限不一样,可参考 [智能体开发平台操作 cos 指南](https://cloud.tencent.com/document/product/1759/116238)
|
data/lib/v20231130/models.rb
CHANGED
@@ -1904,83 +1904,6 @@ module TencentCloud
|
|
1904
1904
|
end
|
1905
1905
|
end
|
1906
1906
|
|
1907
|
-
# ConvertDocument请求参数结构体
|
1908
|
-
class ConvertDocumentRequest < TencentCloud::Common::AbstractModel
|
1909
|
-
# @param FileUrl: 图片的 Url 地址。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经 Base64 编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
1910
|
-
# @type FileUrl: String
|
1911
|
-
# @param FileBase64: 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
1912
|
-
# @type FileBase64: String
|
1913
|
-
# @param FileStartPageNumber: 当传入文件是PDF类型(FileType=PDF)时,用来指定pdf识别的起始页码,识别的页码包含当前值。
|
1914
|
-
# @type FileStartPageNumber: Integer
|
1915
|
-
# @param FileEndPageNumber: 当传入文件是PDF类型(FileType=PDF)时,用来指定pdf识别的结束页码,识别的页码包含当前值。
|
1916
|
-
# 建议一次请求的页面不超过3页。
|
1917
|
-
# @type FileEndPageNumber: Integer
|
1918
|
-
|
1919
|
-
attr_accessor :FileUrl, :FileBase64, :FileStartPageNumber, :FileEndPageNumber
|
1920
|
-
|
1921
|
-
def initialize(fileurl=nil, filebase64=nil, filestartpagenumber=nil, fileendpagenumber=nil)
|
1922
|
-
@FileUrl = fileurl
|
1923
|
-
@FileBase64 = filebase64
|
1924
|
-
@FileStartPageNumber = filestartpagenumber
|
1925
|
-
@FileEndPageNumber = fileendpagenumber
|
1926
|
-
end
|
1927
|
-
|
1928
|
-
def deserialize(params)
|
1929
|
-
@FileUrl = params['FileUrl']
|
1930
|
-
@FileBase64 = params['FileBase64']
|
1931
|
-
@FileStartPageNumber = params['FileStartPageNumber']
|
1932
|
-
@FileEndPageNumber = params['FileEndPageNumber']
|
1933
|
-
end
|
1934
|
-
end
|
1935
|
-
|
1936
|
-
# ConvertDocument返回参数结构体
|
1937
|
-
class ConvertDocumentResponse < TencentCloud::Common::AbstractModel
|
1938
|
-
# @param WordRecognizeInfo: 识别生成的word文件base64编码的字符串
|
1939
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
1940
|
-
# @type WordRecognizeInfo: Array
|
1941
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1942
|
-
# @type RequestId: String
|
1943
|
-
|
1944
|
-
attr_accessor :WordRecognizeInfo, :RequestId
|
1945
|
-
|
1946
|
-
def initialize(wordrecognizeinfo=nil, requestid=nil)
|
1947
|
-
@WordRecognizeInfo = wordrecognizeinfo
|
1948
|
-
@RequestId = requestid
|
1949
|
-
end
|
1950
|
-
|
1951
|
-
def deserialize(params)
|
1952
|
-
unless params['WordRecognizeInfo'].nil?
|
1953
|
-
@WordRecognizeInfo = []
|
1954
|
-
params['WordRecognizeInfo'].each do |i|
|
1955
|
-
wordrecognizeinfo_tmp = WordRecognizeInfo.new
|
1956
|
-
wordrecognizeinfo_tmp.deserialize(i)
|
1957
|
-
@WordRecognizeInfo << wordrecognizeinfo_tmp
|
1958
|
-
end
|
1959
|
-
end
|
1960
|
-
@RequestId = params['RequestId']
|
1961
|
-
end
|
1962
|
-
end
|
1963
|
-
|
1964
|
-
# 坐标
|
1965
|
-
class Coord < TencentCloud::Common::AbstractModel
|
1966
|
-
# @param X: 横坐标
|
1967
|
-
# @type X: Integer
|
1968
|
-
# @param Y: 纵坐标
|
1969
|
-
# @type Y: Integer
|
1970
|
-
|
1971
|
-
attr_accessor :X, :Y
|
1972
|
-
|
1973
|
-
def initialize(x=nil, y=nil)
|
1974
|
-
@X = x
|
1975
|
-
@Y = y
|
1976
|
-
end
|
1977
|
-
|
1978
|
-
def deserialize(params)
|
1979
|
-
@X = params['X']
|
1980
|
-
@Y = params['Y']
|
1981
|
-
end
|
1982
|
-
end
|
1983
|
-
|
1984
1907
|
# CreateAgent请求参数结构体
|
1985
1908
|
class CreateAgentRequest < TencentCloud::Common::AbstractModel
|
1986
1909
|
# @param AppBizId: 应用ID
|
@@ -2140,54 +2063,6 @@ module TencentCloud
|
|
2140
2063
|
end
|
2141
2064
|
end
|
2142
2065
|
|
2143
|
-
# CreateCorp请求参数结构体
|
2144
|
-
class CreateCorpRequest < TencentCloud::Common::AbstractModel
|
2145
|
-
# @param FullName: 企业全称
|
2146
|
-
# @type FullName: String
|
2147
|
-
# @param ContactName: 联系人名称
|
2148
|
-
# @type ContactName: String
|
2149
|
-
# @param Email: 联系人邮箱
|
2150
|
-
# @type Email: String
|
2151
|
-
# @param Telephone: 联系人手机号
|
2152
|
-
# @type Telephone: String
|
2153
|
-
|
2154
|
-
attr_accessor :FullName, :ContactName, :Email, :Telephone
|
2155
|
-
|
2156
|
-
def initialize(fullname=nil, contactname=nil, email=nil, telephone=nil)
|
2157
|
-
@FullName = fullname
|
2158
|
-
@ContactName = contactname
|
2159
|
-
@Email = email
|
2160
|
-
@Telephone = telephone
|
2161
|
-
end
|
2162
|
-
|
2163
|
-
def deserialize(params)
|
2164
|
-
@FullName = params['FullName']
|
2165
|
-
@ContactName = params['ContactName']
|
2166
|
-
@Email = params['Email']
|
2167
|
-
@Telephone = params['Telephone']
|
2168
|
-
end
|
2169
|
-
end
|
2170
|
-
|
2171
|
-
# CreateCorp返回参数结构体
|
2172
|
-
class CreateCorpResponse < TencentCloud::Common::AbstractModel
|
2173
|
-
# @param CorpBizId: 企业ID
|
2174
|
-
# @type CorpBizId: String
|
2175
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2176
|
-
# @type RequestId: String
|
2177
|
-
|
2178
|
-
attr_accessor :CorpBizId, :RequestId
|
2179
|
-
|
2180
|
-
def initialize(corpbizid=nil, requestid=nil)
|
2181
|
-
@CorpBizId = corpbizid
|
2182
|
-
@RequestId = requestid
|
2183
|
-
end
|
2184
|
-
|
2185
|
-
def deserialize(params)
|
2186
|
-
@CorpBizId = params['CorpBizId']
|
2187
|
-
@RequestId = params['RequestId']
|
2188
|
-
end
|
2189
|
-
end
|
2190
|
-
|
2191
2066
|
# CreateDocCate请求参数结构体
|
2192
2067
|
class CreateDocCateRequest < TencentCloud::Common::AbstractModel
|
2193
2068
|
# @param BotBizId: 应用ID
|
@@ -3533,61 +3408,6 @@ module TencentCloud
|
|
3533
3408
|
end
|
3534
3409
|
end
|
3535
3410
|
|
3536
|
-
# DescribeCorp请求参数结构体
|
3537
|
-
class DescribeCorpRequest < TencentCloud::Common::AbstractModel
|
3538
|
-
|
3539
|
-
|
3540
|
-
def initialize()
|
3541
|
-
end
|
3542
|
-
|
3543
|
-
def deserialize(params)
|
3544
|
-
end
|
3545
|
-
end
|
3546
|
-
|
3547
|
-
# DescribeCorp返回参数结构体
|
3548
|
-
class DescribeCorpResponse < TencentCloud::Common::AbstractModel
|
3549
|
-
# @param CorpBizId: 企业ID
|
3550
|
-
# @type CorpBizId: String
|
3551
|
-
# @param RobotQuota: 应用配额
|
3552
|
-
# @type RobotQuota: Integer
|
3553
|
-
# @param FullName: 企业全称
|
3554
|
-
# @type FullName: String
|
3555
|
-
# @param IsTrial: 是否试用
|
3556
|
-
# @type IsTrial: Boolean
|
3557
|
-
# @param IsTrialExpired: 是否试用过期
|
3558
|
-
# @type IsTrialExpired: Boolean
|
3559
|
-
# @param AvailableAppQuota: 可用应用数量
|
3560
|
-
# @type AvailableAppQuota: Integer
|
3561
|
-
# @param IsSupportCustomModel: 是否支持自定义模型配置
|
3562
|
-
# @type IsSupportCustomModel: Boolean
|
3563
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3564
|
-
# @type RequestId: String
|
3565
|
-
|
3566
|
-
attr_accessor :CorpBizId, :RobotQuota, :FullName, :IsTrial, :IsTrialExpired, :AvailableAppQuota, :IsSupportCustomModel, :RequestId
|
3567
|
-
|
3568
|
-
def initialize(corpbizid=nil, robotquota=nil, fullname=nil, istrial=nil, istrialexpired=nil, availableappquota=nil, issupportcustommodel=nil, requestid=nil)
|
3569
|
-
@CorpBizId = corpbizid
|
3570
|
-
@RobotQuota = robotquota
|
3571
|
-
@FullName = fullname
|
3572
|
-
@IsTrial = istrial
|
3573
|
-
@IsTrialExpired = istrialexpired
|
3574
|
-
@AvailableAppQuota = availableappquota
|
3575
|
-
@IsSupportCustomModel = issupportcustommodel
|
3576
|
-
@RequestId = requestid
|
3577
|
-
end
|
3578
|
-
|
3579
|
-
def deserialize(params)
|
3580
|
-
@CorpBizId = params['CorpBizId']
|
3581
|
-
@RobotQuota = params['RobotQuota']
|
3582
|
-
@FullName = params['FullName']
|
3583
|
-
@IsTrial = params['IsTrial']
|
3584
|
-
@IsTrialExpired = params['IsTrialExpired']
|
3585
|
-
@AvailableAppQuota = params['AvailableAppQuota']
|
3586
|
-
@IsSupportCustomModel = params['IsSupportCustomModel']
|
3587
|
-
@RequestId = params['RequestId']
|
3588
|
-
end
|
3589
|
-
end
|
3590
|
-
|
3591
3411
|
# DescribeDoc请求参数结构体
|
3592
3412
|
class DescribeDocRequest < TencentCloud::Common::AbstractModel
|
3593
3413
|
# @param BotBizId: 应用ID
|
@@ -4893,143 +4713,6 @@ module TencentCloud
|
|
4893
4713
|
end
|
4894
4714
|
end
|
4895
4715
|
|
4896
|
-
# 文档元素字段
|
4897
|
-
class DocumentElement < TencentCloud::Common::AbstractModel
|
4898
|
-
# @param Index: 文档元素索引
|
4899
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4900
|
-
# @type Index: Integer
|
4901
|
-
# @param Type: 元素类型,包括paragraph、table、formula、figure、title、header、footer、figure_text
|
4902
|
-
|
4903
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4904
|
-
# @type Type: String
|
4905
|
-
# @param Text: 元素内容,当type为figure或formula(公式识别关闭)时该字段内容为图片的位置
|
4906
|
-
|
4907
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4908
|
-
# @type Text: String
|
4909
|
-
# @param Polygon: 元素坐标,左上角(x1, y1),右上角(x2, y2),右下角(x3, y3),左下角(x4, y4)
|
4910
|
-
|
4911
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4912
|
-
# @type Polygon: :class:`Tencentcloud::Lke.v20231130.models.Polygon`
|
4913
|
-
# @param Level: 元素层级
|
4914
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4915
|
-
# @type Level: Integer
|
4916
|
-
# @param InsetImageName: 入参开启EnableInsetImage后返回,表示在InsetImagePackage中的内嵌图片名称
|
4917
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4918
|
-
# @type InsetImageName: String
|
4919
|
-
# @param Elements: 嵌套的文档元素信息,一般包含的是文档内嵌入图片的文字识别结果
|
4920
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4921
|
-
# @type Elements: Array
|
4922
|
-
|
4923
|
-
attr_accessor :Index, :Type, :Text, :Polygon, :Level, :InsetImageName, :Elements
|
4924
|
-
|
4925
|
-
def initialize(index=nil, type=nil, text=nil, polygon=nil, level=nil, insetimagename=nil, elements=nil)
|
4926
|
-
@Index = index
|
4927
|
-
@Type = type
|
4928
|
-
@Text = text
|
4929
|
-
@Polygon = polygon
|
4930
|
-
@Level = level
|
4931
|
-
@InsetImageName = insetimagename
|
4932
|
-
@Elements = elements
|
4933
|
-
end
|
4934
|
-
|
4935
|
-
def deserialize(params)
|
4936
|
-
@Index = params['Index']
|
4937
|
-
@Type = params['Type']
|
4938
|
-
@Text = params['Text']
|
4939
|
-
unless params['Polygon'].nil?
|
4940
|
-
@Polygon = Polygon.new
|
4941
|
-
@Polygon.deserialize(params['Polygon'])
|
4942
|
-
end
|
4943
|
-
@Level = params['Level']
|
4944
|
-
@InsetImageName = params['InsetImageName']
|
4945
|
-
unless params['Elements'].nil?
|
4946
|
-
@Elements = []
|
4947
|
-
params['Elements'].each do |i|
|
4948
|
-
documentelement_tmp = DocumentElement.new
|
4949
|
-
documentelement_tmp.deserialize(i)
|
4950
|
-
@Elements << documentelement_tmp
|
4951
|
-
end
|
4952
|
-
end
|
4953
|
-
end
|
4954
|
-
end
|
4955
|
-
|
4956
|
-
# 单页文档识别的内容
|
4957
|
-
class DocumentRecognizeInfo < TencentCloud::Common::AbstractModel
|
4958
|
-
# @param PageNumber: 输入PDF文件的页码,从1开始。输入图片的话值始终为1
|
4959
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4960
|
-
# @type PageNumber: Integer
|
4961
|
-
# @param Angle: 旋转角度
|
4962
|
-
|
4963
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4964
|
-
# @type Angle: Integer
|
4965
|
-
# @param Height: AI算法识别处理后的图片高度
|
4966
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4967
|
-
# @type Height: Integer
|
4968
|
-
# @param Width: AI算法识别处理后的图片宽度
|
4969
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4970
|
-
# @type Width: Integer
|
4971
|
-
# @param OriginHeight: 图片的原始高度,输入PDF文件则表示单页PDF转图片之后的图片高度
|
4972
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4973
|
-
# @type OriginHeight: Integer
|
4974
|
-
# @param OriginWidth: 图片的原始宽度,输入PDF文件则表示单页PDF转图片之后的图片宽度
|
4975
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4976
|
-
# @type OriginWidth: Integer
|
4977
|
-
# @param Elements: 文档元素信息
|
4978
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4979
|
-
# @type Elements: Array
|
4980
|
-
# @param RotatedAngle: 旋转角度
|
4981
|
-
|
4982
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4983
|
-
# @type RotatedAngle: Float
|
4984
|
-
|
4985
|
-
attr_accessor :PageNumber, :Angle, :Height, :Width, :OriginHeight, :OriginWidth, :Elements, :RotatedAngle
|
4986
|
-
|
4987
|
-
def initialize(pagenumber=nil, angle=nil, height=nil, width=nil, originheight=nil, originwidth=nil, elements=nil, rotatedangle=nil)
|
4988
|
-
@PageNumber = pagenumber
|
4989
|
-
@Angle = angle
|
4990
|
-
@Height = height
|
4991
|
-
@Width = width
|
4992
|
-
@OriginHeight = originheight
|
4993
|
-
@OriginWidth = originwidth
|
4994
|
-
@Elements = elements
|
4995
|
-
@RotatedAngle = rotatedangle
|
4996
|
-
end
|
4997
|
-
|
4998
|
-
def deserialize(params)
|
4999
|
-
@PageNumber = params['PageNumber']
|
5000
|
-
@Angle = params['Angle']
|
5001
|
-
@Height = params['Height']
|
5002
|
-
@Width = params['Width']
|
5003
|
-
@OriginHeight = params['OriginHeight']
|
5004
|
-
@OriginWidth = params['OriginWidth']
|
5005
|
-
unless params['Elements'].nil?
|
5006
|
-
@Elements = []
|
5007
|
-
params['Elements'].each do |i|
|
5008
|
-
documentelement_tmp = DocumentElement.new
|
5009
|
-
documentelement_tmp.deserialize(i)
|
5010
|
-
@Elements << documentelement_tmp
|
5011
|
-
end
|
5012
|
-
end
|
5013
|
-
@RotatedAngle = params['RotatedAngle']
|
5014
|
-
end
|
5015
|
-
end
|
5016
|
-
|
5017
|
-
# 向量
|
5018
|
-
class EmbeddingObject < TencentCloud::Common::AbstractModel
|
5019
|
-
# @param Embedding: 向量
|
5020
|
-
# @type Embedding: Array
|
5021
|
-
|
5022
|
-
attr_accessor :Embedding
|
5023
|
-
|
5024
|
-
def initialize(embedding=nil)
|
5025
|
-
@Embedding = embedding
|
5026
|
-
end
|
5027
|
-
|
5028
|
-
def deserialize(params)
|
5029
|
-
@Embedding = params['Embedding']
|
5030
|
-
end
|
5031
|
-
end
|
5032
|
-
|
5033
4716
|
# ExportAttributeLabel请求参数结构体
|
5034
4717
|
class ExportAttributeLabelRequest < TencentCloud::Common::AbstractModel
|
5035
4718
|
# @param BotBizId: 应用ID
|
@@ -5556,64 +5239,6 @@ module TencentCloud
|
|
5556
5239
|
end
|
5557
5240
|
end
|
5558
5241
|
|
5559
|
-
# GetEmbedding请求参数结构体
|
5560
|
-
class GetEmbeddingRequest < TencentCloud::Common::AbstractModel
|
5561
|
-
# @param Model: 模型名称
|
5562
|
-
# @type Model: String
|
5563
|
-
# @param Inputs: 需要 embedding 的文本, 单条文本最大长度500个字符, 总条数最大7条
|
5564
|
-
# @type Inputs: Array
|
5565
|
-
# @param Online: 是否在线, 后台异步任务使用离线, 实时任务使用在线, 默认值: false
|
5566
|
-
# @type Online: Boolean
|
5567
|
-
|
5568
|
-
attr_accessor :Model, :Inputs, :Online
|
5569
|
-
|
5570
|
-
def initialize(model=nil, inputs=nil, online=nil)
|
5571
|
-
@Model = model
|
5572
|
-
@Inputs = inputs
|
5573
|
-
@Online = online
|
5574
|
-
end
|
5575
|
-
|
5576
|
-
def deserialize(params)
|
5577
|
-
@Model = params['Model']
|
5578
|
-
@Inputs = params['Inputs']
|
5579
|
-
@Online = params['Online']
|
5580
|
-
end
|
5581
|
-
end
|
5582
|
-
|
5583
|
-
# GetEmbedding返回参数结构体
|
5584
|
-
class GetEmbeddingResponse < TencentCloud::Common::AbstractModel
|
5585
|
-
# @param Data: 特征
|
5586
|
-
# @type Data: Array
|
5587
|
-
# @param Usage: 消耗量,返回TotalToken
|
5588
|
-
# @type Usage: :class:`Tencentcloud::Lke.v20231130.models.Usage`
|
5589
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5590
|
-
# @type RequestId: String
|
5591
|
-
|
5592
|
-
attr_accessor :Data, :Usage, :RequestId
|
5593
|
-
|
5594
|
-
def initialize(data=nil, usage=nil, requestid=nil)
|
5595
|
-
@Data = data
|
5596
|
-
@Usage = usage
|
5597
|
-
@RequestId = requestid
|
5598
|
-
end
|
5599
|
-
|
5600
|
-
def deserialize(params)
|
5601
|
-
unless params['Data'].nil?
|
5602
|
-
@Data = []
|
5603
|
-
params['Data'].each do |i|
|
5604
|
-
embeddingobject_tmp = EmbeddingObject.new
|
5605
|
-
embeddingobject_tmp.deserialize(i)
|
5606
|
-
@Data << embeddingobject_tmp
|
5607
|
-
end
|
5608
|
-
end
|
5609
|
-
unless params['Usage'].nil?
|
5610
|
-
@Usage = Usage.new
|
5611
|
-
@Usage.deserialize(params['Usage'])
|
5612
|
-
end
|
5613
|
-
@RequestId = params['RequestId']
|
5614
|
-
end
|
5615
|
-
end
|
5616
|
-
|
5617
5242
|
# GetLikeDataCount请求参数结构体
|
5618
5243
|
class GetLikeDataCountRequest < TencentCloud::Common::AbstractModel
|
5619
5244
|
# @param StartTime: 开始日期
|
@@ -5770,57 +5395,6 @@ module TencentCloud
|
|
5770
5395
|
end
|
5771
5396
|
end
|
5772
5397
|
|
5773
|
-
# GetReconstructDocumentResult请求参数结构体
|
5774
|
-
class GetReconstructDocumentResultRequest < TencentCloud::Common::AbstractModel
|
5775
|
-
# @param TaskId: 任务唯一Id。[CreateReconstructDocumentFlow](https://cloud.tencent.com/document/product/1759/107506) 返回的TaskId。
|
5776
|
-
# @type TaskId: String
|
5777
|
-
|
5778
|
-
attr_accessor :TaskId
|
5779
|
-
|
5780
|
-
def initialize(taskid=nil)
|
5781
|
-
@TaskId = taskid
|
5782
|
-
end
|
5783
|
-
|
5784
|
-
def deserialize(params)
|
5785
|
-
@TaskId = params['TaskId']
|
5786
|
-
end
|
5787
|
-
end
|
5788
|
-
|
5789
|
-
# GetReconstructDocumentResult返回参数结构体
|
5790
|
-
class GetReconstructDocumentResultResponse < TencentCloud::Common::AbstractModel
|
5791
|
-
# @param Status: 任务状态: Success->执行完成;Processing->执行中;Failed->执行失败;WaitExecute->等待执行。
|
5792
|
-
# @type Status: String
|
5793
|
-
# @param DocumentRecognizeResultUrl: 本次文档解析的结果文件,存储在腾讯云COS的下载URL,下载URL的有效期为10分钟。
|
5794
|
-
# @type DocumentRecognizeResultUrl: String
|
5795
|
-
# @param FailedPages: 本次文档解析失败的页码信息。
|
5796
|
-
# @type FailedPages: Array
|
5797
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5798
|
-
# @type RequestId: String
|
5799
|
-
|
5800
|
-
attr_accessor :Status, :DocumentRecognizeResultUrl, :FailedPages, :RequestId
|
5801
|
-
|
5802
|
-
def initialize(status=nil, documentrecognizeresulturl=nil, failedpages=nil, requestid=nil)
|
5803
|
-
@Status = status
|
5804
|
-
@DocumentRecognizeResultUrl = documentrecognizeresulturl
|
5805
|
-
@FailedPages = failedpages
|
5806
|
-
@RequestId = requestid
|
5807
|
-
end
|
5808
|
-
|
5809
|
-
def deserialize(params)
|
5810
|
-
@Status = params['Status']
|
5811
|
-
@DocumentRecognizeResultUrl = params['DocumentRecognizeResultUrl']
|
5812
|
-
unless params['FailedPages'].nil?
|
5813
|
-
@FailedPages = []
|
5814
|
-
params['FailedPages'].each do |i|
|
5815
|
-
reconstructdocumentfailedpage_tmp = ReconstructDocumentFailedPage.new
|
5816
|
-
reconstructdocumentfailedpage_tmp.deserialize(i)
|
5817
|
-
@FailedPages << reconstructdocumentfailedpage_tmp
|
5818
|
-
end
|
5819
|
-
end
|
5820
|
-
@RequestId = params['RequestId']
|
5821
|
-
end
|
5822
|
-
end
|
5823
|
-
|
5824
5398
|
# GetTaskStatus请求参数结构体
|
5825
5399
|
class GetTaskStatusRequest < TencentCloud::Common::AbstractModel
|
5826
5400
|
# @param TaskId: 任务ID
|
@@ -8740,31 +8314,6 @@ module TencentCloud
|
|
8740
8314
|
end
|
8741
8315
|
end
|
8742
8316
|
|
8743
|
-
# 一条message代表一条对话记录
|
8744
|
-
# role表示角色 user或者assistant
|
8745
|
-
# content表示对话内容
|
8746
|
-
class Message < TencentCloud::Common::AbstractModel
|
8747
|
-
# @param Role: role表示角色 user标识用户提问,assistant标识返回的答案
|
8748
|
-
|
8749
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
8750
|
-
# @type Role: String
|
8751
|
-
# @param Content: 对话内容
|
8752
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
8753
|
-
# @type Content: String
|
8754
|
-
|
8755
|
-
attr_accessor :Role, :Content
|
8756
|
-
|
8757
|
-
def initialize(role=nil, content=nil)
|
8758
|
-
@Role = role
|
8759
|
-
@Content = content
|
8760
|
-
end
|
8761
|
-
|
8762
|
-
def deserialize(params)
|
8763
|
-
@Role = params['Role']
|
8764
|
-
@Content = params['Content']
|
8765
|
-
end
|
8766
|
-
end
|
8767
|
-
|
8768
8317
|
# 模型信息
|
8769
8318
|
class ModelInfo < TencentCloud::Common::AbstractModel
|
8770
8319
|
# @param ModelName: 模型名称
|
@@ -10036,47 +9585,6 @@ module TencentCloud
|
|
10036
9585
|
end
|
10037
9586
|
end
|
10038
9587
|
|
10039
|
-
# 文本的坐标,以四个顶点坐标表示
|
10040
|
-
# 注意:此字段可能返回 null,表示取不到有效值
|
10041
|
-
class Polygon < TencentCloud::Common::AbstractModel
|
10042
|
-
# @param LeftTop: 左上顶点坐标
|
10043
|
-
# @type LeftTop: :class:`Tencentcloud::Lke.v20231130.models.Coord`
|
10044
|
-
# @param RightTop: 右上顶点坐标
|
10045
|
-
# @type RightTop: :class:`Tencentcloud::Lke.v20231130.models.Coord`
|
10046
|
-
# @param RightBottom: 右下顶点坐标
|
10047
|
-
# @type RightBottom: :class:`Tencentcloud::Lke.v20231130.models.Coord`
|
10048
|
-
# @param LeftBottom: 左下顶点坐标
|
10049
|
-
# @type LeftBottom: :class:`Tencentcloud::Lke.v20231130.models.Coord`
|
10050
|
-
|
10051
|
-
attr_accessor :LeftTop, :RightTop, :RightBottom, :LeftBottom
|
10052
|
-
|
10053
|
-
def initialize(lefttop=nil, righttop=nil, rightbottom=nil, leftbottom=nil)
|
10054
|
-
@LeftTop = lefttop
|
10055
|
-
@RightTop = righttop
|
10056
|
-
@RightBottom = rightbottom
|
10057
|
-
@LeftBottom = leftbottom
|
10058
|
-
end
|
10059
|
-
|
10060
|
-
def deserialize(params)
|
10061
|
-
unless params['LeftTop'].nil?
|
10062
|
-
@LeftTop = Coord.new
|
10063
|
-
@LeftTop.deserialize(params['LeftTop'])
|
10064
|
-
end
|
10065
|
-
unless params['RightTop'].nil?
|
10066
|
-
@RightTop = Coord.new
|
10067
|
-
@RightTop.deserialize(params['RightTop'])
|
10068
|
-
end
|
10069
|
-
unless params['RightBottom'].nil?
|
10070
|
-
@RightBottom = Coord.new
|
10071
|
-
@RightBottom.deserialize(params['RightBottom'])
|
10072
|
-
end
|
10073
|
-
unless params['LeftBottom'].nil?
|
10074
|
-
@LeftBottom = Coord.new
|
10075
|
-
@LeftBottom.deserialize(params['LeftBottom'])
|
10076
|
-
end
|
10077
|
-
end
|
10078
|
-
end
|
10079
|
-
|
10080
9588
|
# 执行过程信息记录
|
10081
9589
|
class Procedure < TencentCloud::Common::AbstractModel
|
10082
9590
|
# @param Name: 执行过程英语名
|
@@ -10348,64 +9856,6 @@ module TencentCloud
|
|
10348
9856
|
end
|
10349
9857
|
end
|
10350
9858
|
|
10351
|
-
# QueryRewrite请求参数结构体
|
10352
|
-
class QueryRewriteRequest < TencentCloud::Common::AbstractModel
|
10353
|
-
# @param Question: 需要改写的问题
|
10354
|
-
# @type Question: String
|
10355
|
-
# @param Messages: 需要改写的多轮历史会话,每轮历史对话需要包含user(问)和assistant(答)成对输入,由于模型字符限制,最多提供4轮对话。
|
10356
|
-
# @type Messages: Array
|
10357
|
-
# @param Model: 模型名称
|
10358
|
-
# @type Model: String
|
10359
|
-
|
10360
|
-
attr_accessor :Question, :Messages, :Model
|
10361
|
-
|
10362
|
-
def initialize(question=nil, messages=nil, model=nil)
|
10363
|
-
@Question = question
|
10364
|
-
@Messages = messages
|
10365
|
-
@Model = model
|
10366
|
-
end
|
10367
|
-
|
10368
|
-
def deserialize(params)
|
10369
|
-
@Question = params['Question']
|
10370
|
-
unless params['Messages'].nil?
|
10371
|
-
@Messages = []
|
10372
|
-
params['Messages'].each do |i|
|
10373
|
-
message_tmp = Message.new
|
10374
|
-
message_tmp.deserialize(i)
|
10375
|
-
@Messages << message_tmp
|
10376
|
-
end
|
10377
|
-
end
|
10378
|
-
@Model = params['Model']
|
10379
|
-
end
|
10380
|
-
end
|
10381
|
-
|
10382
|
-
# QueryRewrite返回参数结构体
|
10383
|
-
class QueryRewriteResponse < TencentCloud::Common::AbstractModel
|
10384
|
-
# @param Content: 改写结果
|
10385
|
-
# @type Content: String
|
10386
|
-
# @param Usage: 消耗量,返回输入token数,输出token数以及总token数
|
10387
|
-
# @type Usage: :class:`Tencentcloud::Lke.v20231130.models.Usage`
|
10388
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
10389
|
-
# @type RequestId: String
|
10390
|
-
|
10391
|
-
attr_accessor :Content, :Usage, :RequestId
|
10392
|
-
|
10393
|
-
def initialize(content=nil, usage=nil, requestid=nil)
|
10394
|
-
@Content = content
|
10395
|
-
@Usage = usage
|
10396
|
-
@RequestId = requestid
|
10397
|
-
end
|
10398
|
-
|
10399
|
-
def deserialize(params)
|
10400
|
-
@Content = params['Content']
|
10401
|
-
unless params['Usage'].nil?
|
10402
|
-
@Usage = Usage.new
|
10403
|
-
@Usage.deserialize(params['Usage'])
|
10404
|
-
end
|
10405
|
-
@RequestId = params['RequestId']
|
10406
|
-
end
|
10407
|
-
end
|
10408
|
-
|
10409
9859
|
# 搜索引擎参考来源索引
|
10410
9860
|
class QuoteInfo < TencentCloud::Common::AbstractModel
|
10411
9861
|
# @param Position: 参考来源位置
|
@@ -10472,132 +9922,6 @@ module TencentCloud
|
|
10472
9922
|
end
|
10473
9923
|
end
|
10474
9924
|
|
10475
|
-
# 重排数据, 计算2段内容的关联性
|
10476
|
-
class ReRankDataObject < TencentCloud::Common::AbstractModel
|
10477
|
-
# @param PromptA: 第一段内容
|
10478
|
-
# @type PromptA: String
|
10479
|
-
# @param PromptB: 第二段内容
|
10480
|
-
# @type PromptB: String
|
10481
|
-
|
10482
|
-
attr_accessor :PromptA, :PromptB
|
10483
|
-
|
10484
|
-
def initialize(prompta=nil, promptb=nil)
|
10485
|
-
@PromptA = prompta
|
10486
|
-
@PromptB = promptb
|
10487
|
-
end
|
10488
|
-
|
10489
|
-
def deserialize(params)
|
10490
|
-
@PromptA = params['PromptA']
|
10491
|
-
@PromptB = params['PromptB']
|
10492
|
-
end
|
10493
|
-
end
|
10494
|
-
|
10495
|
-
# ReconstructDocument配置选项
|
10496
|
-
class ReconstructDocumentConfig < TencentCloud::Common::AbstractModel
|
10497
|
-
# @param EnableInsetImage: 生成的Markdown中是否嵌入图片
|
10498
|
-
# @type EnableInsetImage: Boolean
|
10499
|
-
|
10500
|
-
attr_accessor :EnableInsetImage
|
10501
|
-
|
10502
|
-
def initialize(enableinsetimage=nil)
|
10503
|
-
@EnableInsetImage = enableinsetimage
|
10504
|
-
end
|
10505
|
-
|
10506
|
-
def deserialize(params)
|
10507
|
-
@EnableInsetImage = params['EnableInsetImage']
|
10508
|
-
end
|
10509
|
-
end
|
10510
|
-
|
10511
|
-
# 文档解析失败记录
|
10512
|
-
class ReconstructDocumentFailedPage < TencentCloud::Common::AbstractModel
|
10513
|
-
# @param PageNumber: 失败页码
|
10514
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
10515
|
-
# @type PageNumber: Integer
|
10516
|
-
|
10517
|
-
attr_accessor :PageNumber
|
10518
|
-
|
10519
|
-
def initialize(pagenumber=nil)
|
10520
|
-
@PageNumber = pagenumber
|
10521
|
-
end
|
10522
|
-
|
10523
|
-
def deserialize(params)
|
10524
|
-
@PageNumber = params['PageNumber']
|
10525
|
-
end
|
10526
|
-
end
|
10527
|
-
|
10528
|
-
# ReconstructDocument请求参数结构体
|
10529
|
-
class ReconstructDocumentRequest < TencentCloud::Common::AbstractModel
|
10530
|
-
# @param FileBase64: 文件的 Base64 值。 支持的文件格式:PNG、JPG、JPEG、PDF。 支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
10531
|
-
# @type FileBase64: String
|
10532
|
-
# @param FileUrl: 文件的 Url 地址。 支持的文件格式:PNG、JPG、JPEG、PDF。 支持的文件大小:所下载文件经 Base64 编码后不超过 8M。文件下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 文件存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
10533
|
-
# @type FileUrl: String
|
10534
|
-
# @param FileStartPageNumber: 当传入文件是PDF类型时,用来指定pdf识别的起始页码,识别的页码包含当前值。默认为1,表示从pdf文件的第1页开始识别。
|
10535
|
-
# @type FileStartPageNumber: Integer
|
10536
|
-
# @param FileEndPageNumber: 当传入文件是PDF类型时,用来指定pdf识别的结束页码,识别的页码包含当前值。默认为10,表示识别到pdf文件的第10页。单次调用最多支持识别10页内容,即FileEndPageNumber-FileStartPageNumber需要不大于10。
|
10537
|
-
# @type FileEndPageNumber: Integer
|
10538
|
-
# @param Config: 配置选项,支持配置是否在生成的Markdown中是否嵌入图片
|
10539
|
-
# @type Config: :class:`Tencentcloud::Lke.v20231130.models.ReconstructDocumentConfig`
|
10540
|
-
|
10541
|
-
attr_accessor :FileBase64, :FileUrl, :FileStartPageNumber, :FileEndPageNumber, :Config
|
10542
|
-
|
10543
|
-
def initialize(filebase64=nil, fileurl=nil, filestartpagenumber=nil, fileendpagenumber=nil, config=nil)
|
10544
|
-
@FileBase64 = filebase64
|
10545
|
-
@FileUrl = fileurl
|
10546
|
-
@FileStartPageNumber = filestartpagenumber
|
10547
|
-
@FileEndPageNumber = fileendpagenumber
|
10548
|
-
@Config = config
|
10549
|
-
end
|
10550
|
-
|
10551
|
-
def deserialize(params)
|
10552
|
-
@FileBase64 = params['FileBase64']
|
10553
|
-
@FileUrl = params['FileUrl']
|
10554
|
-
@FileStartPageNumber = params['FileStartPageNumber']
|
10555
|
-
@FileEndPageNumber = params['FileEndPageNumber']
|
10556
|
-
unless params['Config'].nil?
|
10557
|
-
@Config = ReconstructDocumentConfig.new
|
10558
|
-
@Config.deserialize(params['Config'])
|
10559
|
-
end
|
10560
|
-
end
|
10561
|
-
end
|
10562
|
-
|
10563
|
-
# ReconstructDocument返回参数结构体
|
10564
|
-
class ReconstructDocumentResponse < TencentCloud::Common::AbstractModel
|
10565
|
-
# @param MarkdownBase64: 识别生成的Markdown文件base64编码的字符串
|
10566
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
10567
|
-
# @type MarkdownBase64: String
|
10568
|
-
# @param InsetImagePackage: 输入文件中嵌入的图片放在一个文件夹中打包为.zip压缩文件,识别生成的Markdown文件通过路径关联插入本文件夹中的图片。
|
10569
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
10570
|
-
# @type InsetImagePackage: String
|
10571
|
-
# @param DocumentRecognizeInfo: 输入文件中嵌入的图片中文字内容的识别结果
|
10572
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
10573
|
-
# @type DocumentRecognizeInfo: Array
|
10574
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
10575
|
-
# @type RequestId: String
|
10576
|
-
|
10577
|
-
attr_accessor :MarkdownBase64, :InsetImagePackage, :DocumentRecognizeInfo, :RequestId
|
10578
|
-
|
10579
|
-
def initialize(markdownbase64=nil, insetimagepackage=nil, documentrecognizeinfo=nil, requestid=nil)
|
10580
|
-
@MarkdownBase64 = markdownbase64
|
10581
|
-
@InsetImagePackage = insetimagepackage
|
10582
|
-
@DocumentRecognizeInfo = documentrecognizeinfo
|
10583
|
-
@RequestId = requestid
|
10584
|
-
end
|
10585
|
-
|
10586
|
-
def deserialize(params)
|
10587
|
-
@MarkdownBase64 = params['MarkdownBase64']
|
10588
|
-
@InsetImagePackage = params['InsetImagePackage']
|
10589
|
-
unless params['DocumentRecognizeInfo'].nil?
|
10590
|
-
@DocumentRecognizeInfo = []
|
10591
|
-
params['DocumentRecognizeInfo'].each do |i|
|
10592
|
-
documentrecognizeinfo_tmp = DocumentRecognizeInfo.new
|
10593
|
-
documentrecognizeinfo_tmp.deserialize(i)
|
10594
|
-
@DocumentRecognizeInfo << documentrecognizeinfo_tmp
|
10595
|
-
end
|
10596
|
-
end
|
10597
|
-
@RequestId = params['RequestId']
|
10598
|
-
end
|
10599
|
-
end
|
10600
|
-
|
10601
9925
|
# 引用来源详情
|
10602
9926
|
class ReferDetail < TencentCloud::Common::AbstractModel
|
10603
9927
|
# @param ReferBizId: 引用ID
|
@@ -11170,77 +10494,6 @@ module TencentCloud
|
|
11170
10494
|
end
|
11171
10495
|
end
|
11172
10496
|
|
11173
|
-
# RunReRank请求参数结构体
|
11174
|
-
class RunReRankRequest < TencentCloud::Common::AbstractModel
|
11175
|
-
# @param Query: 查询内容,必填
|
11176
|
-
# @type Query: String
|
11177
|
-
# @param Docs: 文档列表,必填,最多20个
|
11178
|
-
# @type Docs: Array
|
11179
|
-
# @param Model: 模型名称, 非必填,默认: lke-reranker-base
|
11180
|
-
# @type Model: String
|
11181
|
-
# @param DataList: 需要计算关联性的2段内容
|
11182
|
-
# @type DataList: Array
|
11183
|
-
# @param Online: 是否在线, 后台异步任务使用离线, 实时任务使用在线, 默认值: false
|
11184
|
-
# @type Online: Boolean
|
11185
|
-
|
11186
|
-
attr_accessor :Query, :Docs, :Model, :DataList, :Online
|
11187
|
-
extend Gem::Deprecate
|
11188
|
-
deprecate :DataList, :none, 2025, 7
|
11189
|
-
deprecate :DataList=, :none, 2025, 7
|
11190
|
-
deprecate :Online, :none, 2025, 7
|
11191
|
-
deprecate :Online=, :none, 2025, 7
|
11192
|
-
|
11193
|
-
def initialize(query=nil, docs=nil, model=nil, datalist=nil, online=nil)
|
11194
|
-
@Query = query
|
11195
|
-
@Docs = docs
|
11196
|
-
@Model = model
|
11197
|
-
@DataList = datalist
|
11198
|
-
@Online = online
|
11199
|
-
end
|
11200
|
-
|
11201
|
-
def deserialize(params)
|
11202
|
-
@Query = params['Query']
|
11203
|
-
@Docs = params['Docs']
|
11204
|
-
@Model = params['Model']
|
11205
|
-
unless params['DataList'].nil?
|
11206
|
-
@DataList = []
|
11207
|
-
params['DataList'].each do |i|
|
11208
|
-
rerankdataobject_tmp = ReRankDataObject.new
|
11209
|
-
rerankdataobject_tmp.deserialize(i)
|
11210
|
-
@DataList << rerankdataobject_tmp
|
11211
|
-
end
|
11212
|
-
end
|
11213
|
-
@Online = params['Online']
|
11214
|
-
end
|
11215
|
-
end
|
11216
|
-
|
11217
|
-
# RunReRank返回参数结构体
|
11218
|
-
class RunReRankResponse < TencentCloud::Common::AbstractModel
|
11219
|
-
# @param ScoreList: 相关性, 数值越大越相关
|
11220
|
-
# @type ScoreList: Array
|
11221
|
-
# @param Usage: 消耗量,仅返回TotalToken
|
11222
|
-
# @type Usage: :class:`Tencentcloud::Lke.v20231130.models.Usage`
|
11223
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11224
|
-
# @type RequestId: String
|
11225
|
-
|
11226
|
-
attr_accessor :ScoreList, :Usage, :RequestId
|
11227
|
-
|
11228
|
-
def initialize(scorelist=nil, usage=nil, requestid=nil)
|
11229
|
-
@ScoreList = scorelist
|
11230
|
-
@Usage = usage
|
11231
|
-
@RequestId = requestid
|
11232
|
-
end
|
11233
|
-
|
11234
|
-
def deserialize(params)
|
11235
|
-
@ScoreList = params['ScoreList']
|
11236
|
-
unless params['Usage'].nil?
|
11237
|
-
@Usage = Usage.new
|
11238
|
-
@Usage.deserialize(params['Usage'])
|
11239
|
-
end
|
11240
|
-
@RequestId = params['RequestId']
|
11241
|
-
end
|
11242
|
-
end
|
11243
|
-
|
11244
10497
|
# SaveDoc请求参数结构体
|
11245
10498
|
class SaveDocRequest < TencentCloud::Common::AbstractModel
|
11246
10499
|
# @param BotBizId: 应用ID
|
@@ -12156,34 +11409,6 @@ module TencentCloud
|
|
12156
11409
|
end
|
12157
11410
|
end
|
12158
11411
|
|
12159
|
-
# 消耗量
|
12160
|
-
class Usage < TencentCloud::Common::AbstractModel
|
12161
|
-
# @param TotalPages: 文档页数
|
12162
|
-
# @type TotalPages: Integer
|
12163
|
-
# @param InputTokens: 输入token数
|
12164
|
-
# @type InputTokens: Integer
|
12165
|
-
# @param OutputTokens: 输出token数
|
12166
|
-
# @type OutputTokens: Integer
|
12167
|
-
# @param TotalTokens: 总token数
|
12168
|
-
# @type TotalTokens: Integer
|
12169
|
-
|
12170
|
-
attr_accessor :TotalPages, :InputTokens, :OutputTokens, :TotalTokens
|
12171
|
-
|
12172
|
-
def initialize(totalpages=nil, inputtokens=nil, outputtokens=nil, totaltokens=nil)
|
12173
|
-
@TotalPages = totalpages
|
12174
|
-
@InputTokens = inputtokens
|
12175
|
-
@OutputTokens = outputtokens
|
12176
|
-
@TotalTokens = totaltokens
|
12177
|
-
end
|
12178
|
-
|
12179
|
-
def deserialize(params)
|
12180
|
-
@TotalPages = params['TotalPages']
|
12181
|
-
@InputTokens = params['InputTokens']
|
12182
|
-
@OutputTokens = params['OutputTokens']
|
12183
|
-
@TotalTokens = params['TotalTokens']
|
12184
|
-
end
|
12185
|
-
end
|
12186
|
-
|
12187
11412
|
# 用户基础信息
|
12188
11413
|
class UserBaseInfo < TencentCloud::Common::AbstractModel
|
12189
11414
|
# @param UserBizId: 用户ID
|
@@ -12335,28 +11560,6 @@ module TencentCloud
|
|
12335
11560
|
end
|
12336
11561
|
end
|
12337
11562
|
|
12338
|
-
# 解析为 word 文档的结果
|
12339
|
-
class WordRecognizeInfo < TencentCloud::Common::AbstractModel
|
12340
|
-
# @param PageNumber: 输入文件的页码数
|
12341
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
12342
|
-
# @type PageNumber: Integer
|
12343
|
-
# @param WordBase64: word的base64
|
12344
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
12345
|
-
# @type WordBase64: String
|
12346
|
-
|
12347
|
-
attr_accessor :PageNumber, :WordBase64
|
12348
|
-
|
12349
|
-
def initialize(pagenumber=nil, wordbase64=nil)
|
12350
|
-
@PageNumber = pagenumber
|
12351
|
-
@WordBase64 = wordbase64
|
12352
|
-
end
|
12353
|
-
|
12354
|
-
def deserialize(params)
|
12355
|
-
@PageNumber = params['PageNumber']
|
12356
|
-
@WordBase64 = params['WordBase64']
|
12357
|
-
end
|
12358
|
-
end
|
12359
|
-
|
12360
11563
|
# 工作流程调试信息
|
12361
11564
|
class WorkFlowSummary < TencentCloud::Common::AbstractModel
|
12362
11565
|
# @param WorkflowId: 工作流ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-lke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1101
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|