tencentcloud-sdk-tms 3.0.1153 → 3.0.1159

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: de7b6bb58c92c444c35a3e2001ad75e692aa9fb4
4
- data.tar.gz: 23c805e1f83da712d426fc20175dcf48142786bf
3
+ metadata.gz: d2e786b031a22f52921ade9495a2e844f402aebc
4
+ data.tar.gz: aa421451cf2ef6bb2ef833533679b97001ef0b23
5
5
  SHA512:
6
- metadata.gz: dcbb5f719f4ba5103ca6c370fc444c6ae76b8e209359aa4a3c047c475a7b8092c3cf80add245bd64d6c665b3e73f23683b465ccbe4d43a2181ecf2ca0fd4c523
7
- data.tar.gz: 1b566afbcc88395955f23dc2b5327f5ac557bd17274e521c34fca097fab484fa59eb8933bd7f24793900b09daf95d47c796b0d6459ff45243a559dfedcaafb85
6
+ metadata.gz: f0c512b4a8b2054b221d22204073b486f018c4622a06f98e77ce5f41fbb6f62930d2120630d340c2dee701483715a27c0dce56a7abd88d3b9e6fc6d367516583
7
+ data.tar.gz: 6f86968ce9f45f9e53b2459a4cd8fa3c1c9f029551041c4fee8416ec1e82265365a1409b225c5c0ba4fc870dcbb27c235fb8ad1cb9624d82d031c9afb526cbc1
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1153
1
+ 3.0.1159
@@ -29,6 +29,54 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 创建金融大模型审校任务
33
+
34
+ # @param request: Request instance for CreateFinancialLLMTask.
35
+ # @type request: :class:`Tencentcloud::tms::V20201229::CreateFinancialLLMTaskRequest`
36
+ # @rtype: :class:`Tencentcloud::tms::V20201229::CreateFinancialLLMTaskResponse`
37
+ def CreateFinancialLLMTask(request)
38
+ body = send_request('CreateFinancialLLMTask', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateFinancialLLMTaskResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 获取金融大模型审校任务结果
57
+
58
+ # @param request: Request instance for GetFinancialLLMTaskResult.
59
+ # @type request: :class:`Tencentcloud::tms::V20201229::GetFinancialLLMTaskResultRequest`
60
+ # @rtype: :class:`Tencentcloud::tms::V20201229::GetFinancialLLMTaskResultResponse`
61
+ def GetFinancialLLMTaskResult(request)
62
+ body = send_request('GetFinancialLLMTaskResult', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = GetFinancialLLMTaskResultResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
32
80
  # 本接口(Text Moderation)用于提交文本内容进行智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通文本内容安全服务](https://console.cloud.tencent.com/cms) 并调整好对应的业务配置。
33
81
 
34
82
  # ### 接口使用说明
@@ -17,6 +17,62 @@
17
17
  module TencentCloud
18
18
  module Tms
19
19
  module V20201229
20
+ # CreateFinancialLLMTask请求参数结构体
21
+ class CreateFinancialLLMTaskRequest < TencentCloud::Common::AbstractModel
22
+ # @param BizType: 审核策略BizType
23
+ # @type BizType: String
24
+ # @param FileType: 待审文件类型,目前支持:PDF, DOC, DOCX
25
+ # @type FileType: String
26
+ # @param ContentType: 送审内容类型:1-文档,2-文本
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字
37
+ # @type Content: String
38
+
39
+ attr_accessor :BizType, :FileType, :ContentType, :Content
40
+
41
+ def initialize(biztype=nil, filetype=nil, contenttype=nil, content=nil)
42
+ @BizType = biztype
43
+ @FileType = filetype
44
+ @ContentType = contenttype
45
+ @Content = content
46
+ end
47
+
48
+ def deserialize(params)
49
+ @BizType = params['BizType']
50
+ @FileType = params['FileType']
51
+ @ContentType = params['ContentType']
52
+ @Content = params['Content']
53
+ end
54
+ end
55
+
56
+ # CreateFinancialLLMTask返回参数结构体
57
+ class CreateFinancialLLMTaskResponse < TencentCloud::Common::AbstractModel
58
+ # @param TaskId: 金融大模型审校任务ID
59
+ # @type TaskId: String
60
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
61
+ # @type RequestId: String
62
+
63
+ attr_accessor :TaskId, :RequestId
64
+
65
+ def initialize(taskid=nil, requestid=nil)
66
+ @TaskId = taskid
67
+ @RequestId = requestid
68
+ end
69
+
70
+ def deserialize(params)
71
+ @TaskId = params['TaskId']
72
+ @RequestId = params['RequestId']
73
+ end
74
+ end
75
+
20
76
  # 文本审核返回的详细结果
21
77
  class DetailResults < TencentCloud::Common::AbstractModel
22
78
  # @param Label: 该字段用于返回检测结果所对应的全部恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告;以及其他令人反感、不安全或不适宜的内容类型。
@@ -126,6 +182,124 @@ module TencentCloud
126
182
  end
127
183
  end
128
184
 
185
+ # 金融大模型审校 违规明细
186
+ class FinancialLLMViolationDetail < TencentCloud::Common::AbstractModel
187
+ # @param Label: 违规点
188
+ # @type Label: String
189
+ # @param Suggestion: 处置建议
190
+ # @type Suggestion: String
191
+ # @param Reasons: 违规原因列表
192
+ # @type Reasons: Array
193
+
194
+ attr_accessor :Label, :Suggestion, :Reasons
195
+
196
+ def initialize(label=nil, suggestion=nil, reasons=nil)
197
+ @Label = label
198
+ @Suggestion = suggestion
199
+ @Reasons = reasons
200
+ end
201
+
202
+ def deserialize(params)
203
+ @Label = params['Label']
204
+ @Suggestion = params['Suggestion']
205
+ unless params['Reasons'].nil?
206
+ @Reasons = []
207
+ params['Reasons'].each do |i|
208
+ financialllmviolationreason_tmp = FinancialLLMViolationReason.new
209
+ financialllmviolationreason_tmp.deserialize(i)
210
+ @Reasons << financialllmviolationreason_tmp
211
+ end
212
+ end
213
+ end
214
+ end
215
+
216
+ # 金融大模型审校-违规原因
217
+ class FinancialLLMViolationReason < TencentCloud::Common::AbstractModel
218
+ # @param TargetText: 违规原文片段
219
+ # @type TargetText: String
220
+ # @param Reason: 违规原因
221
+ # @type Reason: String
222
+
223
+ attr_accessor :TargetText, :Reason
224
+
225
+ def initialize(targettext=nil, reason=nil)
226
+ @TargetText = targettext
227
+ @Reason = reason
228
+ end
229
+
230
+ def deserialize(params)
231
+ @TargetText = params['TargetText']
232
+ @Reason = params['Reason']
233
+ end
234
+ end
235
+
236
+ # GetFinancialLLMTaskResult请求参数结构体
237
+ class GetFinancialLLMTaskResultRequest < TencentCloud::Common::AbstractModel
238
+ # @param TaskId: 金融大模型审校任务ID
239
+ # @type TaskId: String
240
+
241
+ attr_accessor :TaskId
242
+
243
+ def initialize(taskid=nil)
244
+ @TaskId = taskid
245
+ end
246
+
247
+ def deserialize(params)
248
+ @TaskId = params['TaskId']
249
+ end
250
+ end
251
+
252
+ # GetFinancialLLMTaskResult返回参数结构体
253
+ class GetFinancialLLMTaskResultResponse < TencentCloud::Common::AbstractModel
254
+ # @param Status: 审校任务状态:
255
+
256
+ # - Success: 成功
257
+ # - Processing: 处理中,请等待
258
+ # - Failed: 失败
259
+ # @type Status: String
260
+ # @param ModerationResult: 大模型审校结果
261
+ # @type ModerationResult: String
262
+ # @param FailureReason: 审校任务失败原因,仅当任务失败时有值
263
+ # @type FailureReason: String
264
+ # @param StartTime: 审校任务开始时间
265
+ # @type StartTime: String
266
+ # @param ReviewedLabels: 本次检测的违规点列表
267
+ # @type ReviewedLabels: Array
268
+ # @param Details: 违规明细
269
+ # @type Details: Array
270
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
271
+ # @type RequestId: String
272
+
273
+ attr_accessor :Status, :ModerationResult, :FailureReason, :StartTime, :ReviewedLabels, :Details, :RequestId
274
+
275
+ def initialize(status=nil, moderationresult=nil, failurereason=nil, starttime=nil, reviewedlabels=nil, details=nil, requestid=nil)
276
+ @Status = status
277
+ @ModerationResult = moderationresult
278
+ @FailureReason = failurereason
279
+ @StartTime = starttime
280
+ @ReviewedLabels = reviewedlabels
281
+ @Details = details
282
+ @RequestId = requestid
283
+ end
284
+
285
+ def deserialize(params)
286
+ @Status = params['Status']
287
+ @ModerationResult = params['ModerationResult']
288
+ @FailureReason = params['FailureReason']
289
+ @StartTime = params['StartTime']
290
+ @ReviewedLabels = params['ReviewedLabels']
291
+ unless params['Details'].nil?
292
+ @Details = []
293
+ params['Details'].each do |i|
294
+ financialllmviolationdetail_tmp = FinancialLLMViolationDetail.new
295
+ financialllmviolationdetail_tmp.deserialize(i)
296
+ @Details << financialllmviolationdetail_tmp
297
+ end
298
+ end
299
+ @RequestId = params['RequestId']
300
+ end
301
+ end
302
+
129
303
  # 关键词命中位置信息
130
304
  class HitInfo < TencentCloud::Common::AbstractModel
131
305
  # @param Type: 标识模型命中还是关键词命中
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.1153
4
+ version: 3.0.1159
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-15 00:00:00.000000000 Z
11
+ date: 2025-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common