tencentcloud-sdk-python-ccc 3.0.1298__tar.gz → 3.0.1306__tar.gz

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.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-ccc-3.0.1298 → tencentcloud-sdk-python-ccc-3.0.1306}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-ccc-3.0.1298 → tencentcloud-sdk-python-ccc-3.0.1306}/setup.py +1 -1
  3. {tencentcloud-sdk-python-ccc-3.0.1298 → tencentcloud-sdk-python-ccc-3.0.1306}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-ccc-3.0.1298 → tencentcloud-sdk-python-ccc-3.0.1306}/tencentcloud/ccc/v20200210/ccc_client.py +25 -0
  5. {tencentcloud-sdk-python-ccc-3.0.1298 → tencentcloud-sdk-python-ccc-3.0.1306}/tencentcloud/ccc/v20200210/models.py +159 -0
  6. {tencentcloud-sdk-python-ccc-3.0.1298 → tencentcloud-sdk-python-ccc-3.0.1306}/tencentcloud_sdk_python_ccc.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-ccc-3.0.1306/tencentcloud_sdk_python_ccc.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-ccc-3.0.1298/tencentcloud_sdk_python_ccc.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-ccc-3.0.1298 → tencentcloud-sdk-python-ccc-3.0.1306}/README.rst +0 -0
  10. {tencentcloud-sdk-python-ccc-3.0.1298 → tencentcloud-sdk-python-ccc-3.0.1306}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-ccc-3.0.1298 → tencentcloud-sdk-python-ccc-3.0.1306}/tencentcloud/ccc/__init__.py +0 -0
  12. {tencentcloud-sdk-python-ccc-3.0.1298 → tencentcloud-sdk-python-ccc-3.0.1306}/tencentcloud/ccc/v20200210/__init__.py +0 -0
  13. {tencentcloud-sdk-python-ccc-3.0.1298 → tencentcloud-sdk-python-ccc-3.0.1306}/tencentcloud/ccc/v20200210/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-ccc-3.0.1298 → tencentcloud-sdk-python-ccc-3.0.1306}/tencentcloud_sdk_python_ccc.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-ccc-3.0.1298 → tencentcloud-sdk-python-ccc-3.0.1306}/tencentcloud_sdk_python_ccc.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-ccc-3.0.1298 → tencentcloud-sdk-python-ccc-3.0.1306}/tencentcloud_sdk_python_ccc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-ccc
3
- Version: 3.0.1298
3
+ Version: 3.0.1306
4
4
  Summary: Tencent Cloud Ccc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-ccc',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1298"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1306"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Ccc SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1298'
17
+ __version__ = '3.0.1306'
@@ -95,6 +95,31 @@ class CccClient(AbstractClient):
95
95
  raise TencentCloudSDKException(type(e).__name__, str(e))
96
96
 
97
97
 
98
+ def CreateAIAgentCall(self, request):
99
+ """用于调用AI模型发起外呼通话,仅限自有电话号码使用,目前开通高级版座席**限时**免费体验。
100
+
101
+ 发起通话前,请先确认您的AI模型是否兼容 OpenAI、Azure 或 Minimax 协议,并前往模型服务商网站获取相关鉴权信息。 具体功能说明请参考文档 [腾讯云联络中心AI通话平台](https://cloud.tencent.com/document/product/679/112100)。
102
+
103
+ :param request: Request instance for CreateAIAgentCall.
104
+ :type request: :class:`tencentcloud.ccc.v20200210.models.CreateAIAgentCallRequest`
105
+ :rtype: :class:`tencentcloud.ccc.v20200210.models.CreateAIAgentCallResponse`
106
+
107
+ """
108
+ try:
109
+ params = request._serialize()
110
+ headers = request.headers
111
+ body = self.call("CreateAIAgentCall", params, headers=headers)
112
+ response = json.loads(body)
113
+ model = models.CreateAIAgentCallResponse()
114
+ model._deserialize(response["Response"])
115
+ return model
116
+ except Exception as e:
117
+ if isinstance(e, TencentCloudSDKException):
118
+ raise
119
+ else:
120
+ raise TencentCloudSDKException(type(e).__name__, str(e))
121
+
122
+
98
123
  def CreateAICall(self, request):
99
124
  """用于调用AI模型发起外呼通话,仅限自有电话号码使用,目前开通高级版座席**限时**免费体验。
100
125
 
@@ -1917,6 +1917,150 @@ class CompanyStateInfo(AbstractModel):
1917
1917
 
1918
1918
 
1919
1919
 
1920
+ class CreateAIAgentCallRequest(AbstractModel):
1921
+ """CreateAIAgentCall请求参数结构体
1922
+
1923
+ """
1924
+
1925
+ def __init__(self):
1926
+ r"""
1927
+ :param _SdkAppId: 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
1928
+ :type SdkAppId: int
1929
+ :param _AIAgentId: AI智能体ID
1930
+ :type AIAgentId: int
1931
+ :param _Callee: 被叫号码
1932
+ :type Callee: str
1933
+ :param _Callers: 主叫号码列表
1934
+ :type Callers: list of str
1935
+ :param _PromptVariables: 提示词变量
1936
+ :type PromptVariables: list of Variable
1937
+ """
1938
+ self._SdkAppId = None
1939
+ self._AIAgentId = None
1940
+ self._Callee = None
1941
+ self._Callers = None
1942
+ self._PromptVariables = None
1943
+
1944
+ @property
1945
+ def SdkAppId(self):
1946
+ """应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
1947
+ :rtype: int
1948
+ """
1949
+ return self._SdkAppId
1950
+
1951
+ @SdkAppId.setter
1952
+ def SdkAppId(self, SdkAppId):
1953
+ self._SdkAppId = SdkAppId
1954
+
1955
+ @property
1956
+ def AIAgentId(self):
1957
+ """AI智能体ID
1958
+ :rtype: int
1959
+ """
1960
+ return self._AIAgentId
1961
+
1962
+ @AIAgentId.setter
1963
+ def AIAgentId(self, AIAgentId):
1964
+ self._AIAgentId = AIAgentId
1965
+
1966
+ @property
1967
+ def Callee(self):
1968
+ """被叫号码
1969
+ :rtype: str
1970
+ """
1971
+ return self._Callee
1972
+
1973
+ @Callee.setter
1974
+ def Callee(self, Callee):
1975
+ self._Callee = Callee
1976
+
1977
+ @property
1978
+ def Callers(self):
1979
+ """主叫号码列表
1980
+ :rtype: list of str
1981
+ """
1982
+ return self._Callers
1983
+
1984
+ @Callers.setter
1985
+ def Callers(self, Callers):
1986
+ self._Callers = Callers
1987
+
1988
+ @property
1989
+ def PromptVariables(self):
1990
+ """提示词变量
1991
+ :rtype: list of Variable
1992
+ """
1993
+ return self._PromptVariables
1994
+
1995
+ @PromptVariables.setter
1996
+ def PromptVariables(self, PromptVariables):
1997
+ self._PromptVariables = PromptVariables
1998
+
1999
+
2000
+ def _deserialize(self, params):
2001
+ self._SdkAppId = params.get("SdkAppId")
2002
+ self._AIAgentId = params.get("AIAgentId")
2003
+ self._Callee = params.get("Callee")
2004
+ self._Callers = params.get("Callers")
2005
+ if params.get("PromptVariables") is not None:
2006
+ self._PromptVariables = []
2007
+ for item in params.get("PromptVariables"):
2008
+ obj = Variable()
2009
+ obj._deserialize(item)
2010
+ self._PromptVariables.append(obj)
2011
+ memeber_set = set(params.keys())
2012
+ for name, value in vars(self).items():
2013
+ property_name = name[1:]
2014
+ if property_name in memeber_set:
2015
+ memeber_set.remove(property_name)
2016
+ if len(memeber_set) > 0:
2017
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2018
+
2019
+
2020
+
2021
+ class CreateAIAgentCallResponse(AbstractModel):
2022
+ """CreateAIAgentCall返回参数结构体
2023
+
2024
+ """
2025
+
2026
+ def __init__(self):
2027
+ r"""
2028
+ :param _SessionId: 新创建的会话 ID
2029
+ :type SessionId: str
2030
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2031
+ :type RequestId: str
2032
+ """
2033
+ self._SessionId = None
2034
+ self._RequestId = None
2035
+
2036
+ @property
2037
+ def SessionId(self):
2038
+ """新创建的会话 ID
2039
+ :rtype: str
2040
+ """
2041
+ return self._SessionId
2042
+
2043
+ @SessionId.setter
2044
+ def SessionId(self, SessionId):
2045
+ self._SessionId = SessionId
2046
+
2047
+ @property
2048
+ def RequestId(self):
2049
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2050
+ :rtype: str
2051
+ """
2052
+ return self._RequestId
2053
+
2054
+ @RequestId.setter
2055
+ def RequestId(self, RequestId):
2056
+ self._RequestId = RequestId
2057
+
2058
+
2059
+ def _deserialize(self, params):
2060
+ self._SessionId = params.get("SessionId")
2061
+ self._RequestId = params.get("RequestId")
2062
+
2063
+
1920
2064
  class CreateAICallRequest(AbstractModel):
1921
2065
  """CreateAICall请求参数结构体
1922
2066
 
@@ -2138,6 +2282,8 @@ HoaiMy
2138
2282
  :type CustomTTSConfig: str
2139
2283
  :param _PromptVariables: 提示词变量
2140
2284
  :type PromptVariables: list of Variable
2285
+ :param _VadSilenceTime: 语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。
2286
+ :type VadSilenceTime: int
2141
2287
  """
2142
2288
  self._SdkAppId = None
2143
2289
  self._Callee = None
@@ -2163,6 +2309,7 @@ HoaiMy
2163
2309
  self._NotifyMaxCount = None
2164
2310
  self._CustomTTSConfig = None
2165
2311
  self._PromptVariables = None
2312
+ self._VadSilenceTime = None
2166
2313
 
2167
2314
  @property
2168
2315
  def SdkAppId(self):
@@ -2594,6 +2741,17 @@ HoaiMy
2594
2741
  def PromptVariables(self, PromptVariables):
2595
2742
  self._PromptVariables = PromptVariables
2596
2743
 
2744
+ @property
2745
+ def VadSilenceTime(self):
2746
+ """语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。
2747
+ :rtype: int
2748
+ """
2749
+ return self._VadSilenceTime
2750
+
2751
+ @VadSilenceTime.setter
2752
+ def VadSilenceTime(self, VadSilenceTime):
2753
+ self._VadSilenceTime = VadSilenceTime
2754
+
2597
2755
 
2598
2756
  def _deserialize(self, params):
2599
2757
  self._SdkAppId = params.get("SdkAppId")
@@ -2630,6 +2788,7 @@ HoaiMy
2630
2788
  obj = Variable()
2631
2789
  obj._deserialize(item)
2632
2790
  self._PromptVariables.append(obj)
2791
+ self._VadSilenceTime = params.get("VadSilenceTime")
2633
2792
  memeber_set = set(params.keys())
2634
2793
  for name, value in vars(self).items():
2635
2794
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-ccc
3
- Version: 3.0.1298
3
+ Version: 3.0.1306
4
4
  Summary: Tencent Cloud Ccc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1306
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1298