tencentcloud-sdk-tms 3.0.811 → 3.0.812

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41a9f7173d37cd566b5b67db6d4d0081fbcca1e5
4
- data.tar.gz: 3589f277fff34e4355aad77b5fa6dcb35bc87320
3
+ metadata.gz: 6ecc0e64c56edabb884aa2f3ba60c8aaae4e3043
4
+ data.tar.gz: 55ff6bc140eef36708faa08c6a561a2943b2e4b0
5
5
  SHA512:
6
- metadata.gz: f50abe57d541c69c61b1d647a02a897f91b1da4993f82c07fb7ed2dbb80d125d73b1e1bada0d3ec15f19596a5624f5605dad811b9af76139ec6e0fbabe087498
7
- data.tar.gz: 2d03bfb24890be0ae396e065d5c0ef616d904c88826fc60ff3f4b1ea36c9a3eab70c246c57c541f34f47ab53f9e813c4d9e6fdc42e74ff26230aa135a89b15c7
6
+ metadata.gz: 87753e7093ea2b5f6d961e1697eb1ae4dcbaafbefe51a08f0ee7af08df839d47cb6eea517856e3e16d68186e49ecb5eb36b7529ba16f10099ff940449d166b33
7
+ data.tar.gz: 889e80464ef20c05045362eb3e6f0165eaa9040849f573192afea20aad1226e03200b3c1a62629079ebbf34f2bb72de8f60326225275aed3b33867c71a0364e1
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.811
1
+ 3.0.812
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # "AIGC代答"产品帮助客户在其AIGC场景下,对于敏感类的问题,不是由客户的大模型机器人来回答,而是我们来进行代答,尽最大可能帮助客户规避风险。
33
+
34
+ # @param request: Request instance for AnswerQuestion.
35
+ # @type request: :class:`Tencentcloud::tms::V20201229::AnswerQuestionRequest`
36
+ # @rtype: :class:`Tencentcloud::tms::V20201229::AnswerQuestionResponse`
37
+ def AnswerQuestion(request)
38
+ body = send_request('AnswerQuestion', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = AnswerQuestionResponse.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
+
32
56
  # 天御文本内容安全定制标签文本审核接口为定制接口,会按照客户定制标签输出审核结果,如需使用请联系商务经理或[在线客服](https://cloud.tencent.com/online-service?from=doc_1125)咨询。
33
57
 
34
58
  # @param request: Request instance for ModerateText.
@@ -17,6 +17,42 @@
17
17
  module TencentCloud
18
18
  module Tms
19
19
  module V20201229
20
+ # AnswerQuestion请求参数结构体
21
+ class AnswerQuestionRequest < TencentCloud::Common::AbstractModel
22
+ # @param Question: 用户问题
23
+ # @type Question: String
24
+
25
+ attr_accessor :Question
26
+
27
+ def initialize(question=nil)
28
+ @Question = question
29
+ end
30
+
31
+ def deserialize(params)
32
+ @Question = params['Question']
33
+ end
34
+ end
35
+
36
+ # AnswerQuestion返回参数结构体
37
+ class AnswerQuestionResponse < TencentCloud::Common::AbstractModel
38
+ # @param Answer: 匹配到的答案
39
+ # @type Answer: String
40
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
41
+ # @type RequestId: String
42
+
43
+ attr_accessor :Answer, :RequestId
44
+
45
+ def initialize(answer=nil, requestid=nil)
46
+ @Answer = answer
47
+ @RequestId = requestid
48
+ end
49
+
50
+ def deserialize(params)
51
+ @Answer = params['Answer']
52
+ @RequestId = params['RequestId']
53
+ end
54
+ end
55
+
20
56
  # 文本审核返回的详细结果
21
57
  class DetailResults < TencentCloud::Common::AbstractModel
22
58
  # @param Label: 该字段用于返回检测结果所对应的全部恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告;以及其他令人反感、不安全或不适宜的内容类型。
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.811
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-25 00:00:00.000000000 Z
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