tencentcloud-sdk-lke 3.0.811 → 3.0.812
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 +48 -0
- data/lib/v20231130/models.rb +306 -20
- 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: ce5e20606094d5ac9fa1ffa1eba51e0d95523fcd
|
4
|
+
data.tar.gz: bfc857934ce678806796360592bb185420ad54f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7777cec9786970e51ea07f2fdf0ac11aa6cd9422dac069e8f77666f203cfc2cb363f0e799a1f380ba6d7b2ba908a74a1df52c4056f2335cd8f6734b888c31f12
|
7
|
+
data.tar.gz: b074e0570e5f49b969af90ff324b36cb8a8c98c683842a56cdb2d104d7904d45a4c5ddd27183f7b72498e9ba0a459769b42595ac836dd284a336b30c8bdaeb12
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.812
|
data/lib/v20231130/client.rb
CHANGED
@@ -1542,6 +1542,54 @@ module TencentCloud
|
|
1542
1542
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1543
1543
|
end
|
1544
1544
|
|
1545
|
+
# 解析拆分文档。该接口需开通文档解析原子能力后调用。文档解析原子能力内测中,如有需要请联系架构师或 [联系客服](https://cloud.tencent.com/act/event/Online_service) 。
|
1546
|
+
|
1547
|
+
# @param request: Request instance for ParseDoc.
|
1548
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::ParseDocRequest`
|
1549
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::ParseDocResponse`
|
1550
|
+
def ParseDoc(request)
|
1551
|
+
body = send_request('ParseDoc', request.serialize)
|
1552
|
+
response = JSON.parse(body)
|
1553
|
+
if response['Response'].key?('Error') == false
|
1554
|
+
model = ParseDocResponse.new
|
1555
|
+
model.deserialize(response['Response'])
|
1556
|
+
model
|
1557
|
+
else
|
1558
|
+
code = response['Response']['Error']['Code']
|
1559
|
+
message = response['Response']['Error']['Message']
|
1560
|
+
reqid = response['Response']['RequestId']
|
1561
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1562
|
+
end
|
1563
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1564
|
+
raise e
|
1565
|
+
rescue StandardError => e
|
1566
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1567
|
+
end
|
1568
|
+
|
1569
|
+
# 查询文档解析结果。该接口需开通文档解析原子能力后调用。文档解析原子能力内测中,如有需要请联系架构师或[联系客服](https://cloud.tencent.com/act/event/Online_service) 。
|
1570
|
+
|
1571
|
+
# @param request: Request instance for QueryParseDocResult.
|
1572
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::QueryParseDocResultRequest`
|
1573
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::QueryParseDocResultResponse`
|
1574
|
+
def QueryParseDocResult(request)
|
1575
|
+
body = send_request('QueryParseDocResult', request.serialize)
|
1576
|
+
response = JSON.parse(body)
|
1577
|
+
if response['Response'].key?('Error') == false
|
1578
|
+
model = QueryParseDocResultResponse.new
|
1579
|
+
model.deserialize(response['Response'])
|
1580
|
+
model
|
1581
|
+
else
|
1582
|
+
code = response['Response']['Error']['Code']
|
1583
|
+
message = response['Response']['Error']['Message']
|
1584
|
+
reqid = response['Response']['RequestId']
|
1585
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1586
|
+
end
|
1587
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1588
|
+
raise e
|
1589
|
+
rescue StandardError => e
|
1590
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1591
|
+
end
|
1592
|
+
|
1545
1593
|
# 多轮改写
|
1546
1594
|
# 本接口有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
1547
1595
|
|
data/lib/v20231130/models.rb
CHANGED
@@ -445,12 +445,16 @@ module TencentCloud
|
|
445
445
|
# @param Labels: 标签列表
|
446
446
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
447
447
|
# @type Labels: Array
|
448
|
+
# @param Greeting: 欢迎语,200字符以内
|
449
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
450
|
+
# @type Greeting: String
|
448
451
|
|
449
|
-
attr_accessor :Model, :Labels
|
452
|
+
attr_accessor :Model, :Labels, :Greeting
|
450
453
|
|
451
|
-
def initialize(model=nil, labels=nil)
|
454
|
+
def initialize(model=nil, labels=nil, greeting=nil)
|
452
455
|
@Model = model
|
453
456
|
@Labels = labels
|
457
|
+
@Greeting = greeting
|
454
458
|
end
|
455
459
|
|
456
460
|
def deserialize(params)
|
@@ -466,6 +470,7 @@ module TencentCloud
|
|
466
470
|
@Labels << classifylabel_tmp
|
467
471
|
end
|
468
472
|
end
|
473
|
+
@Greeting = params['Greeting']
|
469
474
|
end
|
470
475
|
end
|
471
476
|
|
@@ -1207,12 +1212,16 @@ module TencentCloud
|
|
1207
1212
|
# @type BareAnswerInAppeal: Boolean
|
1208
1213
|
# @param AppKey: 应用appKey
|
1209
1214
|
# @type AppKey: String
|
1215
|
+
# @param AppStatus: 应用状态,1:未上线,2:运行中,3:停用
|
1216
|
+
# @type AppStatus: Integer
|
1217
|
+
# @param AppStatusDesc: 状态说明
|
1218
|
+
# @type AppStatusDesc: String
|
1210
1219
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1211
1220
|
# @type RequestId: String
|
1212
1221
|
|
1213
|
-
attr_accessor :AppBizId, :AppType, :AppTypeDesc, :BaseConfig, :AppConfig, :AvatarInAppeal, :RoleInAppeal, :NameInAppeal, :GreetingInAppeal, :BareAnswerInAppeal, :AppKey, :RequestId
|
1222
|
+
attr_accessor :AppBizId, :AppType, :AppTypeDesc, :BaseConfig, :AppConfig, :AvatarInAppeal, :RoleInAppeal, :NameInAppeal, :GreetingInAppeal, :BareAnswerInAppeal, :AppKey, :AppStatus, :AppStatusDesc, :RequestId
|
1214
1223
|
|
1215
|
-
def initialize(appbizid=nil, apptype=nil, apptypedesc=nil, baseconfig=nil, appconfig=nil, avatarinappeal=nil, roleinappeal=nil, nameinappeal=nil, greetinginappeal=nil, bareanswerinappeal=nil, appkey=nil, requestid=nil)
|
1224
|
+
def initialize(appbizid=nil, apptype=nil, apptypedesc=nil, baseconfig=nil, appconfig=nil, avatarinappeal=nil, roleinappeal=nil, nameinappeal=nil, greetinginappeal=nil, bareanswerinappeal=nil, appkey=nil, appstatus=nil, appstatusdesc=nil, requestid=nil)
|
1216
1225
|
@AppBizId = appbizid
|
1217
1226
|
@AppType = apptype
|
1218
1227
|
@AppTypeDesc = apptypedesc
|
@@ -1224,6 +1233,8 @@ module TencentCloud
|
|
1224
1233
|
@GreetingInAppeal = greetinginappeal
|
1225
1234
|
@BareAnswerInAppeal = bareanswerinappeal
|
1226
1235
|
@AppKey = appkey
|
1236
|
+
@AppStatus = appstatus
|
1237
|
+
@AppStatusDesc = appstatusdesc
|
1227
1238
|
@RequestId = requestid
|
1228
1239
|
end
|
1229
1240
|
|
@@ -1245,6 +1256,8 @@ module TencentCloud
|
|
1245
1256
|
@GreetingInAppeal = params['GreetingInAppeal']
|
1246
1257
|
@BareAnswerInAppeal = params['BareAnswerInAppeal']
|
1247
1258
|
@AppKey = params['AppKey']
|
1259
|
+
@AppStatus = params['AppStatus']
|
1260
|
+
@AppStatusDesc = params['AppStatusDesc']
|
1248
1261
|
@RequestId = params['RequestId']
|
1249
1262
|
end
|
1250
1263
|
end
|
@@ -1847,15 +1860,23 @@ module TencentCloud
|
|
1847
1860
|
class DescribeStorageCredentialRequest < TencentCloud::Common::AbstractModel
|
1848
1861
|
# @param BotBizId: 机器人ID
|
1849
1862
|
# @type BotBizId: String
|
1863
|
+
# @param FileType: 文件类型
|
1864
|
+
# @type FileType: String
|
1865
|
+
# @param IsPublic: 权限场景,是否公有权限
|
1866
|
+
# @type IsPublic: Boolean
|
1850
1867
|
|
1851
|
-
attr_accessor :BotBizId
|
1868
|
+
attr_accessor :BotBizId, :FileType, :IsPublic
|
1852
1869
|
|
1853
|
-
def initialize(botbizid=nil)
|
1870
|
+
def initialize(botbizid=nil, filetype=nil, ispublic=nil)
|
1854
1871
|
@BotBizId = botbizid
|
1872
|
+
@FileType = filetype
|
1873
|
+
@IsPublic = ispublic
|
1855
1874
|
end
|
1856
1875
|
|
1857
1876
|
def deserialize(params)
|
1858
1877
|
@BotBizId = params['BotBizId']
|
1878
|
+
@FileType = params['FileType']
|
1879
|
+
@IsPublic = params['IsPublic']
|
1859
1880
|
end
|
1860
1881
|
end
|
1861
1882
|
|
@@ -1879,12 +1900,14 @@ module TencentCloud
|
|
1879
1900
|
# @type CorpUin: String
|
1880
1901
|
# @param ImagePath: 图片存储目录
|
1881
1902
|
# @type ImagePath: String
|
1903
|
+
# @param UploadPath: 上传存储目录
|
1904
|
+
# @type UploadPath: String
|
1882
1905
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1883
1906
|
# @type RequestId: String
|
1884
1907
|
|
1885
|
-
attr_accessor :Credentials, :ExpiredTime, :StartTime, :Bucket, :Region, :FilePath, :Type, :CorpUin, :ImagePath, :RequestId
|
1908
|
+
attr_accessor :Credentials, :ExpiredTime, :StartTime, :Bucket, :Region, :FilePath, :Type, :CorpUin, :ImagePath, :UploadPath, :RequestId
|
1886
1909
|
|
1887
|
-
def initialize(credentials=nil, expiredtime=nil, starttime=nil, bucket=nil, region=nil, filepath=nil, type=nil, corpuin=nil, imagepath=nil, requestid=nil)
|
1910
|
+
def initialize(credentials=nil, expiredtime=nil, starttime=nil, bucket=nil, region=nil, filepath=nil, type=nil, corpuin=nil, imagepath=nil, uploadpath=nil, requestid=nil)
|
1888
1911
|
@Credentials = credentials
|
1889
1912
|
@ExpiredTime = expiredtime
|
1890
1913
|
@StartTime = starttime
|
@@ -1894,6 +1917,7 @@ module TencentCloud
|
|
1894
1917
|
@Type = type
|
1895
1918
|
@CorpUin = corpuin
|
1896
1919
|
@ImagePath = imagepath
|
1920
|
+
@UploadPath = uploadpath
|
1897
1921
|
@RequestId = requestid
|
1898
1922
|
end
|
1899
1923
|
|
@@ -1910,6 +1934,7 @@ module TencentCloud
|
|
1910
1934
|
@Type = params['Type']
|
1911
1935
|
@CorpUin = params['CorpUin']
|
1912
1936
|
@ImagePath = params['ImagePath']
|
1937
|
+
@UploadPath = params['UploadPath']
|
1913
1938
|
@RequestId = params['RequestId']
|
1914
1939
|
end
|
1915
1940
|
end
|
@@ -2414,15 +2439,18 @@ module TencentCloud
|
|
2414
2439
|
# @type LastRecordId: String
|
2415
2440
|
# @param BotAppKey: 机器人AppKey
|
2416
2441
|
# @type BotAppKey: String
|
2442
|
+
# @param Scene: 场景, 体验: 1; 正式: 2
|
2443
|
+
# @type Scene: Integer
|
2417
2444
|
|
2418
|
-
attr_accessor :Type, :Count, :SessionId, :LastRecordId, :BotAppKey
|
2445
|
+
attr_accessor :Type, :Count, :SessionId, :LastRecordId, :BotAppKey, :Scene
|
2419
2446
|
|
2420
|
-
def initialize(type=nil, count=nil, sessionid=nil, lastrecordid=nil, botappkey=nil)
|
2447
|
+
def initialize(type=nil, count=nil, sessionid=nil, lastrecordid=nil, botappkey=nil, scene=nil)
|
2421
2448
|
@Type = type
|
2422
2449
|
@Count = count
|
2423
2450
|
@SessionId = sessionid
|
2424
2451
|
@LastRecordId = lastrecordid
|
2425
2452
|
@BotAppKey = botappkey
|
2453
|
+
@Scene = scene
|
2426
2454
|
end
|
2427
2455
|
|
2428
2456
|
def deserialize(params)
|
@@ -2431,6 +2459,7 @@ module TencentCloud
|
|
2431
2459
|
@SessionId = params['SessionId']
|
2432
2460
|
@LastRecordId = params['LastRecordId']
|
2433
2461
|
@BotAppKey = params['BotAppKey']
|
2462
|
+
@Scene = params['Scene']
|
2434
2463
|
end
|
2435
2464
|
end
|
2436
2465
|
|
@@ -2438,13 +2467,17 @@ module TencentCloud
|
|
2438
2467
|
class GetMsgRecordResponse < TencentCloud::Common::AbstractModel
|
2439
2468
|
# @param Records: 会话记录
|
2440
2469
|
# @type Records: Array
|
2470
|
+
# @param SessionDisassociatedTimestamp: session 清除关联上下文时间, 单位 ms
|
2471
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2472
|
+
# @type SessionDisassociatedTimestamp: String
|
2441
2473
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2442
2474
|
# @type RequestId: String
|
2443
2475
|
|
2444
|
-
attr_accessor :Records, :RequestId
|
2476
|
+
attr_accessor :Records, :SessionDisassociatedTimestamp, :RequestId
|
2445
2477
|
|
2446
|
-
def initialize(records=nil, requestid=nil)
|
2478
|
+
def initialize(records=nil, sessiondisassociatedtimestamp=nil, requestid=nil)
|
2447
2479
|
@Records = records
|
2480
|
+
@SessionDisassociatedTimestamp = sessiondisassociatedtimestamp
|
2448
2481
|
@RequestId = requestid
|
2449
2482
|
end
|
2450
2483
|
|
@@ -2457,6 +2490,7 @@ module TencentCloud
|
|
2457
2490
|
@Records << msgrecord_tmp
|
2458
2491
|
end
|
2459
2492
|
end
|
2493
|
+
@SessionDisassociatedTimestamp = params['SessionDisassociatedTimestamp']
|
2460
2494
|
@RequestId = params['RequestId']
|
2461
2495
|
end
|
2462
2496
|
end
|
@@ -2817,19 +2851,34 @@ module TencentCloud
|
|
2817
2851
|
# @param BareAnswer: 未知回复语,300字符以内
|
2818
2852
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2819
2853
|
# @type BareAnswer: String
|
2854
|
+
# @param ShowQuestionClarify: 是否展示问题澄清开关
|
2855
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2856
|
+
# @type ShowQuestionClarify: Boolean
|
2857
|
+
# @param UseQuestionClarify: 是否打开问题澄清
|
2858
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2859
|
+
# @type UseQuestionClarify: Boolean
|
2860
|
+
# @param QuestionClarifyKeywords: 问题澄清关键词列表
|
2861
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2862
|
+
# @type QuestionClarifyKeywords: Array
|
2820
2863
|
|
2821
|
-
attr_accessor :Method, :UseGeneralKnowledge, :BareAnswer
|
2864
|
+
attr_accessor :Method, :UseGeneralKnowledge, :BareAnswer, :ShowQuestionClarify, :UseQuestionClarify, :QuestionClarifyKeywords
|
2822
2865
|
|
2823
|
-
def initialize(method=nil, usegeneralknowledge=nil, bareanswer=nil)
|
2866
|
+
def initialize(method=nil, usegeneralknowledge=nil, bareanswer=nil, showquestionclarify=nil, usequestionclarify=nil, questionclarifykeywords=nil)
|
2824
2867
|
@Method = method
|
2825
2868
|
@UseGeneralKnowledge = usegeneralknowledge
|
2826
2869
|
@BareAnswer = bareanswer
|
2870
|
+
@ShowQuestionClarify = showquestionclarify
|
2871
|
+
@UseQuestionClarify = usequestionclarify
|
2872
|
+
@QuestionClarifyKeywords = questionclarifykeywords
|
2827
2873
|
end
|
2828
2874
|
|
2829
2875
|
def deserialize(params)
|
2830
2876
|
@Method = params['Method']
|
2831
2877
|
@UseGeneralKnowledge = params['UseGeneralKnowledge']
|
2832
2878
|
@BareAnswer = params['BareAnswer']
|
2879
|
+
@ShowQuestionClarify = params['ShowQuestionClarify']
|
2880
|
+
@UseQuestionClarify = params['UseQuestionClarify']
|
2881
|
+
@QuestionClarifyKeywords = params['QuestionClarifyKeywords']
|
2833
2882
|
end
|
2834
2883
|
end
|
2835
2884
|
|
@@ -4738,10 +4787,15 @@ module TencentCloud
|
|
4738
4787
|
# @type Reasons: Array
|
4739
4788
|
# @param IsLlmGenerated: 是否大模型
|
4740
4789
|
# @type IsLlmGenerated: Boolean
|
4790
|
+
# @param ImageUrls: 图片链接,可公有读
|
4791
|
+
# @type ImageUrls: Array
|
4792
|
+
# @param TokenStat: 当次 token 统计信息
|
4793
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4794
|
+
# @type TokenStat: :class:`Tencentcloud::Lke.v20231130.models.TokenStat`
|
4741
4795
|
|
4742
|
-
attr_accessor :Content, :RecordId, :RelatedRecordId, :IsFromSelf, :FromName, :FromAvatar, :Timestamp, :HasRead, :Score, :CanRating, :Type, :References, :Reasons, :IsLlmGenerated
|
4796
|
+
attr_accessor :Content, :RecordId, :RelatedRecordId, :IsFromSelf, :FromName, :FromAvatar, :Timestamp, :HasRead, :Score, :CanRating, :Type, :References, :Reasons, :IsLlmGenerated, :ImageUrls, :TokenStat
|
4743
4797
|
|
4744
|
-
def initialize(content=nil, recordid=nil, relatedrecordid=nil, isfromself=nil, fromname=nil, fromavatar=nil, timestamp=nil, hasread=nil, score=nil, canrating=nil, type=nil, references=nil, reasons=nil, isllmgenerated=nil)
|
4798
|
+
def initialize(content=nil, recordid=nil, relatedrecordid=nil, isfromself=nil, fromname=nil, fromavatar=nil, timestamp=nil, hasread=nil, score=nil, canrating=nil, type=nil, references=nil, reasons=nil, isllmgenerated=nil, imageurls=nil, tokenstat=nil)
|
4745
4799
|
@Content = content
|
4746
4800
|
@RecordId = recordid
|
4747
4801
|
@RelatedRecordId = relatedrecordid
|
@@ -4756,6 +4810,8 @@ module TencentCloud
|
|
4756
4810
|
@References = references
|
4757
4811
|
@Reasons = reasons
|
4758
4812
|
@IsLlmGenerated = isllmgenerated
|
4813
|
+
@ImageUrls = imageurls
|
4814
|
+
@TokenStat = tokenstat
|
4759
4815
|
end
|
4760
4816
|
|
4761
4817
|
def deserialize(params)
|
@@ -4780,6 +4836,11 @@ module TencentCloud
|
|
4780
4836
|
end
|
4781
4837
|
@Reasons = params['Reasons']
|
4782
4838
|
@IsLlmGenerated = params['IsLlmGenerated']
|
4839
|
+
@ImageUrls = params['ImageUrls']
|
4840
|
+
unless params['TokenStat'].nil?
|
4841
|
+
@TokenStat = TokenStat.new
|
4842
|
+
@TokenStat.deserialize(params['TokenStat'])
|
4843
|
+
end
|
4783
4844
|
end
|
4784
4845
|
end
|
4785
4846
|
|
@@ -4847,6 +4908,93 @@ module TencentCloud
|
|
4847
4908
|
end
|
4848
4909
|
end
|
4849
4910
|
|
4911
|
+
# ParseDoc请求参数结构体
|
4912
|
+
class ParseDocRequest < TencentCloud::Common::AbstractModel
|
4913
|
+
# @param Name: 文件名称(需要包括文件后缀, 最大长度1024字节)
|
4914
|
+
# @type Name: String
|
4915
|
+
# @param Url: 文件下载链接 (支持的文件类型: docx, txt, markdown, pdf)
|
4916
|
+
# @type Url: String
|
4917
|
+
# @param TaskId: 任务ID, 用于幂等去重, 业务自行定义(最大长度64字节)
|
4918
|
+
# @type TaskId: String
|
4919
|
+
# @param Policy: 切分策略
|
4920
|
+
# @type Policy: String
|
4921
|
+
# @param Operate: 默认值: parse
|
4922
|
+
# @type Operate: String
|
4923
|
+
|
4924
|
+
attr_accessor :Name, :Url, :TaskId, :Policy, :Operate
|
4925
|
+
extend Gem::Deprecate
|
4926
|
+
deprecate :Operate, :none, 2024, 4
|
4927
|
+
deprecate :Operate=, :none, 2024, 4
|
4928
|
+
|
4929
|
+
def initialize(name=nil, url=nil, taskid=nil, policy=nil, operate=nil)
|
4930
|
+
@Name = name
|
4931
|
+
@Url = url
|
4932
|
+
@TaskId = taskid
|
4933
|
+
@Policy = policy
|
4934
|
+
@Operate = operate
|
4935
|
+
end
|
4936
|
+
|
4937
|
+
def deserialize(params)
|
4938
|
+
@Name = params['Name']
|
4939
|
+
@Url = params['Url']
|
4940
|
+
@TaskId = params['TaskId']
|
4941
|
+
@Policy = params['Policy']
|
4942
|
+
@Operate = params['Operate']
|
4943
|
+
end
|
4944
|
+
end
|
4945
|
+
|
4946
|
+
# ParseDoc返回参数结构体
|
4947
|
+
class ParseDocResponse < TencentCloud::Common::AbstractModel
|
4948
|
+
# @param TaskId: 任务ID
|
4949
|
+
# @type TaskId: String
|
4950
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4951
|
+
# @type RequestId: String
|
4952
|
+
|
4953
|
+
attr_accessor :TaskId, :RequestId
|
4954
|
+
|
4955
|
+
def initialize(taskid=nil, requestid=nil)
|
4956
|
+
@TaskId = taskid
|
4957
|
+
@RequestId = requestid
|
4958
|
+
end
|
4959
|
+
|
4960
|
+
def deserialize(params)
|
4961
|
+
@TaskId = params['TaskId']
|
4962
|
+
@RequestId = params['RequestId']
|
4963
|
+
end
|
4964
|
+
end
|
4965
|
+
|
4966
|
+
# 执行过程信息记录
|
4967
|
+
class Procedure < TencentCloud::Common::AbstractModel
|
4968
|
+
# @param Name: 执行过程英语名
|
4969
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4970
|
+
# @type Name: String
|
4971
|
+
# @param Title: 中文名, 用于展示
|
4972
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4973
|
+
# @type Title: String
|
4974
|
+
# @param Status: 状态常量: 使用中: processing, 成功: success, 失败: failed
|
4975
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4976
|
+
# @type Status: String
|
4977
|
+
# @param Count: 消耗 token 数
|
4978
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4979
|
+
# @type Count: Integer
|
4980
|
+
|
4981
|
+
attr_accessor :Name, :Title, :Status, :Count
|
4982
|
+
|
4983
|
+
def initialize(name=nil, title=nil, status=nil, count=nil)
|
4984
|
+
@Name = name
|
4985
|
+
@Title = title
|
4986
|
+
@Status = status
|
4987
|
+
@Count = count
|
4988
|
+
end
|
4989
|
+
|
4990
|
+
def deserialize(params)
|
4991
|
+
@Name = params['Name']
|
4992
|
+
@Title = params['Title']
|
4993
|
+
@Status = params['Status']
|
4994
|
+
@Count = params['Count']
|
4995
|
+
end
|
4996
|
+
end
|
4997
|
+
|
4850
4998
|
# 获取QA分类分组
|
4851
4999
|
class QACate < TencentCloud::Common::AbstractModel
|
4852
5000
|
# @param CateBizId: QA分类的业务ID
|
@@ -4995,6 +5143,61 @@ module TencentCloud
|
|
4995
5143
|
end
|
4996
5144
|
end
|
4997
5145
|
|
5146
|
+
# QueryParseDocResult请求参数结构体
|
5147
|
+
class QueryParseDocResultRequest < TencentCloud::Common::AbstractModel
|
5148
|
+
# @param TaskId: 任务ID
|
5149
|
+
# @type TaskId: String
|
5150
|
+
|
5151
|
+
attr_accessor :TaskId
|
5152
|
+
|
5153
|
+
def initialize(taskid=nil)
|
5154
|
+
@TaskId = taskid
|
5155
|
+
end
|
5156
|
+
|
5157
|
+
def deserialize(params)
|
5158
|
+
@TaskId = params['TaskId']
|
5159
|
+
end
|
5160
|
+
end
|
5161
|
+
|
5162
|
+
# QueryParseDocResult返回参数结构体
|
5163
|
+
class QueryParseDocResultResponse < TencentCloud::Common::AbstractModel
|
5164
|
+
# @param Status: 等待 / 执行中 / 成功 / 失败
|
5165
|
+
# @type Status: String
|
5166
|
+
# @param Name: 解析后的文件内容
|
5167
|
+
# @type Name: String
|
5168
|
+
# @param Url: 文件下载地址
|
5169
|
+
# @type Url: String
|
5170
|
+
# @param Reason: 解析失败原因
|
5171
|
+
# @type Reason: String
|
5172
|
+
# @param Usage: 消耗量,输出页数
|
5173
|
+
# @type Usage: :class:`Tencentcloud::Lke.v20231130.models.Usage`
|
5174
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5175
|
+
# @type RequestId: String
|
5176
|
+
|
5177
|
+
attr_accessor :Status, :Name, :Url, :Reason, :Usage, :RequestId
|
5178
|
+
|
5179
|
+
def initialize(status=nil, name=nil, url=nil, reason=nil, usage=nil, requestid=nil)
|
5180
|
+
@Status = status
|
5181
|
+
@Name = name
|
5182
|
+
@Url = url
|
5183
|
+
@Reason = reason
|
5184
|
+
@Usage = usage
|
5185
|
+
@RequestId = requestid
|
5186
|
+
end
|
5187
|
+
|
5188
|
+
def deserialize(params)
|
5189
|
+
@Status = params['Status']
|
5190
|
+
@Name = params['Name']
|
5191
|
+
@Url = params['Url']
|
5192
|
+
@Reason = params['Reason']
|
5193
|
+
unless params['Usage'].nil?
|
5194
|
+
@Usage = Usage.new
|
5195
|
+
@Usage.deserialize(params['Usage'])
|
5196
|
+
end
|
5197
|
+
@RequestId = params['RequestId']
|
5198
|
+
end
|
5199
|
+
end
|
5200
|
+
|
4998
5201
|
# QueryRewrite请求参数结构体
|
4999
5202
|
class QueryRewriteRequest < TencentCloud::Common::AbstractModel
|
5000
5203
|
# @param Question: 需要改写的问题
|
@@ -5407,15 +5610,19 @@ module TencentCloud
|
|
5407
5610
|
class ResetSessionRequest < TencentCloud::Common::AbstractModel
|
5408
5611
|
# @param SessionId: 会话ID
|
5409
5612
|
# @type SessionId: String
|
5613
|
+
# @param IsOnlyEmptyTheDialog: 是否仅清空会话关联
|
5614
|
+
# @type IsOnlyEmptyTheDialog: Boolean
|
5410
5615
|
|
5411
|
-
attr_accessor :SessionId
|
5616
|
+
attr_accessor :SessionId, :IsOnlyEmptyTheDialog
|
5412
5617
|
|
5413
|
-
def initialize(sessionid=nil)
|
5618
|
+
def initialize(sessionid=nil, isonlyemptythedialog=nil)
|
5414
5619
|
@SessionId = sessionid
|
5620
|
+
@IsOnlyEmptyTheDialog = isonlyemptythedialog
|
5415
5621
|
end
|
5416
5622
|
|
5417
5623
|
def deserialize(params)
|
5418
5624
|
@SessionId = params['SessionId']
|
5625
|
+
@IsOnlyEmptyTheDialog = params['IsOnlyEmptyTheDialog']
|
5419
5626
|
end
|
5420
5627
|
end
|
5421
5628
|
|
@@ -5703,12 +5910,16 @@ module TencentCloud
|
|
5703
5910
|
# @param Output: 知识摘要输出配置
|
5704
5911
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
5705
5912
|
# @type Output: :class:`Tencentcloud::Lke.v20231130.models.SummaryOutput`
|
5913
|
+
# @param Greeting: 欢迎语,200字符以内
|
5914
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5915
|
+
# @type Greeting: String
|
5706
5916
|
|
5707
|
-
attr_accessor :Model, :Output
|
5917
|
+
attr_accessor :Model, :Output, :Greeting
|
5708
5918
|
|
5709
|
-
def initialize(model=nil, output=nil)
|
5919
|
+
def initialize(model=nil, output=nil, greeting=nil)
|
5710
5920
|
@Model = model
|
5711
5921
|
@Output = output
|
5922
|
+
@Greeting = greeting
|
5712
5923
|
end
|
5713
5924
|
|
5714
5925
|
def deserialize(params)
|
@@ -5720,6 +5931,7 @@ module TencentCloud
|
|
5720
5931
|
@Output = SummaryOutput.new
|
5721
5932
|
@Output.deserialize(params['Output'])
|
5722
5933
|
end
|
5934
|
+
@Greeting = params['Greeting']
|
5723
5935
|
end
|
5724
5936
|
end
|
5725
5937
|
|
@@ -5767,6 +5979,80 @@ module TencentCloud
|
|
5767
5979
|
end
|
5768
5980
|
end
|
5769
5981
|
|
5982
|
+
# 当前执行的 token 统计信息
|
5983
|
+
class TokenStat < TencentCloud::Common::AbstractModel
|
5984
|
+
# @param SessionId: 会话 ID
|
5985
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5986
|
+
# @type SessionId: String
|
5987
|
+
# @param RequestId: 请求 ID
|
5988
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5989
|
+
# @type RequestId: String
|
5990
|
+
# @param RecordId: 对应哪条会话, 会话 ID, 用于回答的消息存储使用, 可提前生成, 保存消息时使用
|
5991
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5992
|
+
# @type RecordId: String
|
5993
|
+
# @param UsedCount: token 已使用数
|
5994
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5995
|
+
# @type UsedCount: Integer
|
5996
|
+
# @param FreeCount: 免费 token 数
|
5997
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5998
|
+
# @type FreeCount: Integer
|
5999
|
+
# @param OrderCount: 订单总 token 数
|
6000
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6001
|
+
# @type OrderCount: Integer
|
6002
|
+
# @param StatusSummary: 当前执行状态汇总, 常量: 使用中: processing, 成功: success, 失败: failed
|
6003
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6004
|
+
# @type StatusSummary: String
|
6005
|
+
# @param StatusSummaryTitle: 当前执行状态汇总后中文展示
|
6006
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6007
|
+
# @type StatusSummaryTitle: String
|
6008
|
+
# @param Elapsed: 当前请求执行时间, 单位 ms
|
6009
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6010
|
+
# @type Elapsed: Integer
|
6011
|
+
# @param TokenCount: 当前请求消耗 token 数
|
6012
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6013
|
+
# @type TokenCount: Integer
|
6014
|
+
# @param Procedures: 执行过程信息
|
6015
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6016
|
+
# @type Procedures: Array
|
6017
|
+
|
6018
|
+
attr_accessor :SessionId, :RequestId, :RecordId, :UsedCount, :FreeCount, :OrderCount, :StatusSummary, :StatusSummaryTitle, :Elapsed, :TokenCount, :Procedures
|
6019
|
+
|
6020
|
+
def initialize(sessionid=nil, requestid=nil, recordid=nil, usedcount=nil, freecount=nil, ordercount=nil, statussummary=nil, statussummarytitle=nil, elapsed=nil, tokencount=nil, procedures=nil)
|
6021
|
+
@SessionId = sessionid
|
6022
|
+
@RequestId = requestid
|
6023
|
+
@RecordId = recordid
|
6024
|
+
@UsedCount = usedcount
|
6025
|
+
@FreeCount = freecount
|
6026
|
+
@OrderCount = ordercount
|
6027
|
+
@StatusSummary = statussummary
|
6028
|
+
@StatusSummaryTitle = statussummarytitle
|
6029
|
+
@Elapsed = elapsed
|
6030
|
+
@TokenCount = tokencount
|
6031
|
+
@Procedures = procedures
|
6032
|
+
end
|
6033
|
+
|
6034
|
+
def deserialize(params)
|
6035
|
+
@SessionId = params['SessionId']
|
6036
|
+
@RequestId = params['RequestId']
|
6037
|
+
@RecordId = params['RecordId']
|
6038
|
+
@UsedCount = params['UsedCount']
|
6039
|
+
@FreeCount = params['FreeCount']
|
6040
|
+
@OrderCount = params['OrderCount']
|
6041
|
+
@StatusSummary = params['StatusSummary']
|
6042
|
+
@StatusSummaryTitle = params['StatusSummaryTitle']
|
6043
|
+
@Elapsed = params['Elapsed']
|
6044
|
+
@TokenCount = params['TokenCount']
|
6045
|
+
unless params['Procedures'].nil?
|
6046
|
+
@Procedures = []
|
6047
|
+
params['Procedures'].each do |i|
|
6048
|
+
procedure_tmp = Procedure.new
|
6049
|
+
procedure_tmp.deserialize(i)
|
6050
|
+
@Procedures << procedure_tmp
|
6051
|
+
end
|
6052
|
+
end
|
6053
|
+
end
|
6054
|
+
end
|
6055
|
+
|
5770
6056
|
# 不满意回复
|
5771
6057
|
class UnsatisfiedReply < TencentCloud::Common::AbstractModel
|
5772
6058
|
# @param ReplyBizId: 不满意回复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.812
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|