tencentcloud-sdk-python-tdai 3.0.1460__tar.gz → 3.1.6__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.
- tencentcloud_sdk_python_tdai-3.1.6/PKG-INFO +46 -0
- {tencentcloud-sdk-python-tdai-3.0.1460 → tencentcloud_sdk_python_tdai-3.1.6}/setup.py +2 -1
- {tencentcloud-sdk-python-tdai-3.0.1460 → tencentcloud_sdk_python_tdai-3.1.6}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-tdai-3.0.1460 → tencentcloud_sdk_python_tdai-3.1.6}/tencentcloud/tdai/v20250717/models.py +55 -10
- {tencentcloud-sdk-python-tdai-3.0.1460 → tencentcloud_sdk_python_tdai-3.1.6}/tencentcloud/tdai/v20250717/tdai_client.py +1 -1
- tencentcloud_sdk_python_tdai-3.1.6/tencentcloud/tdai/v20250717/tdai_client_async.py +350 -0
- tencentcloud_sdk_python_tdai-3.1.6/tencentcloud_sdk_python_tdai.egg-info/PKG-INFO +46 -0
- {tencentcloud-sdk-python-tdai-3.0.1460 → tencentcloud_sdk_python_tdai-3.1.6}/tencentcloud_sdk_python_tdai.egg-info/SOURCES.txt +1 -0
- tencentcloud_sdk_python_tdai-3.1.6/tencentcloud_sdk_python_tdai.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-tdai-3.0.1460/PKG-INFO +0 -45
- tencentcloud-sdk-python-tdai-3.0.1460/tencentcloud_sdk_python_tdai.egg-info/PKG-INFO +0 -45
- tencentcloud-sdk-python-tdai-3.0.1460/tencentcloud_sdk_python_tdai.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-tdai-3.0.1460 → tencentcloud_sdk_python_tdai-3.1.6}/README.rst +0 -0
- {tencentcloud-sdk-python-tdai-3.0.1460 → tencentcloud_sdk_python_tdai-3.1.6}/setup.cfg +0 -0
- {tencentcloud-sdk-python-tdai-3.0.1460 → tencentcloud_sdk_python_tdai-3.1.6}/tencentcloud/tdai/__init__.py +0 -0
- {tencentcloud-sdk-python-tdai-3.0.1460 → tencentcloud_sdk_python_tdai-3.1.6}/tencentcloud/tdai/v20250717/__init__.py +0 -0
- {tencentcloud-sdk-python-tdai-3.0.1460 → tencentcloud_sdk_python_tdai-3.1.6}/tencentcloud/tdai/v20250717/errorcodes.py +0 -0
- {tencentcloud-sdk-python-tdai-3.0.1460 → tencentcloud_sdk_python_tdai-3.1.6}/tencentcloud_sdk_python_tdai.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-tdai-3.0.1460 → tencentcloud_sdk_python_tdai-3.1.6}/tencentcloud_sdk_python_tdai.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-tdai
|
|
3
|
+
Version: 3.1.6
|
|
4
|
+
Summary: Tencent Cloud Tdai SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Platform: any
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.6
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Tdai SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
25
|
+
The SDK works on Python versions:
|
|
26
|
+
|
|
27
|
+
* 2.7 and greater, including 3.x
|
|
28
|
+
|
|
29
|
+
Quick Start
|
|
30
|
+
-----------
|
|
31
|
+
|
|
32
|
+
First, install the library:
|
|
33
|
+
|
|
34
|
+
.. code-block:: sh
|
|
35
|
+
|
|
36
|
+
$ pip install tencentcloud-sdk-python-common
|
|
37
|
+
$ pip install tencentcloud-sdk-python-tdai
|
|
38
|
+
|
|
39
|
+
or download source code from github and install:
|
|
40
|
+
|
|
41
|
+
.. code-block:: sh
|
|
42
|
+
|
|
43
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
44
|
+
$ cd tencentcloud-sdk-python
|
|
45
|
+
$ python package.py --components common tdai
|
|
46
|
+
|
|
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-tdai',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.6,<4.0.0"],
|
|
12
|
+
|
|
12
13
|
version=tencentcloud.__version__,
|
|
13
14
|
description='Tencent Cloud Tdai SDK for Python',
|
|
14
15
|
long_description=open('README.rst').read(),
|
|
@@ -1007,8 +1007,11 @@ class CreateChatCompletionRequest(AbstractModel):
|
|
|
1007
1007
|
r"""
|
|
1008
1008
|
:param _IsHidden: 是否隐藏
|
|
1009
1009
|
:type IsHidden: bool
|
|
1010
|
+
:param _IsChatHidden: 是否隐藏会话
|
|
1011
|
+
:type IsChatHidden: bool
|
|
1010
1012
|
"""
|
|
1011
1013
|
self._IsHidden = None
|
|
1014
|
+
self._IsChatHidden = None
|
|
1012
1015
|
|
|
1013
1016
|
@property
|
|
1014
1017
|
def IsHidden(self):
|
|
@@ -1021,9 +1024,21 @@ class CreateChatCompletionRequest(AbstractModel):
|
|
|
1021
1024
|
def IsHidden(self, IsHidden):
|
|
1022
1025
|
self._IsHidden = IsHidden
|
|
1023
1026
|
|
|
1027
|
+
@property
|
|
1028
|
+
def IsChatHidden(self):
|
|
1029
|
+
r"""是否隐藏会话
|
|
1030
|
+
:rtype: bool
|
|
1031
|
+
"""
|
|
1032
|
+
return self._IsChatHidden
|
|
1033
|
+
|
|
1034
|
+
@IsChatHidden.setter
|
|
1035
|
+
def IsChatHidden(self, IsChatHidden):
|
|
1036
|
+
self._IsChatHidden = IsChatHidden
|
|
1037
|
+
|
|
1024
1038
|
|
|
1025
1039
|
def _deserialize(self, params):
|
|
1026
1040
|
self._IsHidden = params.get("IsHidden")
|
|
1041
|
+
self._IsChatHidden = params.get("IsChatHidden")
|
|
1027
1042
|
memeber_set = set(params.keys())
|
|
1028
1043
|
for name, value in vars(self).items():
|
|
1029
1044
|
property_name = name[1:]
|
|
@@ -1908,12 +1923,18 @@ class DescribeChatDetailRequest(AbstractModel):
|
|
|
1908
1923
|
:type InstanceId: str
|
|
1909
1924
|
:param _ChatId: 会话Id
|
|
1910
1925
|
:type ChatId: str
|
|
1911
|
-
:param
|
|
1912
|
-
:type
|
|
1926
|
+
:param _StreamingId: 流ID
|
|
1927
|
+
:type StreamingId: str
|
|
1928
|
+
:param _BeginStreamingTokenId: 开始拉取的流式TokenID。0表示从该流最早的TokenID开始获取
|
|
1929
|
+
:type BeginStreamingTokenId: str
|
|
1930
|
+
:param _TokenLimit: 单次获取的token数量,默认2000
|
|
1931
|
+
:type TokenLimit: int
|
|
1913
1932
|
"""
|
|
1914
1933
|
self._InstanceId = None
|
|
1915
1934
|
self._ChatId = None
|
|
1916
|
-
self.
|
|
1935
|
+
self._StreamingId = None
|
|
1936
|
+
self._BeginStreamingTokenId = None
|
|
1937
|
+
self._TokenLimit = None
|
|
1917
1938
|
|
|
1918
1939
|
@property
|
|
1919
1940
|
def InstanceId(self):
|
|
@@ -1938,21 +1959,45 @@ class DescribeChatDetailRequest(AbstractModel):
|
|
|
1938
1959
|
self._ChatId = ChatId
|
|
1939
1960
|
|
|
1940
1961
|
@property
|
|
1941
|
-
def
|
|
1942
|
-
r"""
|
|
1962
|
+
def StreamingId(self):
|
|
1963
|
+
r"""流ID
|
|
1964
|
+
:rtype: str
|
|
1965
|
+
"""
|
|
1966
|
+
return self._StreamingId
|
|
1967
|
+
|
|
1968
|
+
@StreamingId.setter
|
|
1969
|
+
def StreamingId(self, StreamingId):
|
|
1970
|
+
self._StreamingId = StreamingId
|
|
1971
|
+
|
|
1972
|
+
@property
|
|
1973
|
+
def BeginStreamingTokenId(self):
|
|
1974
|
+
r"""开始拉取的流式TokenID。0表示从该流最早的TokenID开始获取
|
|
1975
|
+
:rtype: str
|
|
1976
|
+
"""
|
|
1977
|
+
return self._BeginStreamingTokenId
|
|
1978
|
+
|
|
1979
|
+
@BeginStreamingTokenId.setter
|
|
1980
|
+
def BeginStreamingTokenId(self, BeginStreamingTokenId):
|
|
1981
|
+
self._BeginStreamingTokenId = BeginStreamingTokenId
|
|
1982
|
+
|
|
1983
|
+
@property
|
|
1984
|
+
def TokenLimit(self):
|
|
1985
|
+
r"""单次获取的token数量,默认2000
|
|
1943
1986
|
:rtype: int
|
|
1944
1987
|
"""
|
|
1945
|
-
return self.
|
|
1988
|
+
return self._TokenLimit
|
|
1946
1989
|
|
|
1947
|
-
@
|
|
1948
|
-
def
|
|
1949
|
-
self.
|
|
1990
|
+
@TokenLimit.setter
|
|
1991
|
+
def TokenLimit(self, TokenLimit):
|
|
1992
|
+
self._TokenLimit = TokenLimit
|
|
1950
1993
|
|
|
1951
1994
|
|
|
1952
1995
|
def _deserialize(self, params):
|
|
1953
1996
|
self._InstanceId = params.get("InstanceId")
|
|
1954
1997
|
self._ChatId = params.get("ChatId")
|
|
1955
|
-
self.
|
|
1998
|
+
self._StreamingId = params.get("StreamingId")
|
|
1999
|
+
self._BeginStreamingTokenId = params.get("BeginStreamingTokenId")
|
|
2000
|
+
self._TokenLimit = params.get("TokenLimit")
|
|
1956
2001
|
memeber_set = set(params.keys())
|
|
1957
2002
|
for name, value in vars(self).items():
|
|
1958
2003
|
property_name = name[1:]
|
|
@@ -73,7 +73,7 @@ class TdaiClient(AbstractClient):
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
def CreateChatCompletion(self, request):
|
|
76
|
-
r"""
|
|
76
|
+
r"""用于创建一次会话的SSE接口
|
|
77
77
|
|
|
78
78
|
:param request: Request instance for CreateChatCompletion.
|
|
79
79
|
:type request: :class:`tencentcloud.tdai.v20250717.models.CreateChatCompletionRequest`
|
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.abstract_client_async import AbstractClient
|
|
19
|
+
from tencentcloud.tdai.v20250717 import models
|
|
20
|
+
from typing import Dict
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class TdaiClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2025-07-17'
|
|
25
|
+
_endpoint = 'tdai.tencentcloudapi.com'
|
|
26
|
+
_service = 'tdai'
|
|
27
|
+
|
|
28
|
+
async def ContinueAgentWork(
|
|
29
|
+
self,
|
|
30
|
+
request: models.ContinueAgentWorkRequest,
|
|
31
|
+
opts: Dict = None,
|
|
32
|
+
) -> models.ContinueAgentWorkResponse:
|
|
33
|
+
"""
|
|
34
|
+
本接口(ContinueAgentWork)用于重启智能体实例的值守任务,通常在用户需要重启时使用。
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
kwargs = {}
|
|
38
|
+
kwargs["action"] = "ContinueAgentWork"
|
|
39
|
+
kwargs["params"] = request._serialize()
|
|
40
|
+
kwargs["resp_cls"] = models.ContinueAgentWorkResponse
|
|
41
|
+
kwargs["headers"] = request.headers
|
|
42
|
+
kwargs["opts"] = opts or {}
|
|
43
|
+
|
|
44
|
+
return await self.call_and_deserialize(**kwargs)
|
|
45
|
+
|
|
46
|
+
async def CreateAgentInstance(
|
|
47
|
+
self,
|
|
48
|
+
request: models.CreateAgentInstanceRequest,
|
|
49
|
+
opts: Dict = None,
|
|
50
|
+
) -> models.CreateAgentInstanceResponse:
|
|
51
|
+
"""
|
|
52
|
+
本接口(CreateAgentInstance)用于创建一个智能体实例,通常在用户购买一个智能体实例时使用。
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = {}
|
|
56
|
+
kwargs["action"] = "CreateAgentInstance"
|
|
57
|
+
kwargs["params"] = request._serialize()
|
|
58
|
+
kwargs["resp_cls"] = models.CreateAgentInstanceResponse
|
|
59
|
+
kwargs["headers"] = request.headers
|
|
60
|
+
kwargs["opts"] = opts or {}
|
|
61
|
+
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
63
|
+
|
|
64
|
+
async def CreateChatCompletion(
|
|
65
|
+
self,
|
|
66
|
+
request: models.CreateChatCompletionRequest,
|
|
67
|
+
opts: Dict = None,
|
|
68
|
+
) -> models.CreateChatCompletionResponse:
|
|
69
|
+
"""
|
|
70
|
+
用于创建一次会话的SSE接口
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
kwargs = {}
|
|
74
|
+
kwargs["action"] = "CreateChatCompletion"
|
|
75
|
+
kwargs["params"] = request._serialize()
|
|
76
|
+
kwargs["resp_cls"] = models.CreateChatCompletionResponse
|
|
77
|
+
kwargs["headers"] = request.headers
|
|
78
|
+
kwargs["opts"] = opts or {}
|
|
79
|
+
|
|
80
|
+
return await self.call_and_deserialize(**kwargs)
|
|
81
|
+
|
|
82
|
+
async def DescribeAgentDutyTaskDetail(
|
|
83
|
+
self,
|
|
84
|
+
request: models.DescribeAgentDutyTaskDetailRequest,
|
|
85
|
+
opts: Dict = None,
|
|
86
|
+
) -> models.DescribeAgentDutyTaskDetailResponse:
|
|
87
|
+
"""
|
|
88
|
+
查询智能体值守任务详情
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
kwargs = {}
|
|
92
|
+
kwargs["action"] = "DescribeAgentDutyTaskDetail"
|
|
93
|
+
kwargs["params"] = request._serialize()
|
|
94
|
+
kwargs["resp_cls"] = models.DescribeAgentDutyTaskDetailResponse
|
|
95
|
+
kwargs["headers"] = request.headers
|
|
96
|
+
kwargs["opts"] = opts or {}
|
|
97
|
+
|
|
98
|
+
return await self.call_and_deserialize(**kwargs)
|
|
99
|
+
|
|
100
|
+
async def DescribeAgentDutyTasks(
|
|
101
|
+
self,
|
|
102
|
+
request: models.DescribeAgentDutyTasksRequest,
|
|
103
|
+
opts: Dict = None,
|
|
104
|
+
) -> models.DescribeAgentDutyTasksResponse:
|
|
105
|
+
"""
|
|
106
|
+
查询智能体值守任务列表
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
kwargs = {}
|
|
110
|
+
kwargs["action"] = "DescribeAgentDutyTasks"
|
|
111
|
+
kwargs["params"] = request._serialize()
|
|
112
|
+
kwargs["resp_cls"] = models.DescribeAgentDutyTasksResponse
|
|
113
|
+
kwargs["headers"] = request.headers
|
|
114
|
+
kwargs["opts"] = opts or {}
|
|
115
|
+
|
|
116
|
+
return await self.call_and_deserialize(**kwargs)
|
|
117
|
+
|
|
118
|
+
async def DescribeAgentInstance(
|
|
119
|
+
self,
|
|
120
|
+
request: models.DescribeAgentInstanceRequest,
|
|
121
|
+
opts: Dict = None,
|
|
122
|
+
) -> models.DescribeAgentInstanceResponse:
|
|
123
|
+
"""
|
|
124
|
+
本接口(DescribeAgentInstance)用于查询智能体实例详情,通常在用户查询所购买的所有智能体实例详情时使用。
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = {}
|
|
128
|
+
kwargs["action"] = "DescribeAgentInstance"
|
|
129
|
+
kwargs["params"] = request._serialize()
|
|
130
|
+
kwargs["resp_cls"] = models.DescribeAgentInstanceResponse
|
|
131
|
+
kwargs["headers"] = request.headers
|
|
132
|
+
kwargs["opts"] = opts or {}
|
|
133
|
+
|
|
134
|
+
return await self.call_and_deserialize(**kwargs)
|
|
135
|
+
|
|
136
|
+
async def DescribeAgentInstances(
|
|
137
|
+
self,
|
|
138
|
+
request: models.DescribeAgentInstancesRequest,
|
|
139
|
+
opts: Dict = None,
|
|
140
|
+
) -> models.DescribeAgentInstancesResponse:
|
|
141
|
+
"""
|
|
142
|
+
本接口(DescribeAgentInstances)用于查询智能体实例列表,通常在用户查询所购买的所有智能体列表。
|
|
143
|
+
"""
|
|
144
|
+
|
|
145
|
+
kwargs = {}
|
|
146
|
+
kwargs["action"] = "DescribeAgentInstances"
|
|
147
|
+
kwargs["params"] = request._serialize()
|
|
148
|
+
kwargs["resp_cls"] = models.DescribeAgentInstancesResponse
|
|
149
|
+
kwargs["headers"] = request.headers
|
|
150
|
+
kwargs["opts"] = opts or {}
|
|
151
|
+
|
|
152
|
+
return await self.call_and_deserialize(**kwargs)
|
|
153
|
+
|
|
154
|
+
async def DescribeAgents(
|
|
155
|
+
self,
|
|
156
|
+
request: models.DescribeAgentsRequest,
|
|
157
|
+
opts: Dict = None,
|
|
158
|
+
) -> models.DescribeAgentsResponse:
|
|
159
|
+
"""
|
|
160
|
+
本接口(DescribeAgents)用于查询智能体列表,通常在用户查询所购买的所有智能体列表。
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
kwargs = {}
|
|
164
|
+
kwargs["action"] = "DescribeAgents"
|
|
165
|
+
kwargs["params"] = request._serialize()
|
|
166
|
+
kwargs["resp_cls"] = models.DescribeAgentsResponse
|
|
167
|
+
kwargs["headers"] = request.headers
|
|
168
|
+
kwargs["opts"] = opts or {}
|
|
169
|
+
|
|
170
|
+
return await self.call_and_deserialize(**kwargs)
|
|
171
|
+
|
|
172
|
+
async def DescribeChatDetail(
|
|
173
|
+
self,
|
|
174
|
+
request: models.DescribeChatDetailRequest,
|
|
175
|
+
opts: Dict = None,
|
|
176
|
+
) -> models.DescribeChatDetailResponse:
|
|
177
|
+
"""
|
|
178
|
+
本接口(DescribeChatDetail)用于查询对话详情,通常在用户查询会话的历史记录时使用。
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
kwargs = {}
|
|
182
|
+
kwargs["action"] = "DescribeChatDetail"
|
|
183
|
+
kwargs["params"] = request._serialize()
|
|
184
|
+
kwargs["resp_cls"] = models.DescribeChatDetailResponse
|
|
185
|
+
kwargs["headers"] = request.headers
|
|
186
|
+
kwargs["opts"] = opts or {}
|
|
187
|
+
|
|
188
|
+
return await self.call_and_deserialize(**kwargs)
|
|
189
|
+
|
|
190
|
+
async def DescribeChats(
|
|
191
|
+
self,
|
|
192
|
+
request: models.DescribeChatsRequest,
|
|
193
|
+
opts: Dict = None,
|
|
194
|
+
) -> models.DescribeChatsResponse:
|
|
195
|
+
"""
|
|
196
|
+
本接口(DescribeChats)用于查询对话列表,通常在用户查询会话列表时使用。
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
kwargs = {}
|
|
200
|
+
kwargs["action"] = "DescribeChats"
|
|
201
|
+
kwargs["params"] = request._serialize()
|
|
202
|
+
kwargs["resp_cls"] = models.DescribeChatsResponse
|
|
203
|
+
kwargs["headers"] = request.headers
|
|
204
|
+
kwargs["opts"] = opts or {}
|
|
205
|
+
|
|
206
|
+
return await self.call_and_deserialize(**kwargs)
|
|
207
|
+
|
|
208
|
+
async def DescribeReportUrl(
|
|
209
|
+
self,
|
|
210
|
+
request: models.DescribeReportUrlRequest,
|
|
211
|
+
opts: Dict = None,
|
|
212
|
+
) -> models.DescribeReportUrlResponse:
|
|
213
|
+
"""
|
|
214
|
+
智能体报告地址生成并下载
|
|
215
|
+
"""
|
|
216
|
+
|
|
217
|
+
kwargs = {}
|
|
218
|
+
kwargs["action"] = "DescribeReportUrl"
|
|
219
|
+
kwargs["params"] = request._serialize()
|
|
220
|
+
kwargs["resp_cls"] = models.DescribeReportUrlResponse
|
|
221
|
+
kwargs["headers"] = request.headers
|
|
222
|
+
kwargs["opts"] = opts or {}
|
|
223
|
+
|
|
224
|
+
return await self.call_and_deserialize(**kwargs)
|
|
225
|
+
|
|
226
|
+
async def IsolateAgentInstance(
|
|
227
|
+
self,
|
|
228
|
+
request: models.IsolateAgentInstanceRequest,
|
|
229
|
+
opts: Dict = None,
|
|
230
|
+
) -> models.IsolateAgentInstanceResponse:
|
|
231
|
+
"""
|
|
232
|
+
本接口(IsolateAgentInstance)用于隔离智能体实例,通常在用户需要隔离智能体实例时使用。
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
kwargs = {}
|
|
236
|
+
kwargs["action"] = "IsolateAgentInstance"
|
|
237
|
+
kwargs["params"] = request._serialize()
|
|
238
|
+
kwargs["resp_cls"] = models.IsolateAgentInstanceResponse
|
|
239
|
+
kwargs["headers"] = request.headers
|
|
240
|
+
kwargs["opts"] = opts or {}
|
|
241
|
+
|
|
242
|
+
return await self.call_and_deserialize(**kwargs)
|
|
243
|
+
|
|
244
|
+
async def ModifyAgentInstanceParameters(
|
|
245
|
+
self,
|
|
246
|
+
request: models.ModifyAgentInstanceParametersRequest,
|
|
247
|
+
opts: Dict = None,
|
|
248
|
+
) -> models.ModifyAgentInstanceParametersResponse:
|
|
249
|
+
"""
|
|
250
|
+
本接口(ModifyAgentInstanceParameters)用于修改智能体实例的参数列表,通常在用户需要配置智能体实例时使用。
|
|
251
|
+
"""
|
|
252
|
+
|
|
253
|
+
kwargs = {}
|
|
254
|
+
kwargs["action"] = "ModifyAgentInstanceParameters"
|
|
255
|
+
kwargs["params"] = request._serialize()
|
|
256
|
+
kwargs["resp_cls"] = models.ModifyAgentInstanceParametersResponse
|
|
257
|
+
kwargs["headers"] = request.headers
|
|
258
|
+
kwargs["opts"] = opts or {}
|
|
259
|
+
|
|
260
|
+
return await self.call_and_deserialize(**kwargs)
|
|
261
|
+
|
|
262
|
+
async def ModifyChatTitle(
|
|
263
|
+
self,
|
|
264
|
+
request: models.ModifyChatTitleRequest,
|
|
265
|
+
opts: Dict = None,
|
|
266
|
+
) -> models.ModifyChatTitleResponse:
|
|
267
|
+
"""
|
|
268
|
+
本接口(ModifyChatTitle)用于修改会话标题,通常在用户修改会话标题时使用。
|
|
269
|
+
"""
|
|
270
|
+
|
|
271
|
+
kwargs = {}
|
|
272
|
+
kwargs["action"] = "ModifyChatTitle"
|
|
273
|
+
kwargs["params"] = request._serialize()
|
|
274
|
+
kwargs["resp_cls"] = models.ModifyChatTitleResponse
|
|
275
|
+
kwargs["headers"] = request.headers
|
|
276
|
+
kwargs["opts"] = opts or {}
|
|
277
|
+
|
|
278
|
+
return await self.call_and_deserialize(**kwargs)
|
|
279
|
+
|
|
280
|
+
async def PauseAgentWork(
|
|
281
|
+
self,
|
|
282
|
+
request: models.PauseAgentWorkRequest,
|
|
283
|
+
opts: Dict = None,
|
|
284
|
+
) -> models.PauseAgentWorkResponse:
|
|
285
|
+
"""
|
|
286
|
+
本接口(PauseAgentWork)用于暂停智能体实例的值守任务,通常在用户需要暂停时使用。
|
|
287
|
+
"""
|
|
288
|
+
|
|
289
|
+
kwargs = {}
|
|
290
|
+
kwargs["action"] = "PauseAgentWork"
|
|
291
|
+
kwargs["params"] = request._serialize()
|
|
292
|
+
kwargs["resp_cls"] = models.PauseAgentWorkResponse
|
|
293
|
+
kwargs["headers"] = request.headers
|
|
294
|
+
kwargs["opts"] = opts or {}
|
|
295
|
+
|
|
296
|
+
return await self.call_and_deserialize(**kwargs)
|
|
297
|
+
|
|
298
|
+
async def RecoverAgentInstance(
|
|
299
|
+
self,
|
|
300
|
+
request: models.RecoverAgentInstanceRequest,
|
|
301
|
+
opts: Dict = None,
|
|
302
|
+
) -> models.RecoverAgentInstanceResponse:
|
|
303
|
+
"""
|
|
304
|
+
本接口(RecoverAgentInstance)用于解隔离智能体实例,通常在用户需要解隔离智能体实例时使用。
|
|
305
|
+
"""
|
|
306
|
+
|
|
307
|
+
kwargs = {}
|
|
308
|
+
kwargs["action"] = "RecoverAgentInstance"
|
|
309
|
+
kwargs["params"] = request._serialize()
|
|
310
|
+
kwargs["resp_cls"] = models.RecoverAgentInstanceResponse
|
|
311
|
+
kwargs["headers"] = request.headers
|
|
312
|
+
kwargs["opts"] = opts or {}
|
|
313
|
+
|
|
314
|
+
return await self.call_and_deserialize(**kwargs)
|
|
315
|
+
|
|
316
|
+
async def RemoveChat(
|
|
317
|
+
self,
|
|
318
|
+
request: models.RemoveChatRequest,
|
|
319
|
+
opts: Dict = None,
|
|
320
|
+
) -> models.RemoveChatResponse:
|
|
321
|
+
"""
|
|
322
|
+
本接口(RemoveChat)用于删除会话,通常在用户删除会话时使用。
|
|
323
|
+
"""
|
|
324
|
+
|
|
325
|
+
kwargs = {}
|
|
326
|
+
kwargs["action"] = "RemoveChat"
|
|
327
|
+
kwargs["params"] = request._serialize()
|
|
328
|
+
kwargs["resp_cls"] = models.RemoveChatResponse
|
|
329
|
+
kwargs["headers"] = request.headers
|
|
330
|
+
kwargs["opts"] = opts or {}
|
|
331
|
+
|
|
332
|
+
return await self.call_and_deserialize(**kwargs)
|
|
333
|
+
|
|
334
|
+
async def TerminateAgentInstance(
|
|
335
|
+
self,
|
|
336
|
+
request: models.TerminateAgentInstanceRequest,
|
|
337
|
+
opts: Dict = None,
|
|
338
|
+
) -> models.TerminateAgentInstanceResponse:
|
|
339
|
+
"""
|
|
340
|
+
本接口(TerminateAgentInstance)用于下线智能体实例,通常在用户需要下线智能体实例时使用。
|
|
341
|
+
"""
|
|
342
|
+
|
|
343
|
+
kwargs = {}
|
|
344
|
+
kwargs["action"] = "TerminateAgentInstance"
|
|
345
|
+
kwargs["params"] = request._serialize()
|
|
346
|
+
kwargs["resp_cls"] = models.TerminateAgentInstanceResponse
|
|
347
|
+
kwargs["headers"] = request.headers
|
|
348
|
+
kwargs["opts"] = opts or {}
|
|
349
|
+
|
|
350
|
+
return await self.call_and_deserialize(**kwargs)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: tencentcloud-sdk-python-tdai
|
|
3
|
+
Version: 3.1.6
|
|
4
|
+
Summary: Tencent Cloud Tdai SDK for Python
|
|
5
|
+
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
+
Author: Tencent Cloud
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
+
License: Apache License 2.0
|
|
9
|
+
Platform: any
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 2.7
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.6
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.6
|
|
19
|
+
|
|
20
|
+
============================
|
|
21
|
+
Tencent Cloud SDK for Python
|
|
22
|
+
============================
|
|
23
|
+
|
|
24
|
+
Tencent Cloud Python Tdai SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
25
|
+
The SDK works on Python versions:
|
|
26
|
+
|
|
27
|
+
* 2.7 and greater, including 3.x
|
|
28
|
+
|
|
29
|
+
Quick Start
|
|
30
|
+
-----------
|
|
31
|
+
|
|
32
|
+
First, install the library:
|
|
33
|
+
|
|
34
|
+
.. code-block:: sh
|
|
35
|
+
|
|
36
|
+
$ pip install tencentcloud-sdk-python-common
|
|
37
|
+
$ pip install tencentcloud-sdk-python-tdai
|
|
38
|
+
|
|
39
|
+
or download source code from github and install:
|
|
40
|
+
|
|
41
|
+
.. code-block:: sh
|
|
42
|
+
|
|
43
|
+
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
44
|
+
$ cd tencentcloud-sdk-python
|
|
45
|
+
$ python package.py --components common tdai
|
|
46
|
+
|
|
@@ -7,6 +7,7 @@ tencentcloud/tdai/v20250717/__init__.py
|
|
|
7
7
|
tencentcloud/tdai/v20250717/errorcodes.py
|
|
8
8
|
tencentcloud/tdai/v20250717/models.py
|
|
9
9
|
tencentcloud/tdai/v20250717/tdai_client.py
|
|
10
|
+
tencentcloud/tdai/v20250717/tdai_client_async.py
|
|
10
11
|
tencentcloud_sdk_python_tdai.egg-info/PKG-INFO
|
|
11
12
|
tencentcloud_sdk_python_tdai.egg-info/SOURCES.txt
|
|
12
13
|
tencentcloud_sdk_python_tdai.egg-info/dependency_links.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.6
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: tencentcloud-sdk-python-tdai
|
|
3
|
-
Version: 3.0.1460
|
|
4
|
-
Summary: Tencent Cloud Tdai SDK for Python
|
|
5
|
-
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
-
Author: Tencent Cloud
|
|
7
|
-
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
-
License: Apache License 2.0
|
|
9
|
-
Description: ============================
|
|
10
|
-
Tencent Cloud SDK for Python
|
|
11
|
-
============================
|
|
12
|
-
|
|
13
|
-
Tencent Cloud Python Tdai SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
14
|
-
The SDK works on Python versions:
|
|
15
|
-
|
|
16
|
-
* 2.7 and greater, including 3.x
|
|
17
|
-
|
|
18
|
-
Quick Start
|
|
19
|
-
-----------
|
|
20
|
-
|
|
21
|
-
First, install the library:
|
|
22
|
-
|
|
23
|
-
.. code-block:: sh
|
|
24
|
-
|
|
25
|
-
$ pip install tencentcloud-sdk-python-common
|
|
26
|
-
$ pip install tencentcloud-sdk-python-tdai
|
|
27
|
-
|
|
28
|
-
or download source code from github and install:
|
|
29
|
-
|
|
30
|
-
.. code-block:: sh
|
|
31
|
-
|
|
32
|
-
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
33
|
-
$ cd tencentcloud-sdk-python
|
|
34
|
-
$ python package.py --components common tdai
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Platform: any
|
|
38
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
39
|
-
Classifier: Intended Audience :: Developers
|
|
40
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
41
|
-
Classifier: Programming Language :: Python
|
|
42
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
43
|
-
Classifier: Programming Language :: Python :: 3
|
|
44
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
45
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: tencentcloud-sdk-python-tdai
|
|
3
|
-
Version: 3.0.1460
|
|
4
|
-
Summary: Tencent Cloud Tdai SDK for Python
|
|
5
|
-
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
|
-
Author: Tencent Cloud
|
|
7
|
-
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
|
-
License: Apache License 2.0
|
|
9
|
-
Description: ============================
|
|
10
|
-
Tencent Cloud SDK for Python
|
|
11
|
-
============================
|
|
12
|
-
|
|
13
|
-
Tencent Cloud Python Tdai SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
|
|
14
|
-
The SDK works on Python versions:
|
|
15
|
-
|
|
16
|
-
* 2.7 and greater, including 3.x
|
|
17
|
-
|
|
18
|
-
Quick Start
|
|
19
|
-
-----------
|
|
20
|
-
|
|
21
|
-
First, install the library:
|
|
22
|
-
|
|
23
|
-
.. code-block:: sh
|
|
24
|
-
|
|
25
|
-
$ pip install tencentcloud-sdk-python-common
|
|
26
|
-
$ pip install tencentcloud-sdk-python-tdai
|
|
27
|
-
|
|
28
|
-
or download source code from github and install:
|
|
29
|
-
|
|
30
|
-
.. code-block:: sh
|
|
31
|
-
|
|
32
|
-
$ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
|
|
33
|
-
$ cd tencentcloud-sdk-python
|
|
34
|
-
$ python package.py --components common tdai
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Platform: any
|
|
38
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
39
|
-
Classifier: Intended Audience :: Developers
|
|
40
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
41
|
-
Classifier: Programming Language :: Python
|
|
42
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
43
|
-
Classifier: Programming Language :: Python :: 3
|
|
44
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
45
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.0.1460
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|