tencentcloud-sdk-ccc 3.0.1028 → 3.0.1029
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/models.rb +53 -22
- 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: 7b7d5638f1323ae4d3921bbb616a9d847dfa462d
|
4
|
+
data.tar.gz: 0290b19c33a1e7a2ac082cef8fbb53bf89723d8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7171138aca3ca0ecf6cebc6a5f079b902d2a934d37618d4b485939f9ee04edd63813d5c02d18cb143640f142cca5f2bbf9a6bdc536905c71e85274e01223e23
|
7
|
+
data.tar.gz: cee9e1b18be3d7bc61c79e043aa753c80cfd6a2f49a186194877a064f27a8a9862f9aabd0fffb6dd92392c4e5000ae5d52e81fdd12cc588ac2cfab2656dfd1eb
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1029
|
data/lib/v20200210/models.rb
CHANGED
@@ -791,15 +791,22 @@ module TencentCloud
|
|
791
791
|
# @type Callers: Array
|
792
792
|
# @param PromptVariables: 提示词变量
|
793
793
|
# @type PromptVariables: Array
|
794
|
+
# @param Variables: 通用变量: <p>提示词变量</p> <p>欢迎语变量</p> <p> dify变量</p>
|
794
795
|
|
795
|
-
|
796
|
+
# 1. dify-inputs-xxx 为dify的inputs变量
|
797
|
+
# 2. dify-inputs-user 为dify的user值
|
798
|
+
# 3. dify-inputs-conversation_id 为dify的conversation_id值
|
799
|
+
# @type Variables: Array
|
800
|
+
|
801
|
+
attr_accessor :SdkAppId, :AIAgentId, :Callee, :Callers, :PromptVariables, :Variables
|
796
802
|
|
797
|
-
def initialize(sdkappid=nil, aiagentid=nil, callee=nil, callers=nil, promptvariables=nil)
|
803
|
+
def initialize(sdkappid=nil, aiagentid=nil, callee=nil, callers=nil, promptvariables=nil, variables=nil)
|
798
804
|
@SdkAppId = sdkappid
|
799
805
|
@AIAgentId = aiagentid
|
800
806
|
@Callee = callee
|
801
807
|
@Callers = callers
|
802
808
|
@PromptVariables = promptvariables
|
809
|
+
@Variables = variables
|
803
810
|
end
|
804
811
|
|
805
812
|
def deserialize(params)
|
@@ -815,6 +822,14 @@ module TencentCloud
|
|
815
822
|
@PromptVariables << variable_tmp
|
816
823
|
end
|
817
824
|
end
|
825
|
+
unless params['Variables'].nil?
|
826
|
+
@Variables = []
|
827
|
+
params['Variables'].each do |i|
|
828
|
+
variable_tmp = Variable.new
|
829
|
+
variable_tmp.deserialize(i)
|
830
|
+
@Variables << variable_tmp
|
831
|
+
end
|
832
|
+
end
|
818
833
|
end
|
819
834
|
end
|
820
835
|
|
@@ -844,25 +859,13 @@ module TencentCloud
|
|
844
859
|
# @type SdkAppId: Integer
|
845
860
|
# @param Callee: 被叫号码
|
846
861
|
# @type Callee: String
|
847
|
-
# @param
|
848
|
-
# @type SystemPrompt: String
|
849
|
-
# @param LLMType: 模型接口协议类型,目前兼容三种协议类型:
|
862
|
+
# @param LLMType: 模型接口协议类型,目前兼容四种协议类型:
|
850
863
|
|
851
864
|
# - OpenAI协议(包括GPT、混元、DeepSeek等):"openai"
|
852
865
|
# - Azure协议:"azure"
|
853
866
|
# - Minimax协议:"minimax"
|
867
|
+
# - Dify协议: "dify"
|
854
868
|
# @type LLMType: String
|
855
|
-
# @param Model: 模型名称,如
|
856
|
-
|
857
|
-
# - OpenAI协议
|
858
|
-
# "gpt-4o-mini","gpt-4o","hunyuan-standard", "hunyuan-turbo","deepseek-chat";
|
859
|
-
|
860
|
-
# - Azure协议
|
861
|
-
# "gpt-4o-mini", "gpt-4o";
|
862
|
-
|
863
|
-
# - Minmax协议
|
864
|
-
# "deepseek-chat".
|
865
|
-
# @type Model: String
|
866
869
|
# @param APIKey: 模型API密钥,获取鉴权信息方式请参见各模型官网
|
867
870
|
|
868
871
|
# - OpenAI协议:[GPT](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key),[混元](https://cloud.tencent.com/document/product/1729/111008),[DeepSeek](https://api-docs.deepseek.com/zh-cn/);
|
@@ -884,6 +887,19 @@ module TencentCloud
|
|
884
887
|
# - Minimax协议
|
885
888
|
# "https://api.minimax.chat/v1"
|
886
889
|
# @type APIUrl: String
|
890
|
+
# @param SystemPrompt: 用于设定AI人设、说话规则、任务等的全局提示词。示例:## 人设您是人民医院友善、和蔼的随访医生李医生,正在给患者小明的家长打电话,原因是医院要求小明2024-08-08回院复查手术恢复情况,但小明没有来。您需要按照任务流程对小明家长进行电话随访调查。## 要求简洁回复:使用简练语言,每次最多询问一个问题,不要在一个回复中询问多个问题。富有变化:尽量使表达富有变化,表达机械重复。自然亲切:使用日常语言,尽量显得专业并亲切。提到时间时使用口语表述,如下周三、6月18日。积极主动:尝试引导对话,每个回复通常以问题或下一步建议来结尾。询问清楚:如果对方部分回答了您的问题,或者回答很模糊,请通过追问来确保回答的完整明确。遵循任务:当对方的回答偏离了您的任务时,及时引导对方回到任务中。不要从头开始重复,从偏离的地方继续询问。诚实可靠:对于客户的提问,如果不确定请务必不要编造,礼貌告知对方不清楚。不要捏造患者未提及的症状史、用药史、治疗史。其他注意点:避免提到病情恶化、恢复不理想或疾病名称等使用会使患者感到紧张的表述。不要问患者已经直接或间接回答过的问题,例如患者已经说没有不适症状,那就不要再问手术部位是否有红肿疼痛症状的问题。##任务: 1.自我介绍您是人民医院负责随访的李医生,并说明致电的目的。2.询问被叫方是否是小明家长。 - 如果不是小明家长,请礼貌表达歉意,并使用 call_end 挂断电话。- 如果小明家长没空,请礼貌告诉对方稍后会重新致电,并使用 end_call 挂断电话。3.询问小明出院后水肿情况如何,较出院时是否有变化。- 如果水肿变严重,直接跳转步骤7。4.询问出院后是否给小朋友量过体温,是否出现过发烧情况。- 如果没有量过体温,请礼貌告诉家长出院后三个月内需要每天观察体温。- 如果出现过发烧,请直接跳转步骤7。5.询问出院后是否给小朋友按时服药。- 如果没有按时服药,请友善提醒家长严格按医嘱服用药物,避免影响手术效果。6.询问小朋友在饮食上是否做到低盐低脂,适量吃优质蛋白如鸡蛋、牛奶、瘦肉等。- 如果没有做到,请友善提醒家长低盐低脂和优质蛋白有助小朋友尽快恢复。7.告知家长医生要求6月18日回院复查,但没看到有相关复诊记录。提醒家长尽快前往医院体检复查血化验、尿常规。8.询问家长是否有问题需要咨询,如果没有请礼貌道别并用call_end挂断电话。
|
891
|
+
# @type SystemPrompt: String
|
892
|
+
# @param Model: 模型名称,如
|
893
|
+
|
894
|
+
# - OpenAI协议
|
895
|
+
# "gpt-4o-mini","gpt-4o","hunyuan-standard", "hunyuan-turbo","deepseek-chat";
|
896
|
+
|
897
|
+
# - Azure协议
|
898
|
+
# "gpt-4o-mini", "gpt-4o";
|
899
|
+
|
900
|
+
# - Minmax协议
|
901
|
+
# "deepseek-chat".
|
902
|
+
# @type Model: String
|
887
903
|
# @param VoiceType: 默认提供以下音色参数值可选择,如需自定义音色VoiceType请留空并在参数CustomTTSConfig中配置
|
888
904
|
|
889
905
|
# 汉语:
|
@@ -1061,17 +1077,23 @@ module TencentCloud
|
|
1061
1077
|
# @type ExtractConfig: Array
|
1062
1078
|
# @param Temperature: 模型温度控制
|
1063
1079
|
# @type Temperature: Float
|
1080
|
+
# @param Variables: 通用变量: <p>提示词变量</p> <p>欢迎语变量</p> <p> dify变量</p>
|
1081
|
+
|
1082
|
+
# 1. dify-inputs-xxx 为dify的inputs变量
|
1083
|
+
# 2. dify-inputs-user 为dify的user值
|
1084
|
+
# 3. dify-inputs-conversation_id 为dify的conversation_id值
|
1085
|
+
# @type Variables: Array
|
1064
1086
|
|
1065
|
-
attr_accessor :SdkAppId, :Callee, :
|
1087
|
+
attr_accessor :SdkAppId, :Callee, :LLMType, :APIKey, :APIUrl, :SystemPrompt, :Model, :VoiceType, :Callers, :WelcomeMessage, :WelcomeType, :WelcomeMessagePriority, :MaxDuration, :Languages, :InterruptMode, :InterruptSpeechDuration, :EndFunctionEnable, :EndFunctionDesc, :TransferFunctionEnable, :TransferItems, :NotifyDuration, :NotifyMessage, :NotifyMaxCount, :CustomTTSConfig, :PromptVariables, :VadSilenceTime, :ExtractConfig, :Temperature, :Variables
|
1066
1088
|
|
1067
|
-
def initialize(sdkappid=nil, callee=nil,
|
1089
|
+
def initialize(sdkappid=nil, callee=nil, llmtype=nil, apikey=nil, apiurl=nil, systemprompt=nil, model=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, temperature=nil, variables=nil)
|
1068
1090
|
@SdkAppId = sdkappid
|
1069
1091
|
@Callee = callee
|
1070
|
-
@SystemPrompt = systemprompt
|
1071
1092
|
@LLMType = llmtype
|
1072
|
-
@Model = model
|
1073
1093
|
@APIKey = apikey
|
1074
1094
|
@APIUrl = apiurl
|
1095
|
+
@SystemPrompt = systemprompt
|
1096
|
+
@Model = model
|
1075
1097
|
@VoiceType = voicetype
|
1076
1098
|
@Callers = callers
|
1077
1099
|
@WelcomeMessage = welcomemessage
|
@@ -1093,16 +1115,17 @@ module TencentCloud
|
|
1093
1115
|
@VadSilenceTime = vadsilencetime
|
1094
1116
|
@ExtractConfig = extractconfig
|
1095
1117
|
@Temperature = temperature
|
1118
|
+
@Variables = variables
|
1096
1119
|
end
|
1097
1120
|
|
1098
1121
|
def deserialize(params)
|
1099
1122
|
@SdkAppId = params['SdkAppId']
|
1100
1123
|
@Callee = params['Callee']
|
1101
|
-
@SystemPrompt = params['SystemPrompt']
|
1102
1124
|
@LLMType = params['LLMType']
|
1103
|
-
@Model = params['Model']
|
1104
1125
|
@APIKey = params['APIKey']
|
1105
1126
|
@APIUrl = params['APIUrl']
|
1127
|
+
@SystemPrompt = params['SystemPrompt']
|
1128
|
+
@Model = params['Model']
|
1106
1129
|
@VoiceType = params['VoiceType']
|
1107
1130
|
@Callers = params['Callers']
|
1108
1131
|
@WelcomeMessage = params['WelcomeMessage']
|
@@ -1145,6 +1168,14 @@ module TencentCloud
|
|
1145
1168
|
end
|
1146
1169
|
end
|
1147
1170
|
@Temperature = params['Temperature']
|
1171
|
+
unless params['Variables'].nil?
|
1172
|
+
@Variables = []
|
1173
|
+
params['Variables'].each do |i|
|
1174
|
+
variable_tmp = Variable.new
|
1175
|
+
variable_tmp.deserialize(i)
|
1176
|
+
@Variables << variable_tmp
|
1177
|
+
end
|
1178
|
+
end
|
1148
1179
|
end
|
1149
1180
|
end
|
1150
1181
|
|
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.1029
|
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-03-
|
11
|
+
date: 2025-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|