tencentcloud-sdk-python-tdai 3.0.1460__py2.py3-none-any.whl

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.

Potentially problematic release.


This version of tencentcloud-sdk-python-tdai might be problematic. Click here for more details.

@@ -0,0 +1,435 @@
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
+ import json
17
+
18
+ from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
19
+ from tencentcloud.common.abstract_client import AbstractClient
20
+ from tencentcloud.tdai.v20250717 import models
21
+
22
+
23
+ class TdaiClient(AbstractClient):
24
+ _apiVersion = '2025-07-17'
25
+ _endpoint = 'tdai.tencentcloudapi.com'
26
+ _service = 'tdai'
27
+
28
+
29
+ def ContinueAgentWork(self, request):
30
+ r"""本接口(ContinueAgentWork)用于重启智能体实例的值守任务,通常在用户需要重启时使用。
31
+
32
+ :param request: Request instance for ContinueAgentWork.
33
+ :type request: :class:`tencentcloud.tdai.v20250717.models.ContinueAgentWorkRequest`
34
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.ContinueAgentWorkResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("ContinueAgentWork", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.ContinueAgentWorkResponse()
43
+ model._deserialize(response["Response"])
44
+ return model
45
+ except Exception as e:
46
+ if isinstance(e, TencentCloudSDKException):
47
+ raise
48
+ else:
49
+ raise TencentCloudSDKException(type(e).__name__, str(e))
50
+
51
+
52
+ def CreateAgentInstance(self, request):
53
+ r"""本接口(CreateAgentInstance)用于创建一个智能体实例,通常在用户购买一个智能体实例时使用。
54
+
55
+ :param request: Request instance for CreateAgentInstance.
56
+ :type request: :class:`tencentcloud.tdai.v20250717.models.CreateAgentInstanceRequest`
57
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.CreateAgentInstanceResponse`
58
+
59
+ """
60
+ try:
61
+ params = request._serialize()
62
+ headers = request.headers
63
+ body = self.call("CreateAgentInstance", params, headers=headers)
64
+ response = json.loads(body)
65
+ model = models.CreateAgentInstanceResponse()
66
+ model._deserialize(response["Response"])
67
+ return model
68
+ except Exception as e:
69
+ if isinstance(e, TencentCloudSDKException):
70
+ raise
71
+ else:
72
+ raise TencentCloudSDKException(type(e).__name__, str(e))
73
+
74
+
75
+ def CreateChatCompletion(self, request):
76
+ r"""用于创建一次回话的SSE接口
77
+
78
+ :param request: Request instance for CreateChatCompletion.
79
+ :type request: :class:`tencentcloud.tdai.v20250717.models.CreateChatCompletionRequest`
80
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.CreateChatCompletionResponse`
81
+
82
+ """
83
+ try:
84
+ params = request._serialize()
85
+ return self._call_and_deserialize("CreateChatCompletion", params, models.CreateChatCompletionResponse, headers=request.headers)
86
+ except Exception as e:
87
+ if isinstance(e, TencentCloudSDKException):
88
+ raise
89
+ else:
90
+ raise TencentCloudSDKException(type(e).__name__, str(e))
91
+
92
+
93
+ def DescribeAgentDutyTaskDetail(self, request):
94
+ r"""查询智能体值守任务详情
95
+
96
+ :param request: Request instance for DescribeAgentDutyTaskDetail.
97
+ :type request: :class:`tencentcloud.tdai.v20250717.models.DescribeAgentDutyTaskDetailRequest`
98
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.DescribeAgentDutyTaskDetailResponse`
99
+
100
+ """
101
+ try:
102
+ params = request._serialize()
103
+ headers = request.headers
104
+ body = self.call("DescribeAgentDutyTaskDetail", params, headers=headers)
105
+ response = json.loads(body)
106
+ model = models.DescribeAgentDutyTaskDetailResponse()
107
+ model._deserialize(response["Response"])
108
+ return model
109
+ except Exception as e:
110
+ if isinstance(e, TencentCloudSDKException):
111
+ raise
112
+ else:
113
+ raise TencentCloudSDKException(type(e).__name__, str(e))
114
+
115
+
116
+ def DescribeAgentDutyTasks(self, request):
117
+ r"""查询智能体值守任务列表
118
+
119
+ :param request: Request instance for DescribeAgentDutyTasks.
120
+ :type request: :class:`tencentcloud.tdai.v20250717.models.DescribeAgentDutyTasksRequest`
121
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.DescribeAgentDutyTasksResponse`
122
+
123
+ """
124
+ try:
125
+ params = request._serialize()
126
+ headers = request.headers
127
+ body = self.call("DescribeAgentDutyTasks", params, headers=headers)
128
+ response = json.loads(body)
129
+ model = models.DescribeAgentDutyTasksResponse()
130
+ model._deserialize(response["Response"])
131
+ return model
132
+ except Exception as e:
133
+ if isinstance(e, TencentCloudSDKException):
134
+ raise
135
+ else:
136
+ raise TencentCloudSDKException(type(e).__name__, str(e))
137
+
138
+
139
+ def DescribeAgentInstance(self, request):
140
+ r"""本接口(DescribeAgentInstance)用于查询智能体实例详情,通常在用户查询所购买的所有智能体实例详情时使用。
141
+
142
+ :param request: Request instance for DescribeAgentInstance.
143
+ :type request: :class:`tencentcloud.tdai.v20250717.models.DescribeAgentInstanceRequest`
144
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.DescribeAgentInstanceResponse`
145
+
146
+ """
147
+ try:
148
+ params = request._serialize()
149
+ headers = request.headers
150
+ body = self.call("DescribeAgentInstance", params, headers=headers)
151
+ response = json.loads(body)
152
+ model = models.DescribeAgentInstanceResponse()
153
+ model._deserialize(response["Response"])
154
+ return model
155
+ except Exception as e:
156
+ if isinstance(e, TencentCloudSDKException):
157
+ raise
158
+ else:
159
+ raise TencentCloudSDKException(type(e).__name__, str(e))
160
+
161
+
162
+ def DescribeAgentInstances(self, request):
163
+ r"""本接口(DescribeAgentInstances)用于查询智能体实例列表,通常在用户查询所购买的所有智能体列表。
164
+
165
+ :param request: Request instance for DescribeAgentInstances.
166
+ :type request: :class:`tencentcloud.tdai.v20250717.models.DescribeAgentInstancesRequest`
167
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.DescribeAgentInstancesResponse`
168
+
169
+ """
170
+ try:
171
+ params = request._serialize()
172
+ headers = request.headers
173
+ body = self.call("DescribeAgentInstances", params, headers=headers)
174
+ response = json.loads(body)
175
+ model = models.DescribeAgentInstancesResponse()
176
+ model._deserialize(response["Response"])
177
+ return model
178
+ except Exception as e:
179
+ if isinstance(e, TencentCloudSDKException):
180
+ raise
181
+ else:
182
+ raise TencentCloudSDKException(type(e).__name__, str(e))
183
+
184
+
185
+ def DescribeAgents(self, request):
186
+ r"""本接口(DescribeAgents)用于查询智能体列表,通常在用户查询所购买的所有智能体列表。
187
+
188
+ :param request: Request instance for DescribeAgents.
189
+ :type request: :class:`tencentcloud.tdai.v20250717.models.DescribeAgentsRequest`
190
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.DescribeAgentsResponse`
191
+
192
+ """
193
+ try:
194
+ params = request._serialize()
195
+ headers = request.headers
196
+ body = self.call("DescribeAgents", params, headers=headers)
197
+ response = json.loads(body)
198
+ model = models.DescribeAgentsResponse()
199
+ model._deserialize(response["Response"])
200
+ return model
201
+ except Exception as e:
202
+ if isinstance(e, TencentCloudSDKException):
203
+ raise
204
+ else:
205
+ raise TencentCloudSDKException(type(e).__name__, str(e))
206
+
207
+
208
+ def DescribeChatDetail(self, request):
209
+ r"""本接口(DescribeChatDetail)用于查询对话详情,通常在用户查询会话的历史记录时使用。
210
+
211
+ :param request: Request instance for DescribeChatDetail.
212
+ :type request: :class:`tencentcloud.tdai.v20250717.models.DescribeChatDetailRequest`
213
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.DescribeChatDetailResponse`
214
+
215
+ """
216
+ try:
217
+ params = request._serialize()
218
+ headers = request.headers
219
+ body = self.call("DescribeChatDetail", params, headers=headers)
220
+ response = json.loads(body)
221
+ model = models.DescribeChatDetailResponse()
222
+ model._deserialize(response["Response"])
223
+ return model
224
+ except Exception as e:
225
+ if isinstance(e, TencentCloudSDKException):
226
+ raise
227
+ else:
228
+ raise TencentCloudSDKException(type(e).__name__, str(e))
229
+
230
+
231
+ def DescribeChats(self, request):
232
+ r"""本接口(DescribeChats)用于查询对话列表,通常在用户查询会话列表时使用。
233
+
234
+ :param request: Request instance for DescribeChats.
235
+ :type request: :class:`tencentcloud.tdai.v20250717.models.DescribeChatsRequest`
236
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.DescribeChatsResponse`
237
+
238
+ """
239
+ try:
240
+ params = request._serialize()
241
+ headers = request.headers
242
+ body = self.call("DescribeChats", params, headers=headers)
243
+ response = json.loads(body)
244
+ model = models.DescribeChatsResponse()
245
+ model._deserialize(response["Response"])
246
+ return model
247
+ except Exception as e:
248
+ if isinstance(e, TencentCloudSDKException):
249
+ raise
250
+ else:
251
+ raise TencentCloudSDKException(type(e).__name__, str(e))
252
+
253
+
254
+ def DescribeReportUrl(self, request):
255
+ r"""智能体报告地址生成并下载
256
+
257
+ :param request: Request instance for DescribeReportUrl.
258
+ :type request: :class:`tencentcloud.tdai.v20250717.models.DescribeReportUrlRequest`
259
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.DescribeReportUrlResponse`
260
+
261
+ """
262
+ try:
263
+ params = request._serialize()
264
+ headers = request.headers
265
+ body = self.call("DescribeReportUrl", params, headers=headers)
266
+ response = json.loads(body)
267
+ model = models.DescribeReportUrlResponse()
268
+ model._deserialize(response["Response"])
269
+ return model
270
+ except Exception as e:
271
+ if isinstance(e, TencentCloudSDKException):
272
+ raise
273
+ else:
274
+ raise TencentCloudSDKException(type(e).__name__, str(e))
275
+
276
+
277
+ def IsolateAgentInstance(self, request):
278
+ r"""本接口(IsolateAgentInstance)用于隔离智能体实例,通常在用户需要隔离智能体实例时使用。
279
+
280
+ :param request: Request instance for IsolateAgentInstance.
281
+ :type request: :class:`tencentcloud.tdai.v20250717.models.IsolateAgentInstanceRequest`
282
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.IsolateAgentInstanceResponse`
283
+
284
+ """
285
+ try:
286
+ params = request._serialize()
287
+ headers = request.headers
288
+ body = self.call("IsolateAgentInstance", params, headers=headers)
289
+ response = json.loads(body)
290
+ model = models.IsolateAgentInstanceResponse()
291
+ model._deserialize(response["Response"])
292
+ return model
293
+ except Exception as e:
294
+ if isinstance(e, TencentCloudSDKException):
295
+ raise
296
+ else:
297
+ raise TencentCloudSDKException(type(e).__name__, str(e))
298
+
299
+
300
+ def ModifyAgentInstanceParameters(self, request):
301
+ r"""本接口(ModifyAgentInstanceParameters)用于修改智能体实例的参数列表,通常在用户需要配置智能体实例时使用。
302
+
303
+ :param request: Request instance for ModifyAgentInstanceParameters.
304
+ :type request: :class:`tencentcloud.tdai.v20250717.models.ModifyAgentInstanceParametersRequest`
305
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.ModifyAgentInstanceParametersResponse`
306
+
307
+ """
308
+ try:
309
+ params = request._serialize()
310
+ headers = request.headers
311
+ body = self.call("ModifyAgentInstanceParameters", params, headers=headers)
312
+ response = json.loads(body)
313
+ model = models.ModifyAgentInstanceParametersResponse()
314
+ model._deserialize(response["Response"])
315
+ return model
316
+ except Exception as e:
317
+ if isinstance(e, TencentCloudSDKException):
318
+ raise
319
+ else:
320
+ raise TencentCloudSDKException(type(e).__name__, str(e))
321
+
322
+
323
+ def ModifyChatTitle(self, request):
324
+ r"""本接口(ModifyChatTitle)用于修改会话标题,通常在用户修改会话标题时使用。
325
+
326
+ :param request: Request instance for ModifyChatTitle.
327
+ :type request: :class:`tencentcloud.tdai.v20250717.models.ModifyChatTitleRequest`
328
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.ModifyChatTitleResponse`
329
+
330
+ """
331
+ try:
332
+ params = request._serialize()
333
+ headers = request.headers
334
+ body = self.call("ModifyChatTitle", params, headers=headers)
335
+ response = json.loads(body)
336
+ model = models.ModifyChatTitleResponse()
337
+ model._deserialize(response["Response"])
338
+ return model
339
+ except Exception as e:
340
+ if isinstance(e, TencentCloudSDKException):
341
+ raise
342
+ else:
343
+ raise TencentCloudSDKException(type(e).__name__, str(e))
344
+
345
+
346
+ def PauseAgentWork(self, request):
347
+ r"""本接口(PauseAgentWork)用于暂停智能体实例的值守任务,通常在用户需要暂停时使用。
348
+
349
+ :param request: Request instance for PauseAgentWork.
350
+ :type request: :class:`tencentcloud.tdai.v20250717.models.PauseAgentWorkRequest`
351
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.PauseAgentWorkResponse`
352
+
353
+ """
354
+ try:
355
+ params = request._serialize()
356
+ headers = request.headers
357
+ body = self.call("PauseAgentWork", params, headers=headers)
358
+ response = json.loads(body)
359
+ model = models.PauseAgentWorkResponse()
360
+ model._deserialize(response["Response"])
361
+ return model
362
+ except Exception as e:
363
+ if isinstance(e, TencentCloudSDKException):
364
+ raise
365
+ else:
366
+ raise TencentCloudSDKException(type(e).__name__, str(e))
367
+
368
+
369
+ def RecoverAgentInstance(self, request):
370
+ r"""本接口(RecoverAgentInstance)用于解隔离智能体实例,通常在用户需要解隔离智能体实例时使用。
371
+
372
+ :param request: Request instance for RecoverAgentInstance.
373
+ :type request: :class:`tencentcloud.tdai.v20250717.models.RecoverAgentInstanceRequest`
374
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.RecoverAgentInstanceResponse`
375
+
376
+ """
377
+ try:
378
+ params = request._serialize()
379
+ headers = request.headers
380
+ body = self.call("RecoverAgentInstance", params, headers=headers)
381
+ response = json.loads(body)
382
+ model = models.RecoverAgentInstanceResponse()
383
+ model._deserialize(response["Response"])
384
+ return model
385
+ except Exception as e:
386
+ if isinstance(e, TencentCloudSDKException):
387
+ raise
388
+ else:
389
+ raise TencentCloudSDKException(type(e).__name__, str(e))
390
+
391
+
392
+ def RemoveChat(self, request):
393
+ r"""本接口(RemoveChat)用于删除会话,通常在用户删除会话时使用。
394
+
395
+ :param request: Request instance for RemoveChat.
396
+ :type request: :class:`tencentcloud.tdai.v20250717.models.RemoveChatRequest`
397
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.RemoveChatResponse`
398
+
399
+ """
400
+ try:
401
+ params = request._serialize()
402
+ headers = request.headers
403
+ body = self.call("RemoveChat", params, headers=headers)
404
+ response = json.loads(body)
405
+ model = models.RemoveChatResponse()
406
+ model._deserialize(response["Response"])
407
+ return model
408
+ except Exception as e:
409
+ if isinstance(e, TencentCloudSDKException):
410
+ raise
411
+ else:
412
+ raise TencentCloudSDKException(type(e).__name__, str(e))
413
+
414
+
415
+ def TerminateAgentInstance(self, request):
416
+ r"""本接口(TerminateAgentInstance)用于下线智能体实例,通常在用户需要下线智能体实例时使用。
417
+
418
+ :param request: Request instance for TerminateAgentInstance.
419
+ :type request: :class:`tencentcloud.tdai.v20250717.models.TerminateAgentInstanceRequest`
420
+ :rtype: :class:`tencentcloud.tdai.v20250717.models.TerminateAgentInstanceResponse`
421
+
422
+ """
423
+ try:
424
+ params = request._serialize()
425
+ headers = request.headers
426
+ body = self.call("TerminateAgentInstance", params, headers=headers)
427
+ response = json.loads(body)
428
+ model = models.TerminateAgentInstanceResponse()
429
+ model._deserialize(response["Response"])
430
+ return model
431
+ except Exception as e:
432
+ if isinstance(e, TencentCloudSDKException):
433
+ raise
434
+ else:
435
+ raise TencentCloudSDKException(type(e).__name__, str(e))
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.1
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
+ 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.0.1460)
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
+
47
+
48
+
@@ -0,0 +1,10 @@
1
+ tencentcloud/__init__.py,sha256=paY6MOsvDwzIWBrTvSW3NCWnBF6uAWxXOOZIRopE7U0,631
2
+ tencentcloud/tdai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/tdai/v20250717/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/tdai/v20250717/errorcodes.py,sha256=HYouj_0yQWoMeQRrIKlzz7lLuFx_8A_WmBMaownbCxY,1079
5
+ tencentcloud/tdai/v20250717/models.py,sha256=RBe9s-rCOgLPPANQYFDTr1vmPlAC8fYtoMVjTyB6GX4,93825
6
+ tencentcloud/tdai/v20250717/tdai_client.py,sha256=YH8F3rqHDpRnn36dLCRcltBa1StqTs7V31yHyKKitlQ,18188
7
+ tencentcloud_sdk_python_tdai-3.0.1460.dist-info/METADATA,sha256=jfH763xisNVnhHb-FpIzZ98dm3FZafVNXlVND9Lu3vA,1508
8
+ tencentcloud_sdk_python_tdai-3.0.1460.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
+ tencentcloud_sdk_python_tdai-3.0.1460.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
+ tencentcloud_sdk_python_tdai-3.0.1460.dist-info/RECORD,,
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.37.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py2-none-any
5
+ Tag: py3-none-any
6
+
@@ -0,0 +1 @@
1
+ tencentcloud