tencentcloud-sdk-ccc 3.0.1092 → 3.0.1093
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 +95 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35852628e28341bfe93d19a3453caf3cc26f2c9d
|
4
|
+
data.tar.gz: 6ed478bafb0bced6afbc3f383e7ece6ce2d6944d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcc6517373040ad035fbf487945dabf095114ea9f5361346735293a6e2e5d0fe4987ba4108c3306f8f9fea9ff3a8e74e0e8d350a8bba6bd3ee8bb30400674ab7
|
7
|
+
data.tar.gz: 4d73949ce7270c9c4201887c0e631c548d687c6ac7d63bffb4a55dd0c567fa41eafc43a77f96e2d30becb79270c19c4fa2c29361da873d048ead5e5263106bd2
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1093
|
data/lib/v20200210/client.rb
CHANGED
@@ -149,6 +149,30 @@ module TencentCloud
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
150
|
end
|
151
151
|
|
152
|
+
# 提供服务端控制机器人的功能
|
153
|
+
|
154
|
+
# @param request: Request instance for ControlAIConversation.
|
155
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::ControlAIConversationRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::ControlAIConversationResponse`
|
157
|
+
def ControlAIConversation(request)
|
158
|
+
body = send_request('ControlAIConversation', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = ControlAIConversationResponse.new
|
162
|
+
model.deserialize(response['Response'])
|
163
|
+
model
|
164
|
+
else
|
165
|
+
code = response['Response']['Error']['Code']
|
166
|
+
message = response['Response']['Error']['Message']
|
167
|
+
reqid = response['Response']['RequestId']
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
169
|
+
end
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
171
|
+
raise e
|
172
|
+
rescue StandardError => e
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
|
+
end
|
175
|
+
|
152
176
|
# 用于调用AI模型发起外呼通话,仅限自有电话号码使用,目前开通高级版座席**限时**免费体验。
|
153
177
|
|
154
178
|
# 发起通话前,请先确认您的AI模型是否兼容 OpenAI、Azure 或 Minimax 协议,并前往模型服务商网站获取相关鉴权信息。 具体功能说明请参考文档 [腾讯云联络中心AI通话平台](https://cloud.tencent.com/document/product/679/112100)。
|
data/lib/v20200210/models.rb
CHANGED
@@ -978,6 +978,55 @@ module TencentCloud
|
|
978
978
|
end
|
979
979
|
end
|
980
980
|
|
981
|
+
# ControlAIConversation请求参数结构体
|
982
|
+
class ControlAIConversationRequest < TencentCloud::Common::AbstractModel
|
983
|
+
# @param SessionId: 会话 ID
|
984
|
+
# @type SessionId: String
|
985
|
+
# @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
986
|
+
# @type SdkAppId: Integer
|
987
|
+
# @param Command: 控制命令,目前支持命令如下:
|
988
|
+
|
989
|
+
# - ServerPushText,服务端发送文本给AI机器人,AI机器人会播报该文本
|
990
|
+
# @type Command: String
|
991
|
+
# @param ServerPushText: 服务端发送播报文本命令,当Command为ServerPushText时必填
|
992
|
+
# @type ServerPushText: :class:`Tencentcloud::Ccc.v20200210.models.ServerPushText`
|
993
|
+
|
994
|
+
attr_accessor :SessionId, :SdkAppId, :Command, :ServerPushText
|
995
|
+
|
996
|
+
def initialize(sessionid=nil, sdkappid=nil, command=nil, serverpushtext=nil)
|
997
|
+
@SessionId = sessionid
|
998
|
+
@SdkAppId = sdkappid
|
999
|
+
@Command = command
|
1000
|
+
@ServerPushText = serverpushtext
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
def deserialize(params)
|
1004
|
+
@SessionId = params['SessionId']
|
1005
|
+
@SdkAppId = params['SdkAppId']
|
1006
|
+
@Command = params['Command']
|
1007
|
+
unless params['ServerPushText'].nil?
|
1008
|
+
@ServerPushText = ServerPushText.new
|
1009
|
+
@ServerPushText.deserialize(params['ServerPushText'])
|
1010
|
+
end
|
1011
|
+
end
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
# ControlAIConversation返回参数结构体
|
1015
|
+
class ControlAIConversationResponse < TencentCloud::Common::AbstractModel
|
1016
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1017
|
+
# @type RequestId: String
|
1018
|
+
|
1019
|
+
attr_accessor :RequestId
|
1020
|
+
|
1021
|
+
def initialize(requestid=nil)
|
1022
|
+
@RequestId = requestid
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
def deserialize(params)
|
1026
|
+
@RequestId = params['RequestId']
|
1027
|
+
end
|
1028
|
+
end
|
1029
|
+
|
981
1030
|
# CreateAIAgentCall请求参数结构体
|
982
1031
|
class CreateAIAgentCallRequest < TencentCloud::Common::AbstractModel
|
983
1032
|
# @param SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
@@ -5700,6 +5749,52 @@ module TencentCloud
|
|
5700
5749
|
end
|
5701
5750
|
end
|
5702
5751
|
|
5752
|
+
# 服务端控制AI对话机器人播报指定文本
|
5753
|
+
class ServerPushText < TencentCloud::Common::AbstractModel
|
5754
|
+
# @param Text: 服务端推送播报文本
|
5755
|
+
# @type Text: String
|
5756
|
+
# @param Interrupt: 是否允许该文本打断机器人说话
|
5757
|
+
# @type Interrupt: Boolean
|
5758
|
+
# @param StopAfterPlay: 播报完文本后,是否自动关闭对话任务
|
5759
|
+
# @type StopAfterPlay: Boolean
|
5760
|
+
# @param Audio: 服务端推送播报音频
|
5761
|
+
# 格式说明:音频必须为单声道,采样率必须跟对应TTS的采样率保持一致,编码为Base64字符串。
|
5762
|
+
# 输入规则:当提供Audio字段时,将不接受Text字段的输入。系统将直接播放Audio字段中的音频内容。
|
5763
|
+
# @type Audio: String
|
5764
|
+
# @param DropMode: 默认为0,仅在Interrupt为false时有效
|
5765
|
+
# - 0表示当前有交互发生时,会丢弃Interrupt为false的消息
|
5766
|
+
# - 1表示当前有交互发生时,不会丢弃Interrupt为false的消息,而是缓存下来,等待当前交互结束后,再去处理
|
5767
|
+
|
5768
|
+
# 注意:DropMode为1时,允许缓存多个消息,如果后续出现了打断,缓存的消息会被清空
|
5769
|
+
# @type DropMode: Integer
|
5770
|
+
# @param Priority: ServerPushText消息的优先级,0表示可被打断,1表示不会被打断。**目前仅支持传入0,如果需要传入1,请提工单联系我们添加权限。**
|
5771
|
+
# 注意:在接收到Priority=1的消息后,后续其他任何消息都会被忽略(包括Priority=1的消息),直到Priority=1的消息处理结束。该字段可与Interrupt、DropMode字段配合使用。
|
5772
|
+
# 例子:
|
5773
|
+
# - Priority=1、Interrupt=true,会打断现有交互,立刻播报,播报过程中不会被打断
|
5774
|
+
# - Priority=1、Interrupt=false、DropMode=1,会等待当前交互结束,再进行播报,播报过程中不会被打断
|
5775
|
+
# @type Priority: Integer
|
5776
|
+
|
5777
|
+
attr_accessor :Text, :Interrupt, :StopAfterPlay, :Audio, :DropMode, :Priority
|
5778
|
+
|
5779
|
+
def initialize(text=nil, interrupt=nil, stopafterplay=nil, audio=nil, dropmode=nil, priority=nil)
|
5780
|
+
@Text = text
|
5781
|
+
@Interrupt = interrupt
|
5782
|
+
@StopAfterPlay = stopafterplay
|
5783
|
+
@Audio = audio
|
5784
|
+
@DropMode = dropmode
|
5785
|
+
@Priority = priority
|
5786
|
+
end
|
5787
|
+
|
5788
|
+
def deserialize(params)
|
5789
|
+
@Text = params['Text']
|
5790
|
+
@Interrupt = params['Interrupt']
|
5791
|
+
@StopAfterPlay = params['StopAfterPlay']
|
5792
|
+
@Audio = params['Audio']
|
5793
|
+
@DropMode = params['DropMode']
|
5794
|
+
@Priority = params['Priority']
|
5795
|
+
end
|
5796
|
+
end
|
5797
|
+
|
5703
5798
|
# 技能组信息
|
5704
5799
|
class SkillGroupInfoItem < TencentCloud::Common::AbstractModel
|
5705
5800
|
# @param SkillGroupId: 技能组ID
|