tencentcloud-sdk-tms 3.0.1161 → 3.0.1180
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/v20201229/client.rb +26 -16
- data/lib/v20201229/models.rb +79 -75
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 895c229de383122a28a59dd9496dd002ea3823e0
|
|
4
|
+
data.tar.gz: 01d5abc8b73cde8bbb95c518d82862241e91b2d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb5270dca44cb1fc6c12ad2cd956f4eb69270bc17bd98a110f638b568e4b5f98325003ea67fe18dc4c766f317e731113cc2a3e5b8944cbfb7110d490d2d1e081
|
|
7
|
+
data.tar.gz: 352865b8ac21e1edb7ffd58f55977834b1dfe5dfdf7406186857c95aa2921dad0f9d9144ac454b82ee80db12ebb33c34c60a3998491d6fdc51246e17be9c2d5e
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1180
|
data/lib/v20201229/client.rb
CHANGED
|
@@ -29,7 +29,22 @@ module TencentCloud
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
#
|
|
32
|
+
# 本接口适用于“金融大模型审校”服务。在对接前,请参考快速入门文档并配置好业务基础信息。
|
|
33
|
+
# - **快速入门**:[快速入门文档](https://cloud.tencent.com/document/product/1124/124604)
|
|
34
|
+
|
|
35
|
+
# ### 接口功能说明:
|
|
36
|
+
# 由于大模型审校服务耗时较长,通常达到分钟级,因此采用异步模式,整体流程分为两步:
|
|
37
|
+
# 1. 创建金融大模型审校任务(详见本文档)。
|
|
38
|
+
# 2. 查询审校结果(详见 [查询结果文档](https://cloud.tencent.com/document/product/1124/124463))。
|
|
39
|
+
|
|
40
|
+
# ### 接口调用说明:
|
|
41
|
+
# - **请求域名**:tms.tencentcloudapi.com
|
|
42
|
+
# - **并发限制**:每个账号最多可同时进行3个审校任务。
|
|
43
|
+
# - **支持的文件格式**:纯文本、PDF、DOC、DOCX。
|
|
44
|
+
|
|
45
|
+
# ### 文件限制说明:
|
|
46
|
+
# - **文档大小限制**:PDF/DOC/DOCX 格式文件不超过 200M(该大小为Base64编码后)。
|
|
47
|
+
# - **文档下载时长**:不超过 15 秒(建议将文档存储在腾讯云 URL,以确保更高的下载稳定性)。
|
|
33
48
|
|
|
34
49
|
# @param request: Request instance for CreateFinancialLLMTask.
|
|
35
50
|
# @type request: :class:`Tencentcloud::tms::V20201229::CreateFinancialLLMTaskRequest`
|
|
@@ -53,7 +68,7 @@ module TencentCloud
|
|
|
53
68
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
54
69
|
end
|
|
55
70
|
|
|
56
|
-
#
|
|
71
|
+
# 本接口适用于“金融大模型审校”服务的结果查询。
|
|
57
72
|
|
|
58
73
|
# @param request: Request instance for GetFinancialLLMTaskResult.
|
|
59
74
|
# @type request: :class:`Tencentcloud::tms::V20201229::GetFinancialLLMTaskResultRequest`
|
|
@@ -77,24 +92,19 @@ module TencentCloud
|
|
|
77
92
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
78
93
|
end
|
|
79
94
|
|
|
80
|
-
#
|
|
81
|
-
|
|
82
|
-
#
|
|
83
|
-
# - 前往“[内容安全控制台-文本内容安全](https://console.cloud.tencent.com/cms)”开启使用文本内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含**3000条**文本识别额度,有效期为15天。
|
|
84
|
-
# - 该接口为收费接口,计费方式敬请参见 [腾讯云文本内容安全定价](https://cloud.tencent.com/product/tms/pricing)。
|
|
95
|
+
# 本接口提供“内容安全”和“AI生成识别”服务。在对接之前,请先参考快速入门,以配置业务基础信息。
|
|
96
|
+
# - **内容安全**:[快速入门](https://cloud.tencent.com/document/product/1124/37119)
|
|
97
|
+
# - **AI生成识别**:[快速入门](https://cloud.tencent.com/document/product/1124/118694)
|
|
85
98
|
|
|
86
99
|
# ### 接口功能说明:
|
|
87
|
-
# -
|
|
88
|
-
# -
|
|
89
|
-
# - 支持根据不同的业务场景配置自定义的审核策略,可在控制台文本内容安全-策略管理中配置;
|
|
90
|
-
# - 支持用户自定义配置词库黑白名单,打击自定义识别类型的违规文本(目前仅支持黑名单配置);
|
|
91
|
-
# - 支持在审核文本内容时同时关联账号或设备信息,可识别违规风险账号或设备;
|
|
92
|
-
# - 支持大模型、聊天室等场景下的流式上下文审核。
|
|
100
|
+
# - **内容安全**:对输入的文本,识别其中是否存在色情、违法等风险,返回处置建议、风险标签及对应的模型阈值。
|
|
101
|
+
# - **AI生成识别**:对输入的文本,判断其是否为AI工具生成,返回AI生成的概率分数。
|
|
93
102
|
|
|
94
103
|
# ### 接口调用说明:
|
|
95
|
-
# -
|
|
96
|
-
# -
|
|
97
|
-
# -
|
|
104
|
+
# - **请求域名**:tms.tencentcloudapi.com
|
|
105
|
+
# - **文本长度限制**:最长10,000个字符(以Unicode编码计量)。
|
|
106
|
+
# - **请求频率**:内容安全默认1000次/秒,AI生成识别默认50次/秒。
|
|
107
|
+
# - **支持语言**:中文、英文。
|
|
98
108
|
|
|
99
109
|
# @param request: Request instance for TextModeration.
|
|
100
110
|
# @type request: :class:`Tencentcloud::tms::V20201229::TextModerationRequest`
|
data/lib/v20201229/models.rb
CHANGED
|
@@ -19,43 +19,40 @@ module TencentCloud
|
|
|
19
19
|
module V20201229
|
|
20
20
|
# CreateFinancialLLMTask请求参数结构体
|
|
21
21
|
class CreateFinancialLLMTaskRequest < TencentCloud::Common::AbstractModel
|
|
22
|
-
# @param BizType:
|
|
22
|
+
# @param BizType: 接口使用的识别策略 ID,请参考 [快速指引](https://cloud.tencent.com/document/product/1124/124604) 获取该值。
|
|
23
23
|
# @type BizType: String
|
|
24
|
-
# @param
|
|
25
|
-
#
|
|
26
|
-
#
|
|
24
|
+
# @param ContentType: 送审内容的格式,有两个可选值:
|
|
25
|
+
# - 1:代表送审内容为**文档**,如DOC文档
|
|
26
|
+
# - 2:代表送审内容为**纯文本**
|
|
27
27
|
# @type ContentType: Integer
|
|
28
|
-
# @param
|
|
29
|
-
|
|
30
|
-
#
|
|
31
|
-
|
|
32
|
-
# -
|
|
33
|
-
# -
|
|
34
|
-
# - 文档解析后的纯文本长度不超过 10000字
|
|
35
|
-
|
|
36
|
-
# 文本限制:Base64解码后的文本长度不超过10000字
|
|
28
|
+
# @param FileType: 若送审内容为文档(ContentType=1),需要传入具体格式,当前支持:DOC、DOCX、PDF。
|
|
29
|
+
# 说明:若送审内容为纯文本(ContentType=2),则本字段传空(FileType="")。
|
|
30
|
+
# @type FileType: String
|
|
31
|
+
# @param Content: 送审内容的传入方式如下:
|
|
32
|
+
# - 若为文档类,需传入文档的URL(原文档文字数不超过10,000字),例如:http://xxxxxxxxxxxx/financial_test.doc
|
|
33
|
+
# - 若为纯文本类,请以UTF-8格式进行Base64编码后传入(编码后字符数不超过10,000字),例如:5piO5aSpNjAz5LiA5a6a5rao
|
|
37
34
|
# @type Content: String
|
|
38
35
|
|
|
39
|
-
attr_accessor :BizType, :
|
|
36
|
+
attr_accessor :BizType, :ContentType, :FileType, :Content
|
|
40
37
|
|
|
41
|
-
def initialize(biztype=nil,
|
|
38
|
+
def initialize(biztype=nil, contenttype=nil, filetype=nil, content=nil)
|
|
42
39
|
@BizType = biztype
|
|
43
|
-
@FileType = filetype
|
|
44
40
|
@ContentType = contenttype
|
|
41
|
+
@FileType = filetype
|
|
45
42
|
@Content = content
|
|
46
43
|
end
|
|
47
44
|
|
|
48
45
|
def deserialize(params)
|
|
49
46
|
@BizType = params['BizType']
|
|
50
|
-
@FileType = params['FileType']
|
|
51
47
|
@ContentType = params['ContentType']
|
|
48
|
+
@FileType = params['FileType']
|
|
52
49
|
@Content = params['Content']
|
|
53
50
|
end
|
|
54
51
|
end
|
|
55
52
|
|
|
56
53
|
# CreateFinancialLLMTask返回参数结构体
|
|
57
54
|
class CreateFinancialLLMTaskResponse < TencentCloud::Common::AbstractModel
|
|
58
|
-
# @param TaskId:
|
|
55
|
+
# @param TaskId: 本次请求返回的任务ID将用于后续查询接口,以获取对应的审校结果。
|
|
59
56
|
# @type TaskId: String
|
|
60
57
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
61
58
|
# @type RequestId: String
|
|
@@ -235,7 +232,7 @@ module TencentCloud
|
|
|
235
232
|
|
|
236
233
|
# GetFinancialLLMTaskResult请求参数结构体
|
|
237
234
|
class GetFinancialLLMTaskResultRequest < TencentCloud::Common::AbstractModel
|
|
238
|
-
# @param TaskId:
|
|
235
|
+
# @param TaskId: 该值对应创建任务接口里返回的TaskId字段值,创建任务接口见[创建金融大模型审校任务](https://cloud.tencent.com/document/product/1124/124463)。
|
|
239
236
|
# @type TaskId: String
|
|
240
237
|
|
|
241
238
|
attr_accessor :TaskId
|
|
@@ -251,43 +248,38 @@ module TencentCloud
|
|
|
251
248
|
|
|
252
249
|
# GetFinancialLLMTaskResult返回参数结构体
|
|
253
250
|
class GetFinancialLLMTaskResultResponse < TencentCloud::Common::AbstractModel
|
|
254
|
-
# @param Status:
|
|
255
|
-
|
|
256
|
-
# -
|
|
257
|
-
# -
|
|
258
|
-
# - Failed: 失败
|
|
251
|
+
# @param Status: TaskId对应的任务的状态:
|
|
252
|
+
# - Success: 任务已完成
|
|
253
|
+
# - Processing: 任务进行中,建议10秒后再查询
|
|
254
|
+
# - Failed: 任务失败
|
|
259
255
|
# @type Status: String
|
|
260
|
-
# @param
|
|
261
|
-
# @type
|
|
262
|
-
# @param FailureReason: 审校任务失败原因,仅当任务失败时有值
|
|
263
|
-
# @type FailureReason: String
|
|
264
|
-
# @param StartTime: 审校任务开始时间
|
|
265
|
-
# @type StartTime: String
|
|
256
|
+
# @param Details: 该字段标识服务检测到的违规点,具体内容参阅数据结构[FinancialLLMViolationDetail](https://cloud.tencent.com/document/api/1124/51861#FinancialLLMViolationDetail)
|
|
257
|
+
# @type Details: Array
|
|
266
258
|
# @param ReviewedLabels: 本次检测的违规点列表
|
|
267
259
|
# @type ReviewedLabels: Array
|
|
268
|
-
# @param
|
|
269
|
-
# @type
|
|
260
|
+
# @param StartTime: 审校任务的开始时间
|
|
261
|
+
# @type StartTime: String
|
|
262
|
+
# @param FailureReason: 若审校任务失败(Status="Failed"),该字段返回失败的具体原因。
|
|
263
|
+
# @type FailureReason: String
|
|
264
|
+
# @param ModerationResult: 该字段为历史结构字段,不再推荐使用。
|
|
265
|
+
# @type ModerationResult: String
|
|
270
266
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
271
267
|
# @type RequestId: String
|
|
272
268
|
|
|
273
|
-
attr_accessor :Status, :
|
|
269
|
+
attr_accessor :Status, :Details, :ReviewedLabels, :StartTime, :FailureReason, :ModerationResult, :RequestId
|
|
274
270
|
|
|
275
|
-
def initialize(status=nil,
|
|
271
|
+
def initialize(status=nil, details=nil, reviewedlabels=nil, starttime=nil, failurereason=nil, moderationresult=nil, requestid=nil)
|
|
276
272
|
@Status = status
|
|
277
|
-
@ModerationResult = moderationresult
|
|
278
|
-
@FailureReason = failurereason
|
|
279
|
-
@StartTime = starttime
|
|
280
|
-
@ReviewedLabels = reviewedlabels
|
|
281
273
|
@Details = details
|
|
274
|
+
@ReviewedLabels = reviewedlabels
|
|
275
|
+
@StartTime = starttime
|
|
276
|
+
@FailureReason = failurereason
|
|
277
|
+
@ModerationResult = moderationresult
|
|
282
278
|
@RequestId = requestid
|
|
283
279
|
end
|
|
284
280
|
|
|
285
281
|
def deserialize(params)
|
|
286
282
|
@Status = params['Status']
|
|
287
|
-
@ModerationResult = params['ModerationResult']
|
|
288
|
-
@FailureReason = params['FailureReason']
|
|
289
|
-
@StartTime = params['StartTime']
|
|
290
|
-
@ReviewedLabels = params['ReviewedLabels']
|
|
291
283
|
unless params['Details'].nil?
|
|
292
284
|
@Details = []
|
|
293
285
|
params['Details'].each do |i|
|
|
@@ -296,6 +288,10 @@ module TencentCloud
|
|
|
296
288
|
@Details << financialllmviolationdetail_tmp
|
|
297
289
|
end
|
|
298
290
|
end
|
|
291
|
+
@ReviewedLabels = params['ReviewedLabels']
|
|
292
|
+
@StartTime = params['StartTime']
|
|
293
|
+
@FailureReason = params['FailureReason']
|
|
294
|
+
@ModerationResult = params['ModerationResult']
|
|
299
295
|
@RequestId = params['RequestId']
|
|
300
296
|
end
|
|
301
297
|
end
|
|
@@ -456,22 +452,28 @@ module TencentCloud
|
|
|
456
452
|
|
|
457
453
|
# TextModeration请求参数结构体
|
|
458
454
|
class TextModerationRequest < TencentCloud::Common::AbstractModel
|
|
459
|
-
# @param Content:
|
|
455
|
+
# @param Content: 待检测的文本内容,需为UTF-8编码并以Base64格式传入。
|
|
460
456
|
# @type Content: String
|
|
461
|
-
# @param BizType:
|
|
462
|
-
#
|
|
457
|
+
# @param BizType: 接口使用的识别策略编号,需在[控制台](https://console.cloud.tencent.com/cms/clouds/manage)获取。详细获取方式请参考以下链接:
|
|
458
|
+
# - **内容安全**(详见步骤四:策略配置):[点击这里](https://cloud.tencent.com/document/product/1124/37119)
|
|
459
|
+
# - **AI生成识别**(详见服务对接->方式二):[点击这里](https://cloud.tencent.com/document/product/1124/118694)
|
|
463
460
|
# @type BizType: String
|
|
464
|
-
# @param DataId:
|
|
461
|
+
# @param DataId: 该字段表示您为待检测文本分配的数据ID,作用是方便您对数据进行标识和管理。
|
|
462
|
+
# 取值:可由英文字母、数字、四种特殊符号(_,-,@,#)组成,**长度不超过64个字符**。
|
|
465
463
|
# @type DataId: String
|
|
466
|
-
# @param User:
|
|
464
|
+
# @param User: 该字段标识用户信息,传入后可增强甄别有违规风险的发布者账号。
|
|
467
465
|
# @type User: :class:`Tencentcloud::Tms.v20201229.models.User`
|
|
468
|
-
# @param Device:
|
|
466
|
+
# @param Device: 该字段标识设备信息,传入后可增强甄别有违规风险的发布者设备。
|
|
469
467
|
# @type Device: :class:`Tencentcloud::Tms.v20201229.models.Device`
|
|
470
|
-
# @param SourceLanguage:
|
|
468
|
+
# @param SourceLanguage: Content字段的原始语种,枚举值包括 zh 和 en:
|
|
469
|
+
# - 推荐使用 zh
|
|
470
|
+
# - en 适用于纯英文内容,耗时较高。若需使用 en,请先通过[反馈工单](https://console.cloud.tencent.com/workorder/category?level1_id=141&level2_id=1287&source=14&data_title=%E6%96%87%E6%9C%AC%E5%86%85%E5%AE%B9%E5%AE%89%E5%85%A8&step=1)确认
|
|
471
471
|
# @type SourceLanguage: String
|
|
472
|
-
# @param Type:
|
|
472
|
+
# @param Type: 服务类型,枚举值包括 TEXT 和 TEXT_AIGC:
|
|
473
|
+
# TEXT:内容安全
|
|
474
|
+
# TEXT_AIGC:AI生成识别
|
|
473
475
|
# @type Type: String
|
|
474
|
-
# @param SessionId:
|
|
476
|
+
# @param SessionId: 适用于上下文关联审核场景,若多条文本内容需要联合审核,通过该字段关联会话。
|
|
475
477
|
# @type SessionId: String
|
|
476
478
|
|
|
477
479
|
attr_accessor :Content, :BizType, :DataId, :User, :Device, :SourceLanguage, :Type, :SessionId
|
|
@@ -507,54 +509,56 @@ module TencentCloud
|
|
|
507
509
|
|
|
508
510
|
# TextModeration返回参数结构体
|
|
509
511
|
class TextModerationResponse < TencentCloud::Common::AbstractModel
|
|
510
|
-
# @param BizType:
|
|
512
|
+
# @param BizType: 该字段用于回显检测对象请求参数中的 BizType,与输入的 BizType 值对应。
|
|
511
513
|
# @type BizType: String
|
|
514
|
+
# @param Suggestion: 用于标识对本次请求的处置建议,共三种返回值。
|
|
515
|
+
# 返回值:**Block**: 建议直接做违规处置,**Review**: 建议人工二次确认,**Pass**: 未识别到风险。
|
|
516
|
+
# @type Suggestion: String
|
|
512
517
|
# @param Label: 该字段用于返回检测结果(DetailResults)中所对应的**优先级最高的恶意标签**,表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告;以及其他令人反感、不安全或不适宜的内容类型
|
|
513
518
|
# @type Label: String
|
|
514
|
-
# @param
|
|
515
|
-
# @type
|
|
516
|
-
# @param
|
|
519
|
+
# @param SubLabel: 对应 Label 字段下的二级子标签,表示该 Label 下更细分的违规点。
|
|
520
|
+
# @type SubLabel: String
|
|
521
|
+
# @param Score: 该字段标识 SubLabel 的置信度,取值范围为 0 - 100,值越高代表置信度越高。
|
|
522
|
+
# @type Score: Integer
|
|
523
|
+
# @param Keywords: 该字段标识被检测文本所命中的关键词,可能返回0个或多个关键词。
|
|
517
524
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
518
525
|
# @type Keywords: Array
|
|
519
|
-
# @param
|
|
520
|
-
# @type Score: Integer
|
|
521
|
-
# @param DetailResults: 该字段用于返回基于文本风险库审核的详细结果,返回值信息可参阅对应数据结构(DetailResults)的详细描述
|
|
526
|
+
# @param DetailResults: 该字段返回的检测的详细信息,返回值信息可参阅对应数据结构 DetailResults 的详细描述。
|
|
522
527
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
523
528
|
# @type DetailResults: Array
|
|
524
|
-
# @param RiskDetails:
|
|
529
|
+
# @param RiskDetails: 该字段标识入参 User 的检测结果,具体内容参阅数据结构 RiskDetails。
|
|
525
530
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
526
531
|
# @type RiskDetails: Array
|
|
527
|
-
# @param Extra:
|
|
532
|
+
# @param Extra: 该字段用于返回根据您的需求配置的附加信息(Extra),如未配置则默认返回值为空。
|
|
533
|
+
# 备注:不同客户或Biztype下返回信息不同,如需配置该字段请提交工单咨询或联系售后专员处理。
|
|
528
534
|
# @type Extra: String
|
|
529
|
-
# @param DataId:
|
|
535
|
+
# @param DataId: 该字段用于回显检测对象请求参数中的 DataId,与输入的 DataId 值对应。
|
|
530
536
|
# @type DataId: String
|
|
531
|
-
# @param
|
|
532
|
-
# @type SubLabel: String
|
|
533
|
-
# @param ContextText: 该字段用于返回上下文关联文本
|
|
537
|
+
# @param ContextText: 历史上下文关联的字段,不再推荐使用。上下文关联审核可通过入参的 SessionId 来实现。
|
|
534
538
|
# @type ContextText: String
|
|
535
|
-
# @param SentimentAnalysis:
|
|
539
|
+
# @param SentimentAnalysis: 该字段为历史结构字段,不再推荐使用。
|
|
536
540
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
537
541
|
# @type SentimentAnalysis: :class:`Tencentcloud::Tms.v20201229.models.SentimentAnalysis`
|
|
538
|
-
# @param HitType:
|
|
542
|
+
# @param HitType: 该字段为历史结构字段,不再推荐使用。
|
|
539
543
|
# @type HitType: String
|
|
540
|
-
# @param SessionId:
|
|
544
|
+
# @param SessionId: 该字段用于回显检测对象请求参数中的 SessionId,与输入的 SessionId 值对应。
|
|
541
545
|
# @type SessionId: String
|
|
542
546
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
543
547
|
# @type RequestId: String
|
|
544
548
|
|
|
545
|
-
attr_accessor :BizType, :
|
|
549
|
+
attr_accessor :BizType, :Suggestion, :Label, :SubLabel, :Score, :Keywords, :DetailResults, :RiskDetails, :Extra, :DataId, :ContextText, :SentimentAnalysis, :HitType, :SessionId, :RequestId
|
|
546
550
|
|
|
547
|
-
def initialize(biztype=nil,
|
|
551
|
+
def initialize(biztype=nil, suggestion=nil, label=nil, sublabel=nil, score=nil, keywords=nil, detailresults=nil, riskdetails=nil, extra=nil, dataid=nil, contexttext=nil, sentimentanalysis=nil, hittype=nil, sessionid=nil, requestid=nil)
|
|
548
552
|
@BizType = biztype
|
|
549
|
-
@Label = label
|
|
550
553
|
@Suggestion = suggestion
|
|
551
|
-
@
|
|
554
|
+
@Label = label
|
|
555
|
+
@SubLabel = sublabel
|
|
552
556
|
@Score = score
|
|
557
|
+
@Keywords = keywords
|
|
553
558
|
@DetailResults = detailresults
|
|
554
559
|
@RiskDetails = riskdetails
|
|
555
560
|
@Extra = extra
|
|
556
561
|
@DataId = dataid
|
|
557
|
-
@SubLabel = sublabel
|
|
558
562
|
@ContextText = contexttext
|
|
559
563
|
@SentimentAnalysis = sentimentanalysis
|
|
560
564
|
@HitType = hittype
|
|
@@ -564,10 +568,11 @@ module TencentCloud
|
|
|
564
568
|
|
|
565
569
|
def deserialize(params)
|
|
566
570
|
@BizType = params['BizType']
|
|
567
|
-
@Label = params['Label']
|
|
568
571
|
@Suggestion = params['Suggestion']
|
|
569
|
-
@
|
|
572
|
+
@Label = params['Label']
|
|
573
|
+
@SubLabel = params['SubLabel']
|
|
570
574
|
@Score = params['Score']
|
|
575
|
+
@Keywords = params['Keywords']
|
|
571
576
|
unless params['DetailResults'].nil?
|
|
572
577
|
@DetailResults = []
|
|
573
578
|
params['DetailResults'].each do |i|
|
|
@@ -586,7 +591,6 @@ module TencentCloud
|
|
|
586
591
|
end
|
|
587
592
|
@Extra = params['Extra']
|
|
588
593
|
@DataId = params['DataId']
|
|
589
|
-
@SubLabel = params['SubLabel']
|
|
590
594
|
@ContextText = params['ContextText']
|
|
591
595
|
unless params['SentimentAnalysis'].nil?
|
|
592
596
|
@SentimentAnalysis = SentimentAnalysis.new
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-tms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1180
|
|
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-
|
|
11
|
+
date: 2025-12-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -33,11 +33,11 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
-
- lib/v20201229/client.rb
|
|
37
|
-
- lib/v20201229/models.rb
|
|
38
|
-
- lib/v20200713/client.rb
|
|
39
|
-
- lib/v20200713/models.rb
|
|
40
36
|
- lib/tencentcloud-sdk-tms.rb
|
|
37
|
+
- lib/v20200713/models.rb
|
|
38
|
+
- lib/v20200713/client.rb
|
|
39
|
+
- lib/v20201229/models.rb
|
|
40
|
+
- lib/v20201229/client.rb
|
|
41
41
|
- lib/VERSION
|
|
42
42
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
43
43
|
licenses:
|