tencentcloud-sdk-python-workbuddyenterprise 3.1.180__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.
- tencentcloud/__init__.py +17 -0
- tencentcloud/workbuddyenterprise/__init__.py +0 -0
- tencentcloud/workbuddyenterprise/v20260709/__init__.py +0 -0
- tencentcloud/workbuddyenterprise/v20260709/errorcodes.py +231 -0
- tencentcloud/workbuddyenterprise/v20260709/models.py +7823 -0
- tencentcloud/workbuddyenterprise/v20260709/workbuddyenterprise_client.py +601 -0
- tencentcloud/workbuddyenterprise/v20260709/workbuddyenterprise_client_async.py +476 -0
- tencentcloud_sdk_python_workbuddyenterprise-3.1.180.dist-info/METADATA +46 -0
- tencentcloud_sdk_python_workbuddyenterprise-3.1.180.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_workbuddyenterprise-3.1.180.dist-info/WHEEL +6 -0
- tencentcloud_sdk_python_workbuddyenterprise-3.1.180.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,601 @@
|
|
|
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.workbuddyenterprise.v20260709 import models
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class WorkbuddyenterpriseClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2026-07-09'
|
|
25
|
+
_endpoint = 'workbuddyenterprise.tencentcloudapi.com'
|
|
26
|
+
_service = 'workbuddyenterprise'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def BindExternalAgent(self, request):
|
|
30
|
+
r"""把外部 agent 绑定到某 managed agent
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for BindExternalAgent.
|
|
33
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.BindExternalAgentRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.BindExternalAgentResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("BindExternalAgent", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.BindExternalAgentResponse()
|
|
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 CreateAgent(self, request):
|
|
53
|
+
r"""创建一个新的 Managed Agent,同时自动生成 default 版本。配置采用 Manifest v2.0。
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for CreateAgent.
|
|
56
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.CreateAgentRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.CreateAgentResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("CreateAgent", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.CreateAgentResponse()
|
|
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 CreateAgentSession(self, request):
|
|
76
|
+
r"""为指定 Agent 创建新的会话,返回会话 ID 和聊天凭证。
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for CreateAgentSession.
|
|
79
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.CreateAgentSessionRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.CreateAgentSessionResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("CreateAgentSession", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.CreateAgentSessionResponse()
|
|
89
|
+
model._deserialize(response["Response"])
|
|
90
|
+
return model
|
|
91
|
+
except Exception as e:
|
|
92
|
+
if isinstance(e, TencentCloudSDKException):
|
|
93
|
+
raise
|
|
94
|
+
else:
|
|
95
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def CreateAgentVersion(self, request):
|
|
99
|
+
r"""完全新建版本:外部准备完整 Manifest 后直接传入,不引用任何已有版本。
|
|
100
|
+
|
|
101
|
+
:param request: Request instance for CreateAgentVersion.
|
|
102
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.CreateAgentVersionRequest`
|
|
103
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.CreateAgentVersionResponse`
|
|
104
|
+
|
|
105
|
+
"""
|
|
106
|
+
try:
|
|
107
|
+
params = request._serialize()
|
|
108
|
+
headers = request.headers
|
|
109
|
+
body = self.call("CreateAgentVersion", params, headers=headers)
|
|
110
|
+
response = json.loads(body)
|
|
111
|
+
model = models.CreateAgentVersionResponse()
|
|
112
|
+
model._deserialize(response["Response"])
|
|
113
|
+
return model
|
|
114
|
+
except Exception as e:
|
|
115
|
+
if isinstance(e, TencentCloudSDKException):
|
|
116
|
+
raise
|
|
117
|
+
else:
|
|
118
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def CreateAgentVersionFromSource(self, request):
|
|
122
|
+
r"""基于源版本创建新版本:Manifest / Model / Description 传入即整体覆盖,未传则沿用源版本。
|
|
123
|
+
|
|
124
|
+
:param request: Request instance for CreateAgentVersionFromSource.
|
|
125
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.CreateAgentVersionFromSourceRequest`
|
|
126
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.CreateAgentVersionFromSourceResponse`
|
|
127
|
+
|
|
128
|
+
"""
|
|
129
|
+
try:
|
|
130
|
+
params = request._serialize()
|
|
131
|
+
headers = request.headers
|
|
132
|
+
body = self.call("CreateAgentVersionFromSource", params, headers=headers)
|
|
133
|
+
response = json.loads(body)
|
|
134
|
+
model = models.CreateAgentVersionFromSourceResponse()
|
|
135
|
+
model._deserialize(response["Response"])
|
|
136
|
+
return model
|
|
137
|
+
except Exception as e:
|
|
138
|
+
if isinstance(e, TencentCloudSDKException):
|
|
139
|
+
raise
|
|
140
|
+
else:
|
|
141
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def DeleteAgent(self, request):
|
|
145
|
+
r"""删除指定的 Agent 及其所有版本。删除后不可恢复。
|
|
146
|
+
|
|
147
|
+
:param request: Request instance for DeleteAgent.
|
|
148
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DeleteAgentRequest`
|
|
149
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DeleteAgentResponse`
|
|
150
|
+
|
|
151
|
+
"""
|
|
152
|
+
try:
|
|
153
|
+
params = request._serialize()
|
|
154
|
+
headers = request.headers
|
|
155
|
+
body = self.call("DeleteAgent", params, headers=headers)
|
|
156
|
+
response = json.loads(body)
|
|
157
|
+
model = models.DeleteAgentResponse()
|
|
158
|
+
model._deserialize(response["Response"])
|
|
159
|
+
return model
|
|
160
|
+
except Exception as e:
|
|
161
|
+
if isinstance(e, TencentCloudSDKException):
|
|
162
|
+
raise
|
|
163
|
+
else:
|
|
164
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def DescribeAgent(self, request):
|
|
168
|
+
r"""查询单个 Agent 的详细信息,包括基础配置和路由配置。
|
|
169
|
+
|
|
170
|
+
:param request: Request instance for DescribeAgent.
|
|
171
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeAgentRequest`
|
|
172
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeAgentResponse`
|
|
173
|
+
|
|
174
|
+
"""
|
|
175
|
+
try:
|
|
176
|
+
params = request._serialize()
|
|
177
|
+
headers = request.headers
|
|
178
|
+
body = self.call("DescribeAgent", params, headers=headers)
|
|
179
|
+
response = json.loads(body)
|
|
180
|
+
model = models.DescribeAgentResponse()
|
|
181
|
+
model._deserialize(response["Response"])
|
|
182
|
+
return model
|
|
183
|
+
except Exception as e:
|
|
184
|
+
if isinstance(e, TencentCloudSDKException):
|
|
185
|
+
raise
|
|
186
|
+
else:
|
|
187
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
def DescribeAgentList(self, request):
|
|
191
|
+
r"""查询当前企业的 Agent 列表,支持分页、过滤和排序。
|
|
192
|
+
|
|
193
|
+
:param request: Request instance for DescribeAgentList.
|
|
194
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeAgentListRequest`
|
|
195
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeAgentListResponse`
|
|
196
|
+
|
|
197
|
+
"""
|
|
198
|
+
try:
|
|
199
|
+
params = request._serialize()
|
|
200
|
+
headers = request.headers
|
|
201
|
+
body = self.call("DescribeAgentList", params, headers=headers)
|
|
202
|
+
response = json.loads(body)
|
|
203
|
+
model = models.DescribeAgentListResponse()
|
|
204
|
+
model._deserialize(response["Response"])
|
|
205
|
+
return model
|
|
206
|
+
except Exception as e:
|
|
207
|
+
if isinstance(e, TencentCloudSDKException):
|
|
208
|
+
raise
|
|
209
|
+
else:
|
|
210
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
def DescribeAgentSession(self, request):
|
|
214
|
+
r"""查询单个 Agent 会话详情:返回会话基础信息(会话名称 / Agent / 版本 / 状态 / 来源 / 发起人)与可用的聊天接入点列表(EndpointSet)。数据面鉴权走 DescribeUserAccessToken 的用户级访问令牌。
|
|
215
|
+
|
|
216
|
+
:param request: Request instance for DescribeAgentSession.
|
|
217
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeAgentSessionRequest`
|
|
218
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeAgentSessionResponse`
|
|
219
|
+
|
|
220
|
+
"""
|
|
221
|
+
try:
|
|
222
|
+
params = request._serialize()
|
|
223
|
+
headers = request.headers
|
|
224
|
+
body = self.call("DescribeAgentSession", params, headers=headers)
|
|
225
|
+
response = json.loads(body)
|
|
226
|
+
model = models.DescribeAgentSessionResponse()
|
|
227
|
+
model._deserialize(response["Response"])
|
|
228
|
+
return model
|
|
229
|
+
except Exception as e:
|
|
230
|
+
if isinstance(e, TencentCloudSDKException):
|
|
231
|
+
raise
|
|
232
|
+
else:
|
|
233
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def DescribeAgentSessionList(self, request):
|
|
237
|
+
r"""分页查询企业下所有会话(跨 Agent):支持按 SessionId / Status / AgentId / UserId 过滤,按创建 / 更新时间排序,返回会话摘要列表。
|
|
238
|
+
|
|
239
|
+
:param request: Request instance for DescribeAgentSessionList.
|
|
240
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeAgentSessionListRequest`
|
|
241
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeAgentSessionListResponse`
|
|
242
|
+
|
|
243
|
+
"""
|
|
244
|
+
try:
|
|
245
|
+
params = request._serialize()
|
|
246
|
+
headers = request.headers
|
|
247
|
+
body = self.call("DescribeAgentSessionList", params, headers=headers)
|
|
248
|
+
response = json.loads(body)
|
|
249
|
+
model = models.DescribeAgentSessionListResponse()
|
|
250
|
+
model._deserialize(response["Response"])
|
|
251
|
+
return model
|
|
252
|
+
except Exception as e:
|
|
253
|
+
if isinstance(e, TencentCloudSDKException):
|
|
254
|
+
raise
|
|
255
|
+
else:
|
|
256
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
def DescribeAgentVersion(self, request):
|
|
260
|
+
r"""查询单个版本的详细信息,包括 Manifest、Model、状态等。
|
|
261
|
+
|
|
262
|
+
:param request: Request instance for DescribeAgentVersion.
|
|
263
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeAgentVersionRequest`
|
|
264
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeAgentVersionResponse`
|
|
265
|
+
|
|
266
|
+
"""
|
|
267
|
+
try:
|
|
268
|
+
params = request._serialize()
|
|
269
|
+
headers = request.headers
|
|
270
|
+
body = self.call("DescribeAgentVersion", params, headers=headers)
|
|
271
|
+
response = json.loads(body)
|
|
272
|
+
model = models.DescribeAgentVersionResponse()
|
|
273
|
+
model._deserialize(response["Response"])
|
|
274
|
+
return model
|
|
275
|
+
except Exception as e:
|
|
276
|
+
if isinstance(e, TencentCloudSDKException):
|
|
277
|
+
raise
|
|
278
|
+
else:
|
|
279
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
def DescribeAgentVersionList(self, request):
|
|
283
|
+
r"""查询指定 Agent 下的版本列表,支持分页和版本类型过滤。
|
|
284
|
+
|
|
285
|
+
:param request: Request instance for DescribeAgentVersionList.
|
|
286
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeAgentVersionListRequest`
|
|
287
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeAgentVersionListResponse`
|
|
288
|
+
|
|
289
|
+
"""
|
|
290
|
+
try:
|
|
291
|
+
params = request._serialize()
|
|
292
|
+
headers = request.headers
|
|
293
|
+
body = self.call("DescribeAgentVersionList", params, headers=headers)
|
|
294
|
+
response = json.loads(body)
|
|
295
|
+
model = models.DescribeAgentVersionListResponse()
|
|
296
|
+
model._deserialize(response["Response"])
|
|
297
|
+
return model
|
|
298
|
+
except Exception as e:
|
|
299
|
+
if isinstance(e, TencentCloudSDKException):
|
|
300
|
+
raise
|
|
301
|
+
else:
|
|
302
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def DescribeBuiltinModelList(self, request):
|
|
306
|
+
r"""查询当前企业的内置模型列表,支持分页与过滤。内置模型由平台预置,企业可按需启用/停用。过滤字段支持:ModelId(模型ID,模糊)、Name(模型名称,模糊)、Vendor(供应商,模糊)、Status(状态,精确:enabled/disabled)。
|
|
307
|
+
|
|
308
|
+
:param request: Request instance for DescribeBuiltinModelList.
|
|
309
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeBuiltinModelListRequest`
|
|
310
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeBuiltinModelListResponse`
|
|
311
|
+
|
|
312
|
+
"""
|
|
313
|
+
try:
|
|
314
|
+
params = request._serialize()
|
|
315
|
+
headers = request.headers
|
|
316
|
+
body = self.call("DescribeBuiltinModelList", params, headers=headers)
|
|
317
|
+
response = json.loads(body)
|
|
318
|
+
model = models.DescribeBuiltinModelListResponse()
|
|
319
|
+
model._deserialize(response["Response"])
|
|
320
|
+
return model
|
|
321
|
+
except Exception as e:
|
|
322
|
+
if isinstance(e, TencentCloudSDKException):
|
|
323
|
+
raise
|
|
324
|
+
else:
|
|
325
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
def DescribeConnectorList(self, request):
|
|
329
|
+
r"""查询指定企业下的连接器列表(PageNumber/PageSize 分页,支持名称模糊与状态、来源过滤)。
|
|
330
|
+
|
|
331
|
+
:param request: Request instance for DescribeConnectorList.
|
|
332
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeConnectorListRequest`
|
|
333
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeConnectorListResponse`
|
|
334
|
+
|
|
335
|
+
"""
|
|
336
|
+
try:
|
|
337
|
+
params = request._serialize()
|
|
338
|
+
headers = request.headers
|
|
339
|
+
body = self.call("DescribeConnectorList", params, headers=headers)
|
|
340
|
+
response = json.loads(body)
|
|
341
|
+
model = models.DescribeConnectorListResponse()
|
|
342
|
+
model._deserialize(response["Response"])
|
|
343
|
+
return model
|
|
344
|
+
except Exception as e:
|
|
345
|
+
if isinstance(e, TencentCloudSDKException):
|
|
346
|
+
raise
|
|
347
|
+
else:
|
|
348
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
def DescribeExpertList(self, request):
|
|
352
|
+
r"""分页查询 Expert 列表,支持关键词、分类、发布状态过滤。
|
|
353
|
+
|
|
354
|
+
:param request: Request instance for DescribeExpertList.
|
|
355
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeExpertListRequest`
|
|
356
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeExpertListResponse`
|
|
357
|
+
|
|
358
|
+
"""
|
|
359
|
+
try:
|
|
360
|
+
params = request._serialize()
|
|
361
|
+
headers = request.headers
|
|
362
|
+
body = self.call("DescribeExpertList", params, headers=headers)
|
|
363
|
+
response = json.loads(body)
|
|
364
|
+
model = models.DescribeExpertListResponse()
|
|
365
|
+
model._deserialize(response["Response"])
|
|
366
|
+
return model
|
|
367
|
+
except Exception as e:
|
|
368
|
+
if isinstance(e, TencentCloudSDKException):
|
|
369
|
+
raise
|
|
370
|
+
else:
|
|
371
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
def DescribeExternalAgent(self, request):
|
|
375
|
+
r"""查询某 managed agent 绑定的单个外部 agent 详情
|
|
376
|
+
|
|
377
|
+
:param request: Request instance for DescribeExternalAgent.
|
|
378
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeExternalAgentRequest`
|
|
379
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeExternalAgentResponse`
|
|
380
|
+
|
|
381
|
+
"""
|
|
382
|
+
try:
|
|
383
|
+
params = request._serialize()
|
|
384
|
+
headers = request.headers
|
|
385
|
+
body = self.call("DescribeExternalAgent", params, headers=headers)
|
|
386
|
+
response = json.loads(body)
|
|
387
|
+
model = models.DescribeExternalAgentResponse()
|
|
388
|
+
model._deserialize(response["Response"])
|
|
389
|
+
return model
|
|
390
|
+
except Exception as e:
|
|
391
|
+
if isinstance(e, TencentCloudSDKException):
|
|
392
|
+
raise
|
|
393
|
+
else:
|
|
394
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
def DescribeExternalAgentList(self, request):
|
|
398
|
+
r"""列某 managed agent 绑定的外部 agent 列表
|
|
399
|
+
|
|
400
|
+
:param request: Request instance for DescribeExternalAgentList.
|
|
401
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeExternalAgentListRequest`
|
|
402
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeExternalAgentListResponse`
|
|
403
|
+
|
|
404
|
+
"""
|
|
405
|
+
try:
|
|
406
|
+
params = request._serialize()
|
|
407
|
+
headers = request.headers
|
|
408
|
+
body = self.call("DescribeExternalAgentList", params, headers=headers)
|
|
409
|
+
response = json.loads(body)
|
|
410
|
+
model = models.DescribeExternalAgentListResponse()
|
|
411
|
+
model._deserialize(response["Response"])
|
|
412
|
+
return model
|
|
413
|
+
except Exception as e:
|
|
414
|
+
if isinstance(e, TencentCloudSDKException):
|
|
415
|
+
raise
|
|
416
|
+
else:
|
|
417
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
def DescribeMessageEventList(self, request):
|
|
421
|
+
r"""按 Session 分页查询消息事件
|
|
422
|
+
|
|
423
|
+
:param request: Request instance for DescribeMessageEventList.
|
|
424
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeMessageEventListRequest`
|
|
425
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeMessageEventListResponse`
|
|
426
|
+
|
|
427
|
+
"""
|
|
428
|
+
try:
|
|
429
|
+
params = request._serialize()
|
|
430
|
+
headers = request.headers
|
|
431
|
+
body = self.call("DescribeMessageEventList", params, headers=headers)
|
|
432
|
+
response = json.loads(body)
|
|
433
|
+
model = models.DescribeMessageEventListResponse()
|
|
434
|
+
model._deserialize(response["Response"])
|
|
435
|
+
return model
|
|
436
|
+
except Exception as e:
|
|
437
|
+
if isinstance(e, TencentCloudSDKException):
|
|
438
|
+
raise
|
|
439
|
+
else:
|
|
440
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
def DescribeSkillList(self, request):
|
|
444
|
+
r"""分页查询 Skill 列表,支持关键词、分类、发布状态过滤。
|
|
445
|
+
|
|
446
|
+
:param request: Request instance for DescribeSkillList.
|
|
447
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeSkillListRequest`
|
|
448
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.DescribeSkillListResponse`
|
|
449
|
+
|
|
450
|
+
"""
|
|
451
|
+
try:
|
|
452
|
+
params = request._serialize()
|
|
453
|
+
headers = request.headers
|
|
454
|
+
body = self.call("DescribeSkillList", params, headers=headers)
|
|
455
|
+
response = json.loads(body)
|
|
456
|
+
model = models.DescribeSkillListResponse()
|
|
457
|
+
model._deserialize(response["Response"])
|
|
458
|
+
return model
|
|
459
|
+
except Exception as e:
|
|
460
|
+
if isinstance(e, TencentCloudSDKException):
|
|
461
|
+
raise
|
|
462
|
+
else:
|
|
463
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
def MigrateAgentSession(self, request):
|
|
467
|
+
r"""将指定会话迁移到目标版本。SessionID / RuntimeID 保持不变,通过 AgentOS UpdateSession 在原沙箱上更新 manifest 到新版本;AgentId 必须与原 Session 一致(禁止跨 Agent 迁移);ChatToken 复用旧值不轮转。
|
|
468
|
+
|
|
469
|
+
:param request: Request instance for MigrateAgentSession.
|
|
470
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.MigrateAgentSessionRequest`
|
|
471
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.MigrateAgentSessionResponse`
|
|
472
|
+
|
|
473
|
+
"""
|
|
474
|
+
try:
|
|
475
|
+
params = request._serialize()
|
|
476
|
+
headers = request.headers
|
|
477
|
+
body = self.call("MigrateAgentSession", params, headers=headers)
|
|
478
|
+
response = json.loads(body)
|
|
479
|
+
model = models.MigrateAgentSessionResponse()
|
|
480
|
+
model._deserialize(response["Response"])
|
|
481
|
+
return model
|
|
482
|
+
except Exception as e:
|
|
483
|
+
if isinstance(e, TencentCloudSDKException):
|
|
484
|
+
raise
|
|
485
|
+
else:
|
|
486
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
def ModifyAgent(self, request):
|
|
490
|
+
r"""修改 Agent 基础信息(名称、描述、头像)。AgentName / Description / AvatarUrl 均为可选,仅传递需要更新的字段。
|
|
491
|
+
|
|
492
|
+
:param request: Request instance for ModifyAgent.
|
|
493
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.ModifyAgentRequest`
|
|
494
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.ModifyAgentResponse`
|
|
495
|
+
|
|
496
|
+
"""
|
|
497
|
+
try:
|
|
498
|
+
params = request._serialize()
|
|
499
|
+
headers = request.headers
|
|
500
|
+
body = self.call("ModifyAgent", params, headers=headers)
|
|
501
|
+
response = json.loads(body)
|
|
502
|
+
model = models.ModifyAgentResponse()
|
|
503
|
+
model._deserialize(response["Response"])
|
|
504
|
+
return model
|
|
505
|
+
except Exception as e:
|
|
506
|
+
if isinstance(e, TencentCloudSDKException):
|
|
507
|
+
raise
|
|
508
|
+
else:
|
|
509
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
def ModifyAgentA2AConfig(self, request):
|
|
513
|
+
r"""修改 Agent 的 A2A 配置。A2AEnabled 是 Agent 级唯一开关,与具体版本和流量分发策略无关。
|
|
514
|
+
|
|
515
|
+
:param request: Request instance for ModifyAgentA2AConfig.
|
|
516
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.ModifyAgentA2AConfigRequest`
|
|
517
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.ModifyAgentA2AConfigResponse`
|
|
518
|
+
|
|
519
|
+
"""
|
|
520
|
+
try:
|
|
521
|
+
params = request._serialize()
|
|
522
|
+
headers = request.headers
|
|
523
|
+
body = self.call("ModifyAgentA2AConfig", params, headers=headers)
|
|
524
|
+
response = json.loads(body)
|
|
525
|
+
model = models.ModifyAgentA2AConfigResponse()
|
|
526
|
+
model._deserialize(response["Response"])
|
|
527
|
+
return model
|
|
528
|
+
except Exception as e:
|
|
529
|
+
if isinstance(e, TencentCloudSDKException):
|
|
530
|
+
raise
|
|
531
|
+
else:
|
|
532
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
def ModifyAgentRouting(self, request):
|
|
536
|
+
r"""覆盖式写入 Agent 路由配置(版本权重)。所有 VersionId 必须属于同一 Agent 且未弃用;允许空数组(下线 Agent 对外流量);非空时权重总和须等于 1。
|
|
537
|
+
|
|
538
|
+
:param request: Request instance for ModifyAgentRouting.
|
|
539
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.ModifyAgentRoutingRequest`
|
|
540
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.ModifyAgentRoutingResponse`
|
|
541
|
+
|
|
542
|
+
"""
|
|
543
|
+
try:
|
|
544
|
+
params = request._serialize()
|
|
545
|
+
headers = request.headers
|
|
546
|
+
body = self.call("ModifyAgentRouting", params, headers=headers)
|
|
547
|
+
response = json.loads(body)
|
|
548
|
+
model = models.ModifyAgentRoutingResponse()
|
|
549
|
+
model._deserialize(response["Response"])
|
|
550
|
+
return model
|
|
551
|
+
except Exception as e:
|
|
552
|
+
if isinstance(e, TencentCloudSDKException):
|
|
553
|
+
raise
|
|
554
|
+
else:
|
|
555
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
def ModifyAgentVersion(self, request):
|
|
559
|
+
r"""原地更新 default 或 test 版本的 Manifest / Model / Description / SandboxTemplateId / ConnectorSet(prod 版本冻结不可修改),五个可选字段至少提供一个。ConnectorSet 为全量覆盖语义:缺省表示不改动连接器绑定;空数组表示解绑全部连接器。
|
|
560
|
+
|
|
561
|
+
:param request: Request instance for ModifyAgentVersion.
|
|
562
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.ModifyAgentVersionRequest`
|
|
563
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.ModifyAgentVersionResponse`
|
|
564
|
+
|
|
565
|
+
"""
|
|
566
|
+
try:
|
|
567
|
+
params = request._serialize()
|
|
568
|
+
headers = request.headers
|
|
569
|
+
body = self.call("ModifyAgentVersion", params, headers=headers)
|
|
570
|
+
response = json.loads(body)
|
|
571
|
+
model = models.ModifyAgentVersionResponse()
|
|
572
|
+
model._deserialize(response["Response"])
|
|
573
|
+
return model
|
|
574
|
+
except Exception as e:
|
|
575
|
+
if isinstance(e, TencentCloudSDKException):
|
|
576
|
+
raise
|
|
577
|
+
else:
|
|
578
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
def UnbindExternalAgent(self, request):
|
|
582
|
+
r"""解除外部 agent 与 managed agent 的绑定
|
|
583
|
+
|
|
584
|
+
:param request: Request instance for UnbindExternalAgent.
|
|
585
|
+
:type request: :class:`tencentcloud.workbuddyenterprise.v20260709.models.UnbindExternalAgentRequest`
|
|
586
|
+
:rtype: :class:`tencentcloud.workbuddyenterprise.v20260709.models.UnbindExternalAgentResponse`
|
|
587
|
+
|
|
588
|
+
"""
|
|
589
|
+
try:
|
|
590
|
+
params = request._serialize()
|
|
591
|
+
headers = request.headers
|
|
592
|
+
body = self.call("UnbindExternalAgent", params, headers=headers)
|
|
593
|
+
response = json.loads(body)
|
|
594
|
+
model = models.UnbindExternalAgentResponse()
|
|
595
|
+
model._deserialize(response["Response"])
|
|
596
|
+
return model
|
|
597
|
+
except Exception as e:
|
|
598
|
+
if isinstance(e, TencentCloudSDKException):
|
|
599
|
+
raise
|
|
600
|
+
else:
|
|
601
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|