tencentcloud-sdk-tms 3.0.1159 → 3.0.1160
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/tencentcloud-sdk-tms.rb +3 -3
- data/lib/v20201229/client.rb +2 -1
- data/lib/v20201229/models.rb +12 -4
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1e0e81c3cd11d7f9c6cf19ec98da3dd796a234c6
|
|
4
|
+
data.tar.gz: 010df3aee76648d32c45d78e47a665b13a40d83b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 824996f54034b87d2611c02fd68da6658b3f37935cabf300679930d0ae5bd5058c5c72d6c7b3fbccaae9bdfd5cd1332393d50aac683eeea17c187ad4d4393032
|
|
7
|
+
data.tar.gz: bd935ee940d212d78c251d7e32f015fe1eca6e3e9997530cb3ca9d0adb6e5e582fc739933a440fad59c34247d7ac9c8a136b8345652051eb9ef52cfbad650316
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1160
|
data/lib/tencentcloud-sdk-tms.rb
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
require 'tencentcloud-sdk-common'
|
|
4
4
|
|
|
5
|
-
require_relative 'v20200713/client'
|
|
6
|
-
require_relative 'v20200713/models'
|
|
7
|
-
|
|
8
5
|
require_relative 'v20201229/client'
|
|
9
6
|
require_relative 'v20201229/models'
|
|
10
7
|
|
|
8
|
+
require_relative 'v20200713/client'
|
|
9
|
+
require_relative 'v20200713/models'
|
|
10
|
+
|
|
11
11
|
module TencentCloud
|
|
12
12
|
module Tms
|
|
13
13
|
end
|
data/lib/v20201229/client.rb
CHANGED
|
@@ -88,7 +88,8 @@ module TencentCloud
|
|
|
88
88
|
# - 支持识别多种违规场景,包括:低俗、谩骂、色情、广告等场景;
|
|
89
89
|
# - 支持根据不同的业务场景配置自定义的审核策略,可在控制台文本内容安全-策略管理中配置;
|
|
90
90
|
# - 支持用户自定义配置词库黑白名单,打击自定义识别类型的违规文本(目前仅支持黑名单配置);
|
|
91
|
-
# -
|
|
91
|
+
# - 支持在审核文本内容时同时关联账号或设备信息,可识别违规风险账号或设备;
|
|
92
|
+
# - 支持大模型、聊天室等场景下的流式上下文审核。
|
|
92
93
|
|
|
93
94
|
# ### 接口调用说明:
|
|
94
95
|
# - 文本内容大小支持:文本原文长度不能超过unicode编码长度10000个字符;
|
data/lib/v20201229/models.rb
CHANGED
|
@@ -471,10 +471,12 @@ module TencentCloud
|
|
|
471
471
|
# @type SourceLanguage: String
|
|
472
472
|
# @param Type: 审核的业务类型,枚举值包括"TEXT"和"TEXT_AIGC"。其中"TEXT"表示传统文本审核,"TEXT_AIGC"表示AI生成检测(生成检测能力具体能力了解可[参见文档](https://cloud.tencent.com/document/product/1124/118694))。
|
|
473
473
|
# @type Type: String
|
|
474
|
+
# @param SessionId: 流式审核策略维度下的唯一会话ID
|
|
475
|
+
# @type SessionId: String
|
|
474
476
|
|
|
475
|
-
attr_accessor :Content, :BizType, :DataId, :User, :Device, :SourceLanguage, :Type
|
|
477
|
+
attr_accessor :Content, :BizType, :DataId, :User, :Device, :SourceLanguage, :Type, :SessionId
|
|
476
478
|
|
|
477
|
-
def initialize(content=nil, biztype=nil, dataid=nil, user=nil, device=nil, sourcelanguage=nil, type=nil)
|
|
479
|
+
def initialize(content=nil, biztype=nil, dataid=nil, user=nil, device=nil, sourcelanguage=nil, type=nil, sessionid=nil)
|
|
478
480
|
@Content = content
|
|
479
481
|
@BizType = biztype
|
|
480
482
|
@DataId = dataid
|
|
@@ -482,6 +484,7 @@ module TencentCloud
|
|
|
482
484
|
@Device = device
|
|
483
485
|
@SourceLanguage = sourcelanguage
|
|
484
486
|
@Type = type
|
|
487
|
+
@SessionId = sessionid
|
|
485
488
|
end
|
|
486
489
|
|
|
487
490
|
def deserialize(params)
|
|
@@ -498,6 +501,7 @@ module TencentCloud
|
|
|
498
501
|
end
|
|
499
502
|
@SourceLanguage = params['SourceLanguage']
|
|
500
503
|
@Type = params['Type']
|
|
504
|
+
@SessionId = params['SessionId']
|
|
501
505
|
end
|
|
502
506
|
end
|
|
503
507
|
|
|
@@ -533,12 +537,14 @@ module TencentCloud
|
|
|
533
537
|
# @type SentimentAnalysis: :class:`Tencentcloud::Tms.v20201229.models.SentimentAnalysis`
|
|
534
538
|
# @param HitType: 该字段用于标识本次审核决策归因,比如text_nlp_tianji标识是由nlp tianji模型给出的审核决策,text_keyword_public标识命中了业务的关键词库
|
|
535
539
|
# @type HitType: String
|
|
540
|
+
# @param SessionId: 流式审核策略维度下的唯一会话ID
|
|
541
|
+
# @type SessionId: String
|
|
536
542
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
537
543
|
# @type RequestId: String
|
|
538
544
|
|
|
539
|
-
attr_accessor :BizType, :Label, :Suggestion, :Keywords, :Score, :DetailResults, :RiskDetails, :Extra, :DataId, :SubLabel, :ContextText, :SentimentAnalysis, :HitType, :RequestId
|
|
545
|
+
attr_accessor :BizType, :Label, :Suggestion, :Keywords, :Score, :DetailResults, :RiskDetails, :Extra, :DataId, :SubLabel, :ContextText, :SentimentAnalysis, :HitType, :SessionId, :RequestId
|
|
540
546
|
|
|
541
|
-
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, requestid=nil)
|
|
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)
|
|
542
548
|
@BizType = biztype
|
|
543
549
|
@Label = label
|
|
544
550
|
@Suggestion = suggestion
|
|
@@ -552,6 +558,7 @@ module TencentCloud
|
|
|
552
558
|
@ContextText = contexttext
|
|
553
559
|
@SentimentAnalysis = sentimentanalysis
|
|
554
560
|
@HitType = hittype
|
|
561
|
+
@SessionId = sessionid
|
|
555
562
|
@RequestId = requestid
|
|
556
563
|
end
|
|
557
564
|
|
|
@@ -586,6 +593,7 @@ module TencentCloud
|
|
|
586
593
|
@SentimentAnalysis.deserialize(params['SentimentAnalysis'])
|
|
587
594
|
end
|
|
588
595
|
@HitType = params['HitType']
|
|
596
|
+
@SessionId = params['SessionId']
|
|
589
597
|
@RequestId = params['RequestId']
|
|
590
598
|
end
|
|
591
599
|
end
|
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.1160
|
|
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-10-
|
|
11
|
+
date: 2025-10-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -33,9 +33,9 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
-
- lib/tencentcloud-sdk-tms.rb
|
|
37
36
|
- lib/v20200713/models.rb
|
|
38
37
|
- lib/v20200713/client.rb
|
|
38
|
+
- lib/tencentcloud-sdk-tms.rb
|
|
39
39
|
- lib/v20201229/models.rb
|
|
40
40
|
- lib/v20201229/client.rb
|
|
41
41
|
- lib/VERSION
|