tencentcloud-sdk-tione 3.0.635 → 3.0.636

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: 7169a3223c7ece80f919979da22a6dc6458b78ec
4
- data.tar.gz: a59ad8ee9dcc4d55bcecd463223b06d0e7c20267
3
+ metadata.gz: a1c9ec6736f6f6543bf24467b382a502fc9d67fd
4
+ data.tar.gz: a8727981b0b790e7d6e2ef8be7b079cb4dbfae0d
5
5
  SHA512:
6
- metadata.gz: 7932aab577e1bf4fa57ed2cef3497b69a02bc8d7f94887c9a7f1860a536c689b5d9ee3804649795a9e62601365c96994a663b446cbc93e319c6af25bb9c992c3
7
- data.tar.gz: 25f0923eef512cb392e03b759993ca08f2be6d49bc0a551a3d0caa1275ebfe902fc86e0cdd171eb668e683064d99f8df0144eb8169224803fe76f0281527d720
6
+ metadata.gz: fd4f3447c649c16e921d7ca757209c3d774999d5b0e94dbc86b35cc82f6d676bb28880b466e21a039d78ff3f3124f7435e33d9000d900b4fb55a2fd7e3d87775
7
+ data.tar.gz: bb261ddd5efc5d587bbcef17258e78223ed18c2ea460cb459fa7fd48eb6248714361f9914985c59d9afd2bfaf66dc367fb067c9d8ff6cfd6879e0e6ed5d9de6d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.635
1
+ 3.0.636
@@ -1517,6 +1517,30 @@ module TencentCloud
1517
1517
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1518
1518
  end
1519
1519
 
1520
+ # LLM模型的对话请求发送接口
1521
+
1522
+ # @param request: Request instance for SendChatMessage.
1523
+ # @type request: :class:`Tencentcloud::tione::V20211111::SendChatMessageRequest`
1524
+ # @rtype: :class:`Tencentcloud::tione::V20211111::SendChatMessageResponse`
1525
+ def SendChatMessage(request)
1526
+ body = send_request('SendChatMessage', request.serialize)
1527
+ response = JSON.parse(body)
1528
+ if response['Response'].key?('Error') == false
1529
+ model = SendChatMessageResponse.new
1530
+ model.deserialize(response['Response'])
1531
+ model
1532
+ else
1533
+ code = response['Response']['Error']['Code']
1534
+ message = response['Response']['Error']['Message']
1535
+ reqid = response['Response']['RequestId']
1536
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1537
+ end
1538
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1539
+ raise e
1540
+ rescue StandardError => e
1541
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1542
+ end
1543
+
1520
1544
  # 启动Notebook
1521
1545
 
1522
1546
  # @param request: Request instance for StartNotebook.
@@ -7691,6 +7691,63 @@ module TencentCloud
7691
7691
  end
7692
7692
  end
7693
7693
 
7694
+ # SendChatMessage请求参数结构体
7695
+ class SendChatMessageRequest < TencentCloud::Common::AbstractModel
7696
+ # @param SessionId: 会话id,标识一组对话的唯一id,id变更则重置会话
7697
+ # @type SessionId: String
7698
+ # @param Question: 问题描述
7699
+ # @type Question: String
7700
+ # @param ModelVersion: 会话模型版本,不同的会话模型调用到不同的模型后台。
7701
+ # 注: 多行业多场景大模型填写 tj_llm_clm-v1
7702
+ # @type ModelVersion: String
7703
+ # @param Mode: 使用模式(仅部分模型支持)。General 通用问答;WithSearchPlugin 搜索增强问答
7704
+ # @type Mode: String
7705
+ # @param SearchSource: 搜索来源。仅当Mode未WithSearchPlugin时生效。Preset 预置文稿库;Custom 自定义。
7706
+ # @type SearchSource: String
7707
+
7708
+ attr_accessor :SessionId, :Question, :ModelVersion, :Mode, :SearchSource
7709
+
7710
+ def initialize(sessionid=nil, question=nil, modelversion=nil, mode=nil, searchsource=nil)
7711
+ @SessionId = sessionid
7712
+ @Question = question
7713
+ @ModelVersion = modelversion
7714
+ @Mode = mode
7715
+ @SearchSource = searchsource
7716
+ end
7717
+
7718
+ def deserialize(params)
7719
+ @SessionId = params['SessionId']
7720
+ @Question = params['Question']
7721
+ @ModelVersion = params['ModelVersion']
7722
+ @Mode = params['Mode']
7723
+ @SearchSource = params['SearchSource']
7724
+ end
7725
+ end
7726
+
7727
+ # SendChatMessage返回参数结构体
7728
+ class SendChatMessageResponse < TencentCloud::Common::AbstractModel
7729
+ # @param Answer: 答案
7730
+ # @type Answer: String
7731
+ # @param SessionId: 会话id,返回请求的会话id
7732
+ # @type SessionId: String
7733
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7734
+ # @type RequestId: String
7735
+
7736
+ attr_accessor :Answer, :SessionId, :RequestId
7737
+
7738
+ def initialize(answer=nil, sessionid=nil, requestid=nil)
7739
+ @Answer = answer
7740
+ @SessionId = sessionid
7741
+ @RequestId = requestid
7742
+ end
7743
+
7744
+ def deserialize(params)
7745
+ @Answer = params['Answer']
7746
+ @SessionId = params['SessionId']
7747
+ @RequestId = params['RequestId']
7748
+ end
7749
+ end
7750
+
7694
7751
  # 描述在线服务
7695
7752
  class Service < TencentCloud::Common::AbstractModel
7696
7753
  # @param ServiceGroupId: 服务组id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tione
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.635
4
+ version: 3.0.636
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-14 00:00:00.000000000 Z
11
+ date: 2023-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common