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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f395125b0338cbf5ecec65d4569fb8bbc981229f
4
- data.tar.gz: d4893417d9dc62e5c8ebf8d4fdd80073ffed6b85
3
+ metadata.gz: 895c229de383122a28a59dd9496dd002ea3823e0
4
+ data.tar.gz: 01d5abc8b73cde8bbb95c518d82862241e91b2d2
5
5
  SHA512:
6
- metadata.gz: 483562a75bba491b74a7f774252197f1bfa4072fe5a042946c897c6aa20aec802ae5751d7b135fd65d797730928ca755df4a2227d6d9ac59944f97a988500407
7
- data.tar.gz: 6feda1022f0dc9ef34bbb866e1d9189aae9d20e33167e56f08b4b6db1802078f131c62b26673e924b989aa97032c796eaa79bf30f3c4fc9f77669be637ae36a6
6
+ metadata.gz: bb5270dca44cb1fc6c12ad2cd956f4eb69270bc17bd98a110f638b568e4b5f98325003ea67fe18dc4c766f317e731113cc2a3e5b8944cbfb7110d490d2d1e081
7
+ data.tar.gz: 352865b8ac21e1edb7ffd58f55977834b1dfe5dfdf7406186857c95aa2921dad0f9d9144ac454b82ee80db12ebb33c34c60a3998491d6fdc51246e17be9c2d5e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1161
1
+ 3.0.1180
@@ -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
- # 本接口(Text Moderation)用于提交文本内容进行智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通文本内容安全服务](https://console.cloud.tencent.com/cms) 并调整好对应的业务配置。
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
- # - 文本内容大小支持:文本原文长度不能超过unicode编码长度10000个字符;
96
- # - 文本审核语言支持:目前支持中文、英文、阿拉伯数字的检测;
97
- # - 默认接口请求频率限制:**1000次/秒**,超过该频率限制则接口会报错。
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`
@@ -19,43 +19,40 @@ module TencentCloud
19
19
  module V20201229
20
20
  # CreateFinancialLLMTask请求参数结构体
21
21
  class CreateFinancialLLMTaskRequest < TencentCloud::Common::AbstractModel
22
- # @param BizType: 审核策略BizType
22
+ # @param BizType: 接口使用的识别策略 ID,请参考 [快速指引](https://cloud.tencent.com/document/product/1124/124604) 获取该值。
23
23
  # @type BizType: String
24
- # @param FileType: 待审文件类型,目前支持:PDF, DOC, DOCX
25
- # @type FileType: String
26
- # @param ContentType: 送审内容类型:1-文档,2-文本
24
+ # @param ContentType: 送审内容的格式,有两个可选值:
25
+ # - 1:代表送审内容为**文档**,如DOC文档
26
+ # - 2:代表送审内容为**纯文本**
27
27
  # @type ContentType: Integer
28
- # @param Content: 送审内容,根据ContentType字段的取值,传入送审文档的Url链接,或送审文本的Base64编码
29
-
30
- # 文档限制:
31
-
32
- # - 文件下载时间不超过15秒(文件存储于腾讯云的Url可保障更高的下载速度和稳定性,建议文件存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。)
33
- # - 所下载文件经 Base64 编码后不超过支持的文件大小:PDF/DOC/DOCX - 200M
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, :FileType, :ContentType, :Content
36
+ attr_accessor :BizType, :ContentType, :FileType, :Content
40
37
 
41
- def initialize(biztype=nil, filetype=nil, contenttype=nil, content=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: 金融大模型审校任务ID
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: 金融大模型审校任务ID
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
- # - Success: 成功
257
- # - Processing: 处理中,请等待
258
- # - Failed: 失败
251
+ # @param Status: TaskId对应的任务的状态:
252
+ # - Success: 任务已完成
253
+ # - Processing: 任务进行中,建议10秒后再查询
254
+ # - Failed: 任务失败
259
255
  # @type Status: String
260
- # @param ModerationResult: 大模型审校结果
261
- # @type ModerationResult: String
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 Details: 违规明细
269
- # @type Details: Array
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, :ModerationResult, :FailureReason, :StartTime, :ReviewedLabels, :Details, :RequestId
269
+ attr_accessor :Status, :Details, :ReviewedLabels, :StartTime, :FailureReason, :ModerationResult, :RequestId
274
270
 
275
- def initialize(status=nil, moderationresult=nil, failurereason=nil, starttime=nil, reviewedlabels=nil, details=nil, requestid=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: 该字段表示待检测对象的文本内容,文本需要按utf-8格式编码,长度不能超过10000个字符(按unicode编码计算),并进行 Base64加密
455
+ # @param Content: 待检测的文本内容,需为UTF-8编码并以Base64格式传入。
460
456
  # @type Content: String
461
- # @param BizType: 该字段表示使用的策略的具体编号,该字段需要先在[内容安全控制台](https://console.cloud.tencent.com/cms/clouds/manage)中配置。
462
- # 备注:不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype。
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: 该字段表示您为待检测对象分配的数据ID,传入后可方便您对文件进行标识和管理。<br>取值:由英文字母(大小写均可)、数字及四个特殊符号(_,-,@,#)组成,**长度不超过64个字符**
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: 表示Content的原始语种,枚举值包括 "en""zh"。其中,"en" 表示英文,"zh" 表示中文。非中文场景的处理耗时较高,具体情况取决于送审文本长度,非中文场景需[反馈工单](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)确认。
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: 审核的业务类型,枚举值包括"TEXT""TEXT_AIGC"。其中"TEXT"表示传统文本审核,"TEXT_AIGC"表示AI生成检测(生成检测能力具体能力了解可[参见文档](https://cloud.tencent.com/document/product/1124/118694))。
472
+ # @param Type: 服务类型,枚举值包括 TEXT TEXT_AIGC
473
+ # TEXT:内容安全
474
+ # TEXT_AIGC:AI生成识别
473
475
  # @type Type: String
474
- # @param SessionId: 流式审核策略维度下的唯一会话ID
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: 该字段用于返回请求参数中的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 Suggestion: 该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示系统推荐的后续操作;建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Block**:建议屏蔽,**Review** :建议人工复审,**Pass**:建议通过
515
- # @type Suggestion: String
516
- # @param Keywords: 该字段用于返回当前标签(Label)下被检测文本命中的关键词信息,用于标注文本违规的具体原因(如:*加我微信*)。该参数可能会有多个返回值,代表命中的多个关键词;如返回值为空且Score不为空,则代表识别结果所对应的恶意标签(Label)是来自于语义模型判断的返回值
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 Score: 该字段用于返回当前标签(Label)下的置信度,取值范围:0(**置信度最低**)-100(**置信度最高** ),越高代表文本越有可能属于当前返回的标签;如:*色情 99*,则表明该文本非常有可能属于色情内容;*色情 0*,则表明该文本不属于色情内容
520
- # @type Score: Integer
521
- # @param DetailResults: 该字段用于返回基于文本风险库审核的详细结果,返回值信息可参阅对应数据结构(DetailResults)的详细描述
526
+ # @param DetailResults: 该字段返回的检测的详细信息,返回值信息可参阅对应数据结构 DetailResults 的详细描述。
522
527
  # 注意:此字段可能返回 null,表示取不到有效值。
523
528
  # @type DetailResults: Array
524
- # @param RiskDetails: 该字段用于返回文本检测中存在违规风险的账号检测结果,主要包括违规风险类别和风险等级信息,具体内容可参阅对应数据结构(RiskDetails)的详细描述
529
+ # @param RiskDetails: 该字段标识入参 User 的检测结果,具体内容参阅数据结构 RiskDetails
525
530
  # 注意:此字段可能返回 null,表示取不到有效值。
526
531
  # @type RiskDetails: Array
527
- # @param Extra: 该字段用于返回根据您的需求配置的额外附加信息(Extra),如未配置则默认返回值为空。<br>备注:不同客户或Biztype下返回信息不同,如需配置该字段请提交工单咨询或联系售后专员处理
532
+ # @param Extra: 该字段用于返回根据您的需求配置的附加信息(Extra),如未配置则默认返回值为空。
533
+ # 备注:不同客户或Biztype下返回信息不同,如需配置该字段请提交工单咨询或联系售后专员处理。
528
534
  # @type Extra: String
529
- # @param DataId: 该字段用于返回检测对象对应请求参数中的DataId,与输入的DataId字段中的内容对应
535
+ # @param DataId: 该字段用于回显检测对象请求参数中的 DataId,与输入的 DataId 值对应。
530
536
  # @type DataId: String
531
- # @param SubLabel: 该字段用于返回当前标签(Label)下的二级标签。
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: 该字段用于标识本次审核决策归因,比如text_nlp_tianji标识是由nlp tianji模型给出的审核决策,text_keyword_public标识命中了业务的关键词库
542
+ # @param HitType: 该字段为历史结构字段,不再推荐使用。
539
543
  # @type HitType: String
540
- # @param SessionId: 流式审核策略维度下的唯一会话ID
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, :Label, :Suggestion, :Keywords, :Score, :DetailResults, :RiskDetails, :Extra, :DataId, :SubLabel, :ContextText, :SentimentAnalysis, :HitType, :SessionId, :RequestId
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, label=nil, suggestion=nil, keywords=nil, score=nil, detailresults=nil, riskdetails=nil, extra=nil, dataid=nil, sublabel=nil, contexttext=nil, sentimentanalysis=nil, hittype=nil, sessionid=nil, requestid=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
- @Keywords = keywords
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
- @Keywords = params['Keywords']
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.1161
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-04 00:00:00.000000000 Z
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: