tencentcloud-sdk-ccc 3.0.981 → 3.0.982
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 +26 -0
- data/lib/v20200210/models.rb +65 -2
- 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: 8c44b4356eebc4bb6a909de82b22f0d0df198d4a
|
4
|
+
data.tar.gz: 950baebbb757239b63998589e54a64e4eee8eeac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfb3e44d0c1cb1c75fc822bab3a1d5266eed3cfe62e30d5b343de6f3437aec26b93d01b41e9c19e8b0f43875e38d37b3db6328223e2e347894eec888f5a36ed5
|
7
|
+
data.tar.gz: 6b6beb38afe46f1f52f5a3fefe3543c8d0f6ee921c4c23809feff3a3fa0e31790ae3decb83b6cace72c4e419665937b94e3cbce737227f48232f4827086c4b2e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.982
|
data/lib/v20200210/client.rb
CHANGED
@@ -105,6 +105,32 @@ module TencentCloud
|
|
105
105
|
|
106
106
|
# 发起通话前,请先确认您的AI模型是否兼容 OpenAI、Azure 或 Minimax 协议,并前往模型服务商网站获取相关鉴权信息。 具体功能说明请参考文档 [腾讯云联络中心AI通话平台](https://cloud.tencent.com/document/product/679/112100)。
|
107
107
|
|
108
|
+
# @param request: Request instance for CreateAIAgentCall.
|
109
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::CreateAIAgentCallRequest`
|
110
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::CreateAIAgentCallResponse`
|
111
|
+
def CreateAIAgentCall(request)
|
112
|
+
body = send_request('CreateAIAgentCall', request.serialize)
|
113
|
+
response = JSON.parse(body)
|
114
|
+
if response['Response'].key?('Error') == false
|
115
|
+
model = CreateAIAgentCallResponse.new
|
116
|
+
model.deserialize(response['Response'])
|
117
|
+
model
|
118
|
+
else
|
119
|
+
code = response['Response']['Error']['Code']
|
120
|
+
message = response['Response']['Error']['Message']
|
121
|
+
reqid = response['Response']['RequestId']
|
122
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
123
|
+
end
|
124
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
125
|
+
raise e
|
126
|
+
rescue StandardError => e
|
127
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
128
|
+
end
|
129
|
+
|
130
|
+
# 用于调用AI模型发起外呼通话,仅限自有电话号码使用,目前开通高级版座席**限时**免费体验。
|
131
|
+
|
132
|
+
# 发起通话前,请先确认您的AI模型是否兼容 OpenAI、Azure 或 Minimax 协议,并前往模型服务商网站获取相关鉴权信息。 具体功能说明请参考文档 [腾讯云联络中心AI通话平台](https://cloud.tencent.com/document/product/679/112100)。
|
133
|
+
|
108
134
|
# @param request: Request instance for CreateAICall.
|
109
135
|
# @type request: :class:`Tencentcloud::ccc::V20200210::CreateAICallRequest`
|
110
136
|
# @rtype: :class:`Tencentcloud::ccc::V20200210::CreateAICallResponse`
|
data/lib/v20200210/models.rb
CHANGED
@@ -680,6 +680,65 @@ module TencentCloud
|
|
680
680
|
end
|
681
681
|
end
|
682
682
|
|
683
|
+
# CreateAIAgentCall请求参数结构体
|
684
|
+
class CreateAIAgentCallRequest < TencentCloud::Common::AbstractModel
|
685
|
+
# @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
686
|
+
# @type SdkAppId: Integer
|
687
|
+
# @param AIAgentId: AI智能体ID
|
688
|
+
# @type AIAgentId: Integer
|
689
|
+
# @param Callee: 被叫号码
|
690
|
+
# @type Callee: String
|
691
|
+
# @param Callers: 主叫号码列表
|
692
|
+
# @type Callers: Array
|
693
|
+
# @param PromptVariables: 提示词变量
|
694
|
+
# @type PromptVariables: Array
|
695
|
+
|
696
|
+
attr_accessor :SdkAppId, :AIAgentId, :Callee, :Callers, :PromptVariables
|
697
|
+
|
698
|
+
def initialize(sdkappid=nil, aiagentid=nil, callee=nil, callers=nil, promptvariables=nil)
|
699
|
+
@SdkAppId = sdkappid
|
700
|
+
@AIAgentId = aiagentid
|
701
|
+
@Callee = callee
|
702
|
+
@Callers = callers
|
703
|
+
@PromptVariables = promptvariables
|
704
|
+
end
|
705
|
+
|
706
|
+
def deserialize(params)
|
707
|
+
@SdkAppId = params['SdkAppId']
|
708
|
+
@AIAgentId = params['AIAgentId']
|
709
|
+
@Callee = params['Callee']
|
710
|
+
@Callers = params['Callers']
|
711
|
+
unless params['PromptVariables'].nil?
|
712
|
+
@PromptVariables = []
|
713
|
+
params['PromptVariables'].each do |i|
|
714
|
+
variable_tmp = Variable.new
|
715
|
+
variable_tmp.deserialize(i)
|
716
|
+
@PromptVariables << variable_tmp
|
717
|
+
end
|
718
|
+
end
|
719
|
+
end
|
720
|
+
end
|
721
|
+
|
722
|
+
# CreateAIAgentCall返回参数结构体
|
723
|
+
class CreateAIAgentCallResponse < TencentCloud::Common::AbstractModel
|
724
|
+
# @param SessionId: 新创建的会话 ID
|
725
|
+
# @type SessionId: String
|
726
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
727
|
+
# @type RequestId: String
|
728
|
+
|
729
|
+
attr_accessor :SessionId, :RequestId
|
730
|
+
|
731
|
+
def initialize(sessionid=nil, requestid=nil)
|
732
|
+
@SessionId = sessionid
|
733
|
+
@RequestId = requestid
|
734
|
+
end
|
735
|
+
|
736
|
+
def deserialize(params)
|
737
|
+
@SessionId = params['SessionId']
|
738
|
+
@RequestId = params['RequestId']
|
739
|
+
end
|
740
|
+
end
|
741
|
+
|
683
742
|
# CreateAICall请求参数结构体
|
684
743
|
class CreateAICallRequest < TencentCloud::Common::AbstractModel
|
685
744
|
# @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
@@ -895,10 +954,12 @@ module TencentCloud
|
|
895
954
|
# @type CustomTTSConfig: String
|
896
955
|
# @param PromptVariables: 提示词变量
|
897
956
|
# @type PromptVariables: Array
|
957
|
+
# @param VadSilenceTime: 语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。
|
958
|
+
# @type VadSilenceTime: Integer
|
898
959
|
|
899
|
-
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
|
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
|
900
961
|
|
901
|
-
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)
|
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)
|
902
963
|
@SdkAppId = sdkappid
|
903
964
|
@Callee = callee
|
904
965
|
@SystemPrompt = systemprompt
|
@@ -923,6 +984,7 @@ module TencentCloud
|
|
923
984
|
@NotifyMaxCount = notifymaxcount
|
924
985
|
@CustomTTSConfig = customttsconfig
|
925
986
|
@PromptVariables = promptvariables
|
987
|
+
@VadSilenceTime = vadsilencetime
|
926
988
|
end
|
927
989
|
|
928
990
|
def deserialize(params)
|
@@ -964,6 +1026,7 @@ module TencentCloud
|
|
964
1026
|
@PromptVariables << variable_tmp
|
965
1027
|
end
|
966
1028
|
end
|
1029
|
+
@VadSilenceTime = params['VadSilenceTime']
|
967
1030
|
end
|
968
1031
|
end
|
969
1032
|
|
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.982
|
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-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|