tencentcloud-sdk-ccc 3.0.1141 → 3.0.1145
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/v20200210/client.rb +24 -0
- data/lib/v20200210/models.rb +135 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d3ff2cee32d1109bd5d8a069cd6147d41c5192f
|
4
|
+
data.tar.gz: e03441201e655cd413627c68a030b829331d55c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e19edbd6b6b5389bea2c980fca20f5631c3414e639f6346e90d553af651da5dff54807a7a8fc7f3e414e34888f8913c909e3ac642cdd470248a514d5d37365e
|
7
|
+
data.tar.gz: 25c57d42c1ae47a60a9f194695ba6a382feb724bbb6f3f57a95c5b9a4cd1fc507950708ddf010fe44424f7e6a9f3d451a995704db92384c11b3fc9a73780c720
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1145
|
data/lib/v20200210/client.rb
CHANGED
@@ -661,6 +661,30 @@ module TencentCloud
|
|
661
661
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
662
662
|
end
|
663
663
|
|
664
|
+
# 获取 AI 会话分析结果
|
665
|
+
|
666
|
+
# @param request: Request instance for DescribeAIAnalysisResult.
|
667
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::DescribeAIAnalysisResultRequest`
|
668
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeAIAnalysisResultResponse`
|
669
|
+
def DescribeAIAnalysisResult(request)
|
670
|
+
body = send_request('DescribeAIAnalysisResult', request.serialize)
|
671
|
+
response = JSON.parse(body)
|
672
|
+
if response['Response'].key?('Error') == false
|
673
|
+
model = DescribeAIAnalysisResultResponse.new
|
674
|
+
model.deserialize(response['Response'])
|
675
|
+
model
|
676
|
+
else
|
677
|
+
code = response['Response']['Error']['Code']
|
678
|
+
message = response['Response']['Error']['Message']
|
679
|
+
reqid = response['Response']['RequestId']
|
680
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
681
|
+
end
|
682
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
683
|
+
raise e
|
684
|
+
rescue StandardError => e
|
685
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
686
|
+
end
|
687
|
+
|
664
688
|
# 获取 AI 通话内容提取结果。
|
665
689
|
|
666
690
|
# @param request: Request instance for DescribeAICallExtractResult.
|
data/lib/v20200210/models.rb
CHANGED
@@ -17,6 +17,28 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Ccc
|
19
19
|
module V20200210
|
20
|
+
# AI会话分析结果
|
21
|
+
class AIAnalysisResult < TencentCloud::Common::AbstractModel
|
22
|
+
# @param Type: summary: 会话小结
|
23
|
+
# mood: 情绪分析
|
24
|
+
# intention: 意向提取
|
25
|
+
# @type Type: String
|
26
|
+
# @param Result: AI会话分析结果
|
27
|
+
# @type Result: String
|
28
|
+
|
29
|
+
attr_accessor :Type, :Result
|
30
|
+
|
31
|
+
def initialize(type=nil, result=nil)
|
32
|
+
@Type = type
|
33
|
+
@Result = result
|
34
|
+
end
|
35
|
+
|
36
|
+
def deserialize(params)
|
37
|
+
@Type = params['Type']
|
38
|
+
@Result = params['Result']
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
20
42
|
# AI 通话提取配置项
|
21
43
|
class AICallExtractConfigElement < TencentCloud::Common::AbstractModel
|
22
44
|
# @param InfoType: 配置项类型,包括
|
@@ -987,17 +1009,21 @@ module TencentCloud
|
|
987
1009
|
# @param Command: 控制命令,目前支持命令如下:
|
988
1010
|
|
989
1011
|
# - ServerPushText,服务端发送文本给AI机器人,AI机器人会播报该文本
|
1012
|
+
# - InvokeLLM,服务端发送文本给大模型,触发对话
|
990
1013
|
# @type Command: String
|
991
1014
|
# @param ServerPushText: 服务端发送播报文本命令,当Command为ServerPushText时必填
|
992
1015
|
# @type ServerPushText: :class:`Tencentcloud::Ccc.v20200210.models.ServerPushText`
|
1016
|
+
# @param InvokeLLM: 服务端发送命令主动请求大模型,当Command为InvokeLLM时会把content请求到大模型,头部增加X-Invoke-LLM="1"
|
1017
|
+
# @type InvokeLLM: :class:`Tencentcloud::Ccc.v20200210.models.InvokeLLM`
|
993
1018
|
|
994
|
-
attr_accessor :SessionId, :SdkAppId, :Command, :ServerPushText
|
1019
|
+
attr_accessor :SessionId, :SdkAppId, :Command, :ServerPushText, :InvokeLLM
|
995
1020
|
|
996
|
-
def initialize(sessionid=nil, sdkappid=nil, command=nil, serverpushtext=nil)
|
1021
|
+
def initialize(sessionid=nil, sdkappid=nil, command=nil, serverpushtext=nil, invokellm=nil)
|
997
1022
|
@SessionId = sessionid
|
998
1023
|
@SdkAppId = sdkappid
|
999
1024
|
@Command = command
|
1000
1025
|
@ServerPushText = serverpushtext
|
1026
|
+
@InvokeLLM = invokellm
|
1001
1027
|
end
|
1002
1028
|
|
1003
1029
|
def deserialize(params)
|
@@ -1008,6 +1034,10 @@ module TencentCloud
|
|
1008
1034
|
@ServerPushText = ServerPushText.new
|
1009
1035
|
@ServerPushText.deserialize(params['ServerPushText'])
|
1010
1036
|
end
|
1037
|
+
unless params['InvokeLLM'].nil?
|
1038
|
+
@InvokeLLM = InvokeLLM.new
|
1039
|
+
@InvokeLLM.deserialize(params['InvokeLLM'])
|
1040
|
+
end
|
1011
1041
|
end
|
1012
1042
|
end
|
1013
1043
|
|
@@ -1607,9 +1637,9 @@ module TencentCloud
|
|
1607
1637
|
# @type NotAfter: Integer
|
1608
1638
|
# @param Tries: 最大尝试次数,1-3 次
|
1609
1639
|
# @type Tries: Integer
|
1610
|
-
# @param Variables:
|
1640
|
+
# @param Variables: 自定义变量(仅高级版支持),CalleeAttributes 字段中使用相同变量会覆盖此处
|
1611
1641
|
# @type Variables: Array
|
1612
|
-
# @param UUI: UUI
|
1642
|
+
# @param UUI: 用户自定义数据,CalleeAttributes 字段中使用 UUI 会覆盖此处
|
1613
1643
|
# @type UUI: String
|
1614
1644
|
# @param CalleeAttributes: 被叫属性
|
1615
1645
|
# @type CalleeAttributes: Array
|
@@ -2022,14 +2052,20 @@ module TencentCloud
|
|
2022
2052
|
# @type DetailList: Array
|
2023
2053
|
# @param Prefix: 送号前缀
|
2024
2054
|
# @type Prefix: String
|
2055
|
+
# @param MobileNddPrefix: 国内长途手机前缀码
|
2056
|
+
# @type MobileNddPrefix: String
|
2057
|
+
# @param LocalNumberTrimAC: 同市固话去掉区号
|
2058
|
+
# @type LocalNumberTrimAC: Boolean
|
2025
2059
|
|
2026
|
-
attr_accessor :SdkAppId, :SipTrunkId, :DetailList, :Prefix
|
2060
|
+
attr_accessor :SdkAppId, :SipTrunkId, :DetailList, :Prefix, :MobileNddPrefix, :LocalNumberTrimAC
|
2027
2061
|
|
2028
|
-
def initialize(sdkappid=nil, siptrunkid=nil, detaillist=nil, prefix=nil)
|
2062
|
+
def initialize(sdkappid=nil, siptrunkid=nil, detaillist=nil, prefix=nil, mobilenddprefix=nil, localnumbertrimac=nil)
|
2029
2063
|
@SdkAppId = sdkappid
|
2030
2064
|
@SipTrunkId = siptrunkid
|
2031
2065
|
@DetailList = detaillist
|
2032
2066
|
@Prefix = prefix
|
2067
|
+
@MobileNddPrefix = mobilenddprefix
|
2068
|
+
@LocalNumberTrimAC = localnumbertrimac
|
2033
2069
|
end
|
2034
2070
|
|
2035
2071
|
def deserialize(params)
|
@@ -2044,6 +2080,8 @@ module TencentCloud
|
|
2044
2080
|
end
|
2045
2081
|
end
|
2046
2082
|
@Prefix = params['Prefix']
|
2083
|
+
@MobileNddPrefix = params['MobileNddPrefix']
|
2084
|
+
@LocalNumberTrimAC = params['LocalNumberTrimAC']
|
2047
2085
|
end
|
2048
2086
|
end
|
2049
2087
|
|
@@ -2498,6 +2536,61 @@ module TencentCloud
|
|
2498
2536
|
end
|
2499
2537
|
end
|
2500
2538
|
|
2539
|
+
# DescribeAIAnalysisResult请求参数结构体
|
2540
|
+
class DescribeAIAnalysisResultRequest < TencentCloud::Common::AbstractModel
|
2541
|
+
# @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
2542
|
+
# @type SdkAppId: Integer
|
2543
|
+
# @param SessionId: 会话 ID
|
2544
|
+
# @type SessionId: String
|
2545
|
+
# @param StartTime: 查找起始时间
|
2546
|
+
# @type StartTime: Integer
|
2547
|
+
# @param EndTime: 1737350008
|
2548
|
+
# @type EndTime: Integer
|
2549
|
+
|
2550
|
+
attr_accessor :SdkAppId, :SessionId, :StartTime, :EndTime
|
2551
|
+
|
2552
|
+
def initialize(sdkappid=nil, sessionid=nil, starttime=nil, endtime=nil)
|
2553
|
+
@SdkAppId = sdkappid
|
2554
|
+
@SessionId = sessionid
|
2555
|
+
@StartTime = starttime
|
2556
|
+
@EndTime = endtime
|
2557
|
+
end
|
2558
|
+
|
2559
|
+
def deserialize(params)
|
2560
|
+
@SdkAppId = params['SdkAppId']
|
2561
|
+
@SessionId = params['SessionId']
|
2562
|
+
@StartTime = params['StartTime']
|
2563
|
+
@EndTime = params['EndTime']
|
2564
|
+
end
|
2565
|
+
end
|
2566
|
+
|
2567
|
+
# DescribeAIAnalysisResult返回参数结构体
|
2568
|
+
class DescribeAIAnalysisResultResponse < TencentCloud::Common::AbstractModel
|
2569
|
+
# @param ResultList: AI会话分析结果
|
2570
|
+
# @type ResultList: Array
|
2571
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2572
|
+
# @type RequestId: String
|
2573
|
+
|
2574
|
+
attr_accessor :ResultList, :RequestId
|
2575
|
+
|
2576
|
+
def initialize(resultlist=nil, requestid=nil)
|
2577
|
+
@ResultList = resultlist
|
2578
|
+
@RequestId = requestid
|
2579
|
+
end
|
2580
|
+
|
2581
|
+
def deserialize(params)
|
2582
|
+
unless params['ResultList'].nil?
|
2583
|
+
@ResultList = []
|
2584
|
+
params['ResultList'].each do |i|
|
2585
|
+
aianalysisresult_tmp = AIAnalysisResult.new
|
2586
|
+
aianalysisresult_tmp.deserialize(i)
|
2587
|
+
@ResultList << aianalysisresult_tmp
|
2588
|
+
end
|
2589
|
+
end
|
2590
|
+
@RequestId = params['RequestId']
|
2591
|
+
end
|
2592
|
+
end
|
2593
|
+
|
2501
2594
|
# DescribeAICallExtractResult请求参数结构体
|
2502
2595
|
class DescribeAICallExtractResultRequest < TencentCloud::Common::AbstractModel
|
2503
2596
|
# @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
@@ -5136,6 +5229,26 @@ module TencentCloud
|
|
5136
5229
|
end
|
5137
5230
|
end
|
5138
5231
|
|
5232
|
+
# 调用服务端主动发起请求到LLM
|
5233
|
+
class InvokeLLM < TencentCloud::Common::AbstractModel
|
5234
|
+
# @param Content: 请求LLM的内容
|
5235
|
+
# @type Content: String
|
5236
|
+
# @param Interrupt: 是否允许该文本打断机器人说话
|
5237
|
+
# @type Interrupt: Boolean
|
5238
|
+
|
5239
|
+
attr_accessor :Content, :Interrupt
|
5240
|
+
|
5241
|
+
def initialize(content=nil, interrupt=nil)
|
5242
|
+
@Content = content
|
5243
|
+
@Interrupt = interrupt
|
5244
|
+
end
|
5245
|
+
|
5246
|
+
def deserialize(params)
|
5247
|
+
@Content = params['Content']
|
5248
|
+
@Interrupt = params['Interrupt']
|
5249
|
+
end
|
5250
|
+
end
|
5251
|
+
|
5139
5252
|
# 单条消息
|
5140
5253
|
class Message < TencentCloud::Common::AbstractModel
|
5141
5254
|
# @param Type: 消息类型
|
@@ -5284,14 +5397,20 @@ module TencentCloud
|
|
5284
5397
|
# @type ApplyId: Integer
|
5285
5398
|
# @param Prefix: 送号前缀
|
5286
5399
|
# @type Prefix: String
|
5400
|
+
# @param MobileNddPrefix: 国内长途手机前缀码
|
5401
|
+
# @type MobileNddPrefix: String
|
5402
|
+
# @param LocalNumberTrimAC: 同市固话去掉区号
|
5403
|
+
# @type LocalNumberTrimAC: Boolean
|
5287
5404
|
|
5288
|
-
attr_accessor :SdkAppId, :DetailList, :ApplyId, :Prefix
|
5405
|
+
attr_accessor :SdkAppId, :DetailList, :ApplyId, :Prefix, :MobileNddPrefix, :LocalNumberTrimAC
|
5289
5406
|
|
5290
|
-
def initialize(sdkappid=nil, detaillist=nil, applyid=nil, prefix=nil)
|
5407
|
+
def initialize(sdkappid=nil, detaillist=nil, applyid=nil, prefix=nil, mobilenddprefix=nil, localnumbertrimac=nil)
|
5291
5408
|
@SdkAppId = sdkappid
|
5292
5409
|
@DetailList = detaillist
|
5293
5410
|
@ApplyId = applyid
|
5294
5411
|
@Prefix = prefix
|
5412
|
+
@MobileNddPrefix = mobilenddprefix
|
5413
|
+
@LocalNumberTrimAC = localnumbertrimac
|
5295
5414
|
end
|
5296
5415
|
|
5297
5416
|
def deserialize(params)
|
@@ -5306,6 +5425,8 @@ module TencentCloud
|
|
5306
5425
|
end
|
5307
5426
|
@ApplyId = params['ApplyId']
|
5308
5427
|
@Prefix = params['Prefix']
|
5428
|
+
@MobileNddPrefix = params['MobileNddPrefix']
|
5429
|
+
@LocalNumberTrimAC = params['LocalNumberTrimAC']
|
5309
5430
|
end
|
5310
5431
|
end
|
5311
5432
|
|
@@ -5476,15 +5597,18 @@ module TencentCloud
|
|
5476
5597
|
# @type MaxCallPSec: Integer
|
5477
5598
|
# @param OutboundCalleeFormat: 呼出被叫格式,使用 {+E.164} 或 {E.164},
|
5478
5599
|
# @type OutboundCalleeFormat: String
|
5600
|
+
# @param CarrierPhoneNumber: 运营商号码
|
5601
|
+
# @type CarrierPhoneNumber: String
|
5479
5602
|
|
5480
|
-
attr_accessor :CallType, :PhoneNumber, :MaxCallCount, :MaxCallPSec, :OutboundCalleeFormat
|
5603
|
+
attr_accessor :CallType, :PhoneNumber, :MaxCallCount, :MaxCallPSec, :OutboundCalleeFormat, :CarrierPhoneNumber
|
5481
5604
|
|
5482
|
-
def initialize(calltype=nil, phonenumber=nil, maxcallcount=nil, maxcallpsec=nil, outboundcalleeformat=nil)
|
5605
|
+
def initialize(calltype=nil, phonenumber=nil, maxcallcount=nil, maxcallpsec=nil, outboundcalleeformat=nil, carrierphonenumber=nil)
|
5483
5606
|
@CallType = calltype
|
5484
5607
|
@PhoneNumber = phonenumber
|
5485
5608
|
@MaxCallCount = maxcallcount
|
5486
5609
|
@MaxCallPSec = maxcallpsec
|
5487
5610
|
@OutboundCalleeFormat = outboundcalleeformat
|
5611
|
+
@CarrierPhoneNumber = carrierphonenumber
|
5488
5612
|
end
|
5489
5613
|
|
5490
5614
|
def deserialize(params)
|
@@ -5493,6 +5617,7 @@ module TencentCloud
|
|
5493
5617
|
@MaxCallCount = params['MaxCallCount']
|
5494
5618
|
@MaxCallPSec = params['MaxCallPSec']
|
5495
5619
|
@OutboundCalleeFormat = params['OutboundCalleeFormat']
|
5620
|
+
@CarrierPhoneNumber = params['CarrierPhoneNumber']
|
5496
5621
|
end
|
5497
5622
|
end
|
5498
5623
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ccc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1145
|
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-09-
|
11
|
+
date: 2025-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|