tencentcloud-sdk-ccc 3.0.988 → 3.0.989
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 +172 -3
- 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: 2c09611cbe528fc6ae85abb22c26b5b1a33cd4df
|
4
|
+
data.tar.gz: b442c714e48eeab9a6239c347640ab93d417e18d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a14c77219fbb82a7d5a2130833bb8c8ef7fbbfc65472f5bbf3e198e5e2a82a343b7f2479ea500f75dfbe2161fc6b7f157dd1c92fb42ad6e24d0219d643319e0
|
7
|
+
data.tar.gz: 0bef059f36c4b2842f191a7859c4a65f9e86309c51d2c5ce35fcbb0f0da14b90726f4dc3f7e2fb6f8d85f441d8ff8242b904a7f7874f9a30870505bf122c3d65
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.989
|
data/lib/v20200210/client.rb
CHANGED
@@ -537,6 +537,30 @@ module TencentCloud
|
|
537
537
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
538
538
|
end
|
539
539
|
|
540
|
+
# 获取 AI 通话内容提取结果。
|
541
|
+
|
542
|
+
# @param request: Request instance for DescribeAICallExtractResult.
|
543
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::DescribeAICallExtractResultRequest`
|
544
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeAICallExtractResultResponse`
|
545
|
+
def DescribeAICallExtractResult(request)
|
546
|
+
body = send_request('DescribeAICallExtractResult', request.serialize)
|
547
|
+
response = JSON.parse(body)
|
548
|
+
if response['Response'].key?('Error') == false
|
549
|
+
model = DescribeAICallExtractResultResponse.new
|
550
|
+
model.deserialize(response['Response'])
|
551
|
+
model
|
552
|
+
else
|
553
|
+
code = response['Response']['Error']['Code']
|
554
|
+
message = response['Response']['Error']['Message']
|
555
|
+
reqid = response['Response']['RequestId']
|
556
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
557
|
+
end
|
558
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
559
|
+
raise e
|
560
|
+
rescue StandardError => e
|
561
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
562
|
+
end
|
563
|
+
|
540
564
|
# 查询生效运营商白名单规则
|
541
565
|
|
542
566
|
# @param request: Request instance for DescribeActiveCarrierPrivilegeNumber.
|
data/lib/v20200210/models.rb
CHANGED
@@ -17,6 +17,105 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Ccc
|
19
19
|
module V20200210
|
20
|
+
# AI 通话提取配置项
|
21
|
+
class AICallExtractConfigElement < TencentCloud::Common::AbstractModel
|
22
|
+
# @param InfoType: 配置项类型,包括
|
23
|
+
# Text 文本
|
24
|
+
# Selector 选项
|
25
|
+
# Boolean 布尔值
|
26
|
+
# Number 数字
|
27
|
+
# @type InfoType: String
|
28
|
+
# @param InfoName: 配置项名称,不可重复
|
29
|
+
# @type InfoName: String
|
30
|
+
# @param InfoContent: 配置项具体内容
|
31
|
+
# @type InfoContent: String
|
32
|
+
# @param Examples: 配置项提取内容示例
|
33
|
+
# @type Examples: Array
|
34
|
+
# @param Choices: InfoType 为 Selector,需要配置此字段
|
35
|
+
# @type Choices: Array
|
36
|
+
|
37
|
+
attr_accessor :InfoType, :InfoName, :InfoContent, :Examples, :Choices
|
38
|
+
|
39
|
+
def initialize(infotype=nil, infoname=nil, infocontent=nil, examples=nil, choices=nil)
|
40
|
+
@InfoType = infotype
|
41
|
+
@InfoName = infoname
|
42
|
+
@InfoContent = infocontent
|
43
|
+
@Examples = examples
|
44
|
+
@Choices = choices
|
45
|
+
end
|
46
|
+
|
47
|
+
def deserialize(params)
|
48
|
+
@InfoType = params['InfoType']
|
49
|
+
@InfoName = params['InfoName']
|
50
|
+
@InfoContent = params['InfoContent']
|
51
|
+
@Examples = params['Examples']
|
52
|
+
@Choices = params['Choices']
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# AI 通话提取结果。
|
57
|
+
class AICallExtractResultElement < TencentCloud::Common::AbstractModel
|
58
|
+
# @param InfoType: 提取信息的类型
|
59
|
+
# Text 文本
|
60
|
+
# Selector 选项
|
61
|
+
# Boolean 布尔值
|
62
|
+
# Number 数字
|
63
|
+
# @type InfoType: String
|
64
|
+
# @param InfoName: 提取信息的名称
|
65
|
+
# @type InfoName: String
|
66
|
+
# @param InfoContent: 提取信息的具体描述
|
67
|
+
# @type InfoContent: String
|
68
|
+
# @param Result: 提取信息的具体结果
|
69
|
+
# @type Result: :class:`Tencentcloud::Ccc.v20200210.models.AICallExtractResultInfo`
|
70
|
+
|
71
|
+
attr_accessor :InfoType, :InfoName, :InfoContent, :Result
|
72
|
+
|
73
|
+
def initialize(infotype=nil, infoname=nil, infocontent=nil, result=nil)
|
74
|
+
@InfoType = infotype
|
75
|
+
@InfoName = infoname
|
76
|
+
@InfoContent = infocontent
|
77
|
+
@Result = result
|
78
|
+
end
|
79
|
+
|
80
|
+
def deserialize(params)
|
81
|
+
@InfoType = params['InfoType']
|
82
|
+
@InfoName = params['InfoName']
|
83
|
+
@InfoContent = params['InfoContent']
|
84
|
+
unless params['Result'].nil?
|
85
|
+
@Result = AICallExtractResultInfo.new
|
86
|
+
@Result.deserialize(params['Result'])
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# AI 通话结果具体信息
|
92
|
+
class AICallExtractResultInfo < TencentCloud::Common::AbstractModel
|
93
|
+
# @param Text: 提取的类型是文本
|
94
|
+
# @type Text: String
|
95
|
+
# @param Chosen: 提取的内型是选项
|
96
|
+
# @type Chosen: Array
|
97
|
+
# @param Boolean: 提取类型是布尔值
|
98
|
+
# @type Boolean: Boolean
|
99
|
+
# @param Number: 提取类型是数字
|
100
|
+
# @type Number: Float
|
101
|
+
|
102
|
+
attr_accessor :Text, :Chosen, :Boolean, :Number
|
103
|
+
|
104
|
+
def initialize(text=nil, chosen=nil, boolean=nil, number=nil)
|
105
|
+
@Text = text
|
106
|
+
@Chosen = chosen
|
107
|
+
@Boolean = boolean
|
108
|
+
@Number = number
|
109
|
+
end
|
110
|
+
|
111
|
+
def deserialize(params)
|
112
|
+
@Text = params['Text']
|
113
|
+
@Chosen = params['Chosen']
|
114
|
+
@Boolean = params['Boolean']
|
115
|
+
@Number = params['Number']
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
20
119
|
# AI转人工配置项
|
21
120
|
class AITransferItem < TencentCloud::Common::AbstractModel
|
22
121
|
# @param TransferFunctionName: 转人工的function calling 名称
|
@@ -827,6 +926,8 @@ module TencentCloud
|
|
827
926
|
# @param WelcomeType: 0:使用welcomeMessage(为空时,被叫先说话;不为空时,机器人先说话)
|
828
927
|
# 1: 使用ai根据prompt自动生成welcomeMessage并先说话
|
829
928
|
# @type WelcomeType: Integer
|
929
|
+
# @param WelcomeMessagePriority: 0: 默认可打断, 1:高优先不可打断
|
930
|
+
# @type WelcomeMessagePriority: Integer
|
830
931
|
# @param MaxDuration: 最大等待时长(毫秒),默认60秒,超过这个时间用户没说话,自动挂断
|
831
932
|
# @type MaxDuration: Integer
|
832
933
|
# @param Languages: 语音识别支持的语言, 默认是"zh" 中文,
|
@@ -854,7 +955,7 @@ module TencentCloud
|
|
854
955
|
# 19. Italian = "it" # 意大利语
|
855
956
|
# 20. Russian = "ru" # 俄语
|
856
957
|
# @type Languages: Array
|
857
|
-
# @param InterruptMode: 打断AI说话模式,默认为0,0
|
958
|
+
# @param InterruptMode: 打断AI说话模式,默认为0,0表示自动打断,1表示不打断。
|
858
959
|
# @type InterruptMode: Integer
|
859
960
|
# @param InterruptSpeechDuration: InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断。
|
860
961
|
# @type InterruptSpeechDuration: Integer
|
@@ -956,10 +1057,12 @@ module TencentCloud
|
|
956
1057
|
# @type PromptVariables: Array
|
957
1058
|
# @param VadSilenceTime: 语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。
|
958
1059
|
# @type VadSilenceTime: Integer
|
1060
|
+
# @param ExtractConfig: 通话内容提取配置
|
1061
|
+
# @type ExtractConfig: Array
|
959
1062
|
|
960
|
-
attr_accessor :SdkAppId, :Callee, :SystemPrompt, :LLMType, :Model, :APIKey, :APIUrl, :VoiceType, :Callers, :WelcomeMessage, :WelcomeType, :MaxDuration, :Languages, :InterruptMode, :InterruptSpeechDuration, :EndFunctionEnable, :EndFunctionDesc, :TransferFunctionEnable, :TransferItems, :NotifyDuration, :NotifyMessage, :NotifyMaxCount, :CustomTTSConfig, :PromptVariables, :VadSilenceTime
|
1063
|
+
attr_accessor :SdkAppId, :Callee, :SystemPrompt, :LLMType, :Model, :APIKey, :APIUrl, :VoiceType, :Callers, :WelcomeMessage, :WelcomeType, :WelcomeMessagePriority, :MaxDuration, :Languages, :InterruptMode, :InterruptSpeechDuration, :EndFunctionEnable, :EndFunctionDesc, :TransferFunctionEnable, :TransferItems, :NotifyDuration, :NotifyMessage, :NotifyMaxCount, :CustomTTSConfig, :PromptVariables, :VadSilenceTime, :ExtractConfig
|
961
1064
|
|
962
|
-
def initialize(sdkappid=nil, callee=nil, systemprompt=nil, llmtype=nil, model=nil, apikey=nil, apiurl=nil, voicetype=nil, callers=nil, welcomemessage=nil, welcometype=nil, maxduration=nil, languages=nil, interruptmode=nil, interruptspeechduration=nil, endfunctionenable=nil, endfunctiondesc=nil, transferfunctionenable=nil, transferitems=nil, notifyduration=nil, notifymessage=nil, notifymaxcount=nil, customttsconfig=nil, promptvariables=nil, vadsilencetime=nil)
|
1065
|
+
def initialize(sdkappid=nil, callee=nil, systemprompt=nil, llmtype=nil, model=nil, apikey=nil, apiurl=nil, voicetype=nil, callers=nil, welcomemessage=nil, welcometype=nil, welcomemessagepriority=nil, maxduration=nil, languages=nil, interruptmode=nil, interruptspeechduration=nil, endfunctionenable=nil, endfunctiondesc=nil, transferfunctionenable=nil, transferitems=nil, notifyduration=nil, notifymessage=nil, notifymaxcount=nil, customttsconfig=nil, promptvariables=nil, vadsilencetime=nil, extractconfig=nil)
|
963
1066
|
@SdkAppId = sdkappid
|
964
1067
|
@Callee = callee
|
965
1068
|
@SystemPrompt = systemprompt
|
@@ -971,6 +1074,7 @@ module TencentCloud
|
|
971
1074
|
@Callers = callers
|
972
1075
|
@WelcomeMessage = welcomemessage
|
973
1076
|
@WelcomeType = welcometype
|
1077
|
+
@WelcomeMessagePriority = welcomemessagepriority
|
974
1078
|
@MaxDuration = maxduration
|
975
1079
|
@Languages = languages
|
976
1080
|
@InterruptMode = interruptmode
|
@@ -985,6 +1089,7 @@ module TencentCloud
|
|
985
1089
|
@CustomTTSConfig = customttsconfig
|
986
1090
|
@PromptVariables = promptvariables
|
987
1091
|
@VadSilenceTime = vadsilencetime
|
1092
|
+
@ExtractConfig = extractconfig
|
988
1093
|
end
|
989
1094
|
|
990
1095
|
def deserialize(params)
|
@@ -999,6 +1104,7 @@ module TencentCloud
|
|
999
1104
|
@Callers = params['Callers']
|
1000
1105
|
@WelcomeMessage = params['WelcomeMessage']
|
1001
1106
|
@WelcomeType = params['WelcomeType']
|
1107
|
+
@WelcomeMessagePriority = params['WelcomeMessagePriority']
|
1002
1108
|
@MaxDuration = params['MaxDuration']
|
1003
1109
|
@Languages = params['Languages']
|
1004
1110
|
@InterruptMode = params['InterruptMode']
|
@@ -1027,6 +1133,14 @@ module TencentCloud
|
|
1027
1133
|
end
|
1028
1134
|
end
|
1029
1135
|
@VadSilenceTime = params['VadSilenceTime']
|
1136
|
+
unless params['ExtractConfig'].nil?
|
1137
|
+
@ExtractConfig = []
|
1138
|
+
params['ExtractConfig'].each do |i|
|
1139
|
+
aicallextractconfigelement_tmp = AICallExtractConfigElement.new
|
1140
|
+
aicallextractconfigelement_tmp.deserialize(i)
|
1141
|
+
@ExtractConfig << aicallextractconfigelement_tmp
|
1142
|
+
end
|
1143
|
+
end
|
1030
1144
|
end
|
1031
1145
|
end
|
1032
1146
|
|
@@ -1931,6 +2045,61 @@ module TencentCloud
|
|
1931
2045
|
end
|
1932
2046
|
end
|
1933
2047
|
|
2048
|
+
# DescribeAICallExtractResult请求参数结构体
|
2049
|
+
class DescribeAICallExtractResultRequest < TencentCloud::Common::AbstractModel
|
2050
|
+
# @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
2051
|
+
# @type SdkAppId: Integer
|
2052
|
+
# @param SessionId: 会话 ID
|
2053
|
+
# @type SessionId: String
|
2054
|
+
# @param StartTime: 查找起始时间
|
2055
|
+
# @type StartTime: Integer
|
2056
|
+
# @param EndTime: 查找结束时间
|
2057
|
+
# @type EndTime: Integer
|
2058
|
+
|
2059
|
+
attr_accessor :SdkAppId, :SessionId, :StartTime, :EndTime
|
2060
|
+
|
2061
|
+
def initialize(sdkappid=nil, sessionid=nil, starttime=nil, endtime=nil)
|
2062
|
+
@SdkAppId = sdkappid
|
2063
|
+
@SessionId = sessionid
|
2064
|
+
@StartTime = starttime
|
2065
|
+
@EndTime = endtime
|
2066
|
+
end
|
2067
|
+
|
2068
|
+
def deserialize(params)
|
2069
|
+
@SdkAppId = params['SdkAppId']
|
2070
|
+
@SessionId = params['SessionId']
|
2071
|
+
@StartTime = params['StartTime']
|
2072
|
+
@EndTime = params['EndTime']
|
2073
|
+
end
|
2074
|
+
end
|
2075
|
+
|
2076
|
+
# DescribeAICallExtractResult返回参数结构体
|
2077
|
+
class DescribeAICallExtractResultResponse < TencentCloud::Common::AbstractModel
|
2078
|
+
# @param ResultList: 结果列表
|
2079
|
+
# @type ResultList: Array
|
2080
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2081
|
+
# @type RequestId: String
|
2082
|
+
|
2083
|
+
attr_accessor :ResultList, :RequestId
|
2084
|
+
|
2085
|
+
def initialize(resultlist=nil, requestid=nil)
|
2086
|
+
@ResultList = resultlist
|
2087
|
+
@RequestId = requestid
|
2088
|
+
end
|
2089
|
+
|
2090
|
+
def deserialize(params)
|
2091
|
+
unless params['ResultList'].nil?
|
2092
|
+
@ResultList = []
|
2093
|
+
params['ResultList'].each do |i|
|
2094
|
+
aicallextractresultelement_tmp = AICallExtractResultElement.new
|
2095
|
+
aicallextractresultelement_tmp.deserialize(i)
|
2096
|
+
@ResultList << aicallextractresultelement_tmp
|
2097
|
+
end
|
2098
|
+
end
|
2099
|
+
@RequestId = params['RequestId']
|
2100
|
+
end
|
2101
|
+
end
|
2102
|
+
|
1934
2103
|
# DescribeActiveCarrierPrivilegeNumber请求参数结构体
|
1935
2104
|
class DescribeActiveCarrierPrivilegeNumberRequest < TencentCloud::Common::AbstractModel
|
1936
2105
|
# @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
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.989
|
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-01-
|
11
|
+
date: 2025-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|