alibabacloud-agentrun20250910 1.0.0__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.
- alibabacloud_agentrun20250910/__init__.py +1 -0
- alibabacloud_agentrun20250910/client.py +2190 -0
- alibabacloud_agentrun20250910/models.py +7578 -0
- alibabacloud_agentrun20250910-1.0.0.dist-info/LICENSE +13 -0
- alibabacloud_agentrun20250910-1.0.0.dist-info/METADATA +69 -0
- alibabacloud_agentrun20250910-1.0.0.dist-info/RECORD +8 -0
- alibabacloud_agentrun20250910-1.0.0.dist-info/WHEEL +5 -0
- alibabacloud_agentrun20250910-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,2190 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# This file is auto-generated, don't edit it. Thanks.
|
|
3
|
+
from typing import Dict
|
|
4
|
+
from Tea.core import TeaCore
|
|
5
|
+
|
|
6
|
+
from alibabacloud_tea_openapi.client import Client as OpenApiClient
|
|
7
|
+
from alibabacloud_tea_openapi import models as open_api_models
|
|
8
|
+
from alibabacloud_tea_util.client import Client as UtilClient
|
|
9
|
+
from alibabacloud_endpoint_util.client import Client as EndpointUtilClient
|
|
10
|
+
from alibabacloud_agentrun20250910 import models as agent_run_20250910_models
|
|
11
|
+
from alibabacloud_tea_util import models as util_models
|
|
12
|
+
from alibabacloud_openapi_util.client import Client as OpenApiUtilClient
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class Client(OpenApiClient):
|
|
16
|
+
"""
|
|
17
|
+
*\
|
|
18
|
+
"""
|
|
19
|
+
def __init__(
|
|
20
|
+
self,
|
|
21
|
+
config: open_api_models.Config,
|
|
22
|
+
):
|
|
23
|
+
super().__init__(config)
|
|
24
|
+
self._endpoint_rule = ''
|
|
25
|
+
self.check_config(config)
|
|
26
|
+
self._endpoint = self.get_endpoint('agentrun', self._region_id, self._endpoint_rule, self._network, self._suffix, self._endpoint_map, self._endpoint)
|
|
27
|
+
|
|
28
|
+
def get_endpoint(
|
|
29
|
+
self,
|
|
30
|
+
product_id: str,
|
|
31
|
+
region_id: str,
|
|
32
|
+
endpoint_rule: str,
|
|
33
|
+
network: str,
|
|
34
|
+
suffix: str,
|
|
35
|
+
endpoint_map: Dict[str, str],
|
|
36
|
+
endpoint: str,
|
|
37
|
+
) -> str:
|
|
38
|
+
if not UtilClient.empty(endpoint):
|
|
39
|
+
return endpoint
|
|
40
|
+
if not UtilClient.is_unset(endpoint_map) and not UtilClient.empty(endpoint_map.get(region_id)):
|
|
41
|
+
return endpoint_map.get(region_id)
|
|
42
|
+
return EndpointUtilClient.get_endpoint_rules(product_id, region_id, endpoint_rule, network, suffix)
|
|
43
|
+
|
|
44
|
+
def create_agent_runtime_with_options(
|
|
45
|
+
self,
|
|
46
|
+
request: agent_run_20250910_models.CreateAgentRuntimeRequest,
|
|
47
|
+
headers: Dict[str, str],
|
|
48
|
+
runtime: util_models.RuntimeOptions,
|
|
49
|
+
) -> agent_run_20250910_models.CreateAgentRuntimeResponse:
|
|
50
|
+
"""
|
|
51
|
+
@summary Create an agent runtime
|
|
52
|
+
|
|
53
|
+
@description 创建一个新的智能体运行时实例,用于执行AI代理任务。智能体运行时是AgentRun服务的核心组件,提供代码执行、浏览器操作、内存管理等能力。
|
|
54
|
+
|
|
55
|
+
@param request: CreateAgentRuntimeRequest
|
|
56
|
+
@param headers: map
|
|
57
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
58
|
+
@return: CreateAgentRuntimeResponse
|
|
59
|
+
"""
|
|
60
|
+
UtilClient.validate_model(request)
|
|
61
|
+
req = open_api_models.OpenApiRequest(
|
|
62
|
+
headers=headers,
|
|
63
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
64
|
+
)
|
|
65
|
+
params = open_api_models.Params(
|
|
66
|
+
action='CreateAgentRuntime',
|
|
67
|
+
version='2025-09-10',
|
|
68
|
+
protocol='HTTPS',
|
|
69
|
+
pathname=f'/2025-09-10/agents/runtimes',
|
|
70
|
+
method='POST',
|
|
71
|
+
auth_type='AK',
|
|
72
|
+
style='ROA',
|
|
73
|
+
req_body_type='json',
|
|
74
|
+
body_type='json'
|
|
75
|
+
)
|
|
76
|
+
return TeaCore.from_map(
|
|
77
|
+
agent_run_20250910_models.CreateAgentRuntimeResponse(),
|
|
78
|
+
self.call_api(params, req, runtime)
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
async def create_agent_runtime_with_options_async(
|
|
82
|
+
self,
|
|
83
|
+
request: agent_run_20250910_models.CreateAgentRuntimeRequest,
|
|
84
|
+
headers: Dict[str, str],
|
|
85
|
+
runtime: util_models.RuntimeOptions,
|
|
86
|
+
) -> agent_run_20250910_models.CreateAgentRuntimeResponse:
|
|
87
|
+
"""
|
|
88
|
+
@summary Create an agent runtime
|
|
89
|
+
|
|
90
|
+
@description 创建一个新的智能体运行时实例,用于执行AI代理任务。智能体运行时是AgentRun服务的核心组件,提供代码执行、浏览器操作、内存管理等能力。
|
|
91
|
+
|
|
92
|
+
@param request: CreateAgentRuntimeRequest
|
|
93
|
+
@param headers: map
|
|
94
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
95
|
+
@return: CreateAgentRuntimeResponse
|
|
96
|
+
"""
|
|
97
|
+
UtilClient.validate_model(request)
|
|
98
|
+
req = open_api_models.OpenApiRequest(
|
|
99
|
+
headers=headers,
|
|
100
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
101
|
+
)
|
|
102
|
+
params = open_api_models.Params(
|
|
103
|
+
action='CreateAgentRuntime',
|
|
104
|
+
version='2025-09-10',
|
|
105
|
+
protocol='HTTPS',
|
|
106
|
+
pathname=f'/2025-09-10/agents/runtimes',
|
|
107
|
+
method='POST',
|
|
108
|
+
auth_type='AK',
|
|
109
|
+
style='ROA',
|
|
110
|
+
req_body_type='json',
|
|
111
|
+
body_type='json'
|
|
112
|
+
)
|
|
113
|
+
return TeaCore.from_map(
|
|
114
|
+
agent_run_20250910_models.CreateAgentRuntimeResponse(),
|
|
115
|
+
await self.call_api_async(params, req, runtime)
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
def create_agent_runtime(
|
|
119
|
+
self,
|
|
120
|
+
request: agent_run_20250910_models.CreateAgentRuntimeRequest,
|
|
121
|
+
) -> agent_run_20250910_models.CreateAgentRuntimeResponse:
|
|
122
|
+
"""
|
|
123
|
+
@summary Create an agent runtime
|
|
124
|
+
|
|
125
|
+
@description 创建一个新的智能体运行时实例,用于执行AI代理任务。智能体运行时是AgentRun服务的核心组件,提供代码执行、浏览器操作、内存管理等能力。
|
|
126
|
+
|
|
127
|
+
@param request: CreateAgentRuntimeRequest
|
|
128
|
+
@return: CreateAgentRuntimeResponse
|
|
129
|
+
"""
|
|
130
|
+
runtime = util_models.RuntimeOptions()
|
|
131
|
+
headers = {}
|
|
132
|
+
return self.create_agent_runtime_with_options(request, headers, runtime)
|
|
133
|
+
|
|
134
|
+
async def create_agent_runtime_async(
|
|
135
|
+
self,
|
|
136
|
+
request: agent_run_20250910_models.CreateAgentRuntimeRequest,
|
|
137
|
+
) -> agent_run_20250910_models.CreateAgentRuntimeResponse:
|
|
138
|
+
"""
|
|
139
|
+
@summary Create an agent runtime
|
|
140
|
+
|
|
141
|
+
@description 创建一个新的智能体运行时实例,用于执行AI代理任务。智能体运行时是AgentRun服务的核心组件,提供代码执行、浏览器操作、内存管理等能力。
|
|
142
|
+
|
|
143
|
+
@param request: CreateAgentRuntimeRequest
|
|
144
|
+
@return: CreateAgentRuntimeResponse
|
|
145
|
+
"""
|
|
146
|
+
runtime = util_models.RuntimeOptions()
|
|
147
|
+
headers = {}
|
|
148
|
+
return await self.create_agent_runtime_with_options_async(request, headers, runtime)
|
|
149
|
+
|
|
150
|
+
def create_agent_runtime_endpoint_with_options(
|
|
151
|
+
self,
|
|
152
|
+
agent_runtime_id: str,
|
|
153
|
+
request: agent_run_20250910_models.CreateAgentRuntimeEndpointRequest,
|
|
154
|
+
headers: Dict[str, str],
|
|
155
|
+
runtime: util_models.RuntimeOptions,
|
|
156
|
+
) -> agent_run_20250910_models.CreateAgentRuntimeEndpointResponse:
|
|
157
|
+
"""
|
|
158
|
+
@summary 创建智能体运行时端点
|
|
159
|
+
|
|
160
|
+
@description 为指定的智能体运行时创建新的端点,用于外部访问和调用。端点是智能体运行时对外提供服务的入口。
|
|
161
|
+
|
|
162
|
+
@param request: CreateAgentRuntimeEndpointRequest
|
|
163
|
+
@param headers: map
|
|
164
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
165
|
+
@return: CreateAgentRuntimeEndpointResponse
|
|
166
|
+
"""
|
|
167
|
+
UtilClient.validate_model(request)
|
|
168
|
+
req = open_api_models.OpenApiRequest(
|
|
169
|
+
headers=headers,
|
|
170
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
171
|
+
)
|
|
172
|
+
params = open_api_models.Params(
|
|
173
|
+
action='CreateAgentRuntimeEndpoint',
|
|
174
|
+
version='2025-09-10',
|
|
175
|
+
protocol='HTTPS',
|
|
176
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/endpoints',
|
|
177
|
+
method='POST',
|
|
178
|
+
auth_type='AK',
|
|
179
|
+
style='ROA',
|
|
180
|
+
req_body_type='json',
|
|
181
|
+
body_type='json'
|
|
182
|
+
)
|
|
183
|
+
return TeaCore.from_map(
|
|
184
|
+
agent_run_20250910_models.CreateAgentRuntimeEndpointResponse(),
|
|
185
|
+
self.call_api(params, req, runtime)
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
async def create_agent_runtime_endpoint_with_options_async(
|
|
189
|
+
self,
|
|
190
|
+
agent_runtime_id: str,
|
|
191
|
+
request: agent_run_20250910_models.CreateAgentRuntimeEndpointRequest,
|
|
192
|
+
headers: Dict[str, str],
|
|
193
|
+
runtime: util_models.RuntimeOptions,
|
|
194
|
+
) -> agent_run_20250910_models.CreateAgentRuntimeEndpointResponse:
|
|
195
|
+
"""
|
|
196
|
+
@summary 创建智能体运行时端点
|
|
197
|
+
|
|
198
|
+
@description 为指定的智能体运行时创建新的端点,用于外部访问和调用。端点是智能体运行时对外提供服务的入口。
|
|
199
|
+
|
|
200
|
+
@param request: CreateAgentRuntimeEndpointRequest
|
|
201
|
+
@param headers: map
|
|
202
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
203
|
+
@return: CreateAgentRuntimeEndpointResponse
|
|
204
|
+
"""
|
|
205
|
+
UtilClient.validate_model(request)
|
|
206
|
+
req = open_api_models.OpenApiRequest(
|
|
207
|
+
headers=headers,
|
|
208
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
209
|
+
)
|
|
210
|
+
params = open_api_models.Params(
|
|
211
|
+
action='CreateAgentRuntimeEndpoint',
|
|
212
|
+
version='2025-09-10',
|
|
213
|
+
protocol='HTTPS',
|
|
214
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/endpoints',
|
|
215
|
+
method='POST',
|
|
216
|
+
auth_type='AK',
|
|
217
|
+
style='ROA',
|
|
218
|
+
req_body_type='json',
|
|
219
|
+
body_type='json'
|
|
220
|
+
)
|
|
221
|
+
return TeaCore.from_map(
|
|
222
|
+
agent_run_20250910_models.CreateAgentRuntimeEndpointResponse(),
|
|
223
|
+
await self.call_api_async(params, req, runtime)
|
|
224
|
+
)
|
|
225
|
+
|
|
226
|
+
def create_agent_runtime_endpoint(
|
|
227
|
+
self,
|
|
228
|
+
agent_runtime_id: str,
|
|
229
|
+
request: agent_run_20250910_models.CreateAgentRuntimeEndpointRequest,
|
|
230
|
+
) -> agent_run_20250910_models.CreateAgentRuntimeEndpointResponse:
|
|
231
|
+
"""
|
|
232
|
+
@summary 创建智能体运行时端点
|
|
233
|
+
|
|
234
|
+
@description 为指定的智能体运行时创建新的端点,用于外部访问和调用。端点是智能体运行时对外提供服务的入口。
|
|
235
|
+
|
|
236
|
+
@param request: CreateAgentRuntimeEndpointRequest
|
|
237
|
+
@return: CreateAgentRuntimeEndpointResponse
|
|
238
|
+
"""
|
|
239
|
+
runtime = util_models.RuntimeOptions()
|
|
240
|
+
headers = {}
|
|
241
|
+
return self.create_agent_runtime_endpoint_with_options(agent_runtime_id, request, headers, runtime)
|
|
242
|
+
|
|
243
|
+
async def create_agent_runtime_endpoint_async(
|
|
244
|
+
self,
|
|
245
|
+
agent_runtime_id: str,
|
|
246
|
+
request: agent_run_20250910_models.CreateAgentRuntimeEndpointRequest,
|
|
247
|
+
) -> agent_run_20250910_models.CreateAgentRuntimeEndpointResponse:
|
|
248
|
+
"""
|
|
249
|
+
@summary 创建智能体运行时端点
|
|
250
|
+
|
|
251
|
+
@description 为指定的智能体运行时创建新的端点,用于外部访问和调用。端点是智能体运行时对外提供服务的入口。
|
|
252
|
+
|
|
253
|
+
@param request: CreateAgentRuntimeEndpointRequest
|
|
254
|
+
@return: CreateAgentRuntimeEndpointResponse
|
|
255
|
+
"""
|
|
256
|
+
runtime = util_models.RuntimeOptions()
|
|
257
|
+
headers = {}
|
|
258
|
+
return await self.create_agent_runtime_endpoint_with_options_async(agent_runtime_id, request, headers, runtime)
|
|
259
|
+
|
|
260
|
+
def create_browser_with_options(
|
|
261
|
+
self,
|
|
262
|
+
request: agent_run_20250910_models.CreateBrowserRequest,
|
|
263
|
+
headers: Dict[str, str],
|
|
264
|
+
runtime: util_models.RuntimeOptions,
|
|
265
|
+
) -> agent_run_20250910_models.CreateBrowserResponse:
|
|
266
|
+
"""
|
|
267
|
+
@summary 创建浏览器实例
|
|
268
|
+
|
|
269
|
+
@description 创建一个新的浏览器实例,用于执行网页自动化任务。浏览器实例提供网页浏览、元素操作、截图录制等功能。
|
|
270
|
+
|
|
271
|
+
@param request: CreateBrowserRequest
|
|
272
|
+
@param headers: map
|
|
273
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
274
|
+
@return: CreateBrowserResponse
|
|
275
|
+
"""
|
|
276
|
+
UtilClient.validate_model(request)
|
|
277
|
+
req = open_api_models.OpenApiRequest(
|
|
278
|
+
headers=headers,
|
|
279
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
280
|
+
)
|
|
281
|
+
params = open_api_models.Params(
|
|
282
|
+
action='CreateBrowser',
|
|
283
|
+
version='2025-09-10',
|
|
284
|
+
protocol='HTTPS',
|
|
285
|
+
pathname=f'/2025-09-10/agents/browsers',
|
|
286
|
+
method='POST',
|
|
287
|
+
auth_type='AK',
|
|
288
|
+
style='ROA',
|
|
289
|
+
req_body_type='json',
|
|
290
|
+
body_type='json'
|
|
291
|
+
)
|
|
292
|
+
return TeaCore.from_map(
|
|
293
|
+
agent_run_20250910_models.CreateBrowserResponse(),
|
|
294
|
+
self.call_api(params, req, runtime)
|
|
295
|
+
)
|
|
296
|
+
|
|
297
|
+
async def create_browser_with_options_async(
|
|
298
|
+
self,
|
|
299
|
+
request: agent_run_20250910_models.CreateBrowserRequest,
|
|
300
|
+
headers: Dict[str, str],
|
|
301
|
+
runtime: util_models.RuntimeOptions,
|
|
302
|
+
) -> agent_run_20250910_models.CreateBrowserResponse:
|
|
303
|
+
"""
|
|
304
|
+
@summary 创建浏览器实例
|
|
305
|
+
|
|
306
|
+
@description 创建一个新的浏览器实例,用于执行网页自动化任务。浏览器实例提供网页浏览、元素操作、截图录制等功能。
|
|
307
|
+
|
|
308
|
+
@param request: CreateBrowserRequest
|
|
309
|
+
@param headers: map
|
|
310
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
311
|
+
@return: CreateBrowserResponse
|
|
312
|
+
"""
|
|
313
|
+
UtilClient.validate_model(request)
|
|
314
|
+
req = open_api_models.OpenApiRequest(
|
|
315
|
+
headers=headers,
|
|
316
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
317
|
+
)
|
|
318
|
+
params = open_api_models.Params(
|
|
319
|
+
action='CreateBrowser',
|
|
320
|
+
version='2025-09-10',
|
|
321
|
+
protocol='HTTPS',
|
|
322
|
+
pathname=f'/2025-09-10/agents/browsers',
|
|
323
|
+
method='POST',
|
|
324
|
+
auth_type='AK',
|
|
325
|
+
style='ROA',
|
|
326
|
+
req_body_type='json',
|
|
327
|
+
body_type='json'
|
|
328
|
+
)
|
|
329
|
+
return TeaCore.from_map(
|
|
330
|
+
agent_run_20250910_models.CreateBrowserResponse(),
|
|
331
|
+
await self.call_api_async(params, req, runtime)
|
|
332
|
+
)
|
|
333
|
+
|
|
334
|
+
def create_browser(
|
|
335
|
+
self,
|
|
336
|
+
request: agent_run_20250910_models.CreateBrowserRequest,
|
|
337
|
+
) -> agent_run_20250910_models.CreateBrowserResponse:
|
|
338
|
+
"""
|
|
339
|
+
@summary 创建浏览器实例
|
|
340
|
+
|
|
341
|
+
@description 创建一个新的浏览器实例,用于执行网页自动化任务。浏览器实例提供网页浏览、元素操作、截图录制等功能。
|
|
342
|
+
|
|
343
|
+
@param request: CreateBrowserRequest
|
|
344
|
+
@return: CreateBrowserResponse
|
|
345
|
+
"""
|
|
346
|
+
runtime = util_models.RuntimeOptions()
|
|
347
|
+
headers = {}
|
|
348
|
+
return self.create_browser_with_options(request, headers, runtime)
|
|
349
|
+
|
|
350
|
+
async def create_browser_async(
|
|
351
|
+
self,
|
|
352
|
+
request: agent_run_20250910_models.CreateBrowserRequest,
|
|
353
|
+
) -> agent_run_20250910_models.CreateBrowserResponse:
|
|
354
|
+
"""
|
|
355
|
+
@summary 创建浏览器实例
|
|
356
|
+
|
|
357
|
+
@description 创建一个新的浏览器实例,用于执行网页自动化任务。浏览器实例提供网页浏览、元素操作、截图录制等功能。
|
|
358
|
+
|
|
359
|
+
@param request: CreateBrowserRequest
|
|
360
|
+
@return: CreateBrowserResponse
|
|
361
|
+
"""
|
|
362
|
+
runtime = util_models.RuntimeOptions()
|
|
363
|
+
headers = {}
|
|
364
|
+
return await self.create_browser_with_options_async(request, headers, runtime)
|
|
365
|
+
|
|
366
|
+
def create_code_interpreter_with_options(
|
|
367
|
+
self,
|
|
368
|
+
request: agent_run_20250910_models.CreateCodeInterpreterRequest,
|
|
369
|
+
headers: Dict[str, str],
|
|
370
|
+
runtime: util_models.RuntimeOptions,
|
|
371
|
+
) -> agent_run_20250910_models.CreateCodeInterpreterResponse:
|
|
372
|
+
"""
|
|
373
|
+
@summary 创建代码解释器
|
|
374
|
+
|
|
375
|
+
@description 创建一个新的代码解释器实例,用于执行代码解释和运行任务。代码解释器提供Python代码执行、数据处理、机器学习等功能。
|
|
376
|
+
|
|
377
|
+
@param request: CreateCodeInterpreterRequest
|
|
378
|
+
@param headers: map
|
|
379
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
380
|
+
@return: CreateCodeInterpreterResponse
|
|
381
|
+
"""
|
|
382
|
+
UtilClient.validate_model(request)
|
|
383
|
+
req = open_api_models.OpenApiRequest(
|
|
384
|
+
headers=headers,
|
|
385
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
386
|
+
)
|
|
387
|
+
params = open_api_models.Params(
|
|
388
|
+
action='CreateCodeInterpreter',
|
|
389
|
+
version='2025-09-10',
|
|
390
|
+
protocol='HTTPS',
|
|
391
|
+
pathname=f'/2025-09-10/agents/code-interpreters',
|
|
392
|
+
method='POST',
|
|
393
|
+
auth_type='AK',
|
|
394
|
+
style='ROA',
|
|
395
|
+
req_body_type='json',
|
|
396
|
+
body_type='json'
|
|
397
|
+
)
|
|
398
|
+
return TeaCore.from_map(
|
|
399
|
+
agent_run_20250910_models.CreateCodeInterpreterResponse(),
|
|
400
|
+
self.call_api(params, req, runtime)
|
|
401
|
+
)
|
|
402
|
+
|
|
403
|
+
async def create_code_interpreter_with_options_async(
|
|
404
|
+
self,
|
|
405
|
+
request: agent_run_20250910_models.CreateCodeInterpreterRequest,
|
|
406
|
+
headers: Dict[str, str],
|
|
407
|
+
runtime: util_models.RuntimeOptions,
|
|
408
|
+
) -> agent_run_20250910_models.CreateCodeInterpreterResponse:
|
|
409
|
+
"""
|
|
410
|
+
@summary 创建代码解释器
|
|
411
|
+
|
|
412
|
+
@description 创建一个新的代码解释器实例,用于执行代码解释和运行任务。代码解释器提供Python代码执行、数据处理、机器学习等功能。
|
|
413
|
+
|
|
414
|
+
@param request: CreateCodeInterpreterRequest
|
|
415
|
+
@param headers: map
|
|
416
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
417
|
+
@return: CreateCodeInterpreterResponse
|
|
418
|
+
"""
|
|
419
|
+
UtilClient.validate_model(request)
|
|
420
|
+
req = open_api_models.OpenApiRequest(
|
|
421
|
+
headers=headers,
|
|
422
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
423
|
+
)
|
|
424
|
+
params = open_api_models.Params(
|
|
425
|
+
action='CreateCodeInterpreter',
|
|
426
|
+
version='2025-09-10',
|
|
427
|
+
protocol='HTTPS',
|
|
428
|
+
pathname=f'/2025-09-10/agents/code-interpreters',
|
|
429
|
+
method='POST',
|
|
430
|
+
auth_type='AK',
|
|
431
|
+
style='ROA',
|
|
432
|
+
req_body_type='json',
|
|
433
|
+
body_type='json'
|
|
434
|
+
)
|
|
435
|
+
return TeaCore.from_map(
|
|
436
|
+
agent_run_20250910_models.CreateCodeInterpreterResponse(),
|
|
437
|
+
await self.call_api_async(params, req, runtime)
|
|
438
|
+
)
|
|
439
|
+
|
|
440
|
+
def create_code_interpreter(
|
|
441
|
+
self,
|
|
442
|
+
request: agent_run_20250910_models.CreateCodeInterpreterRequest,
|
|
443
|
+
) -> agent_run_20250910_models.CreateCodeInterpreterResponse:
|
|
444
|
+
"""
|
|
445
|
+
@summary 创建代码解释器
|
|
446
|
+
|
|
447
|
+
@description 创建一个新的代码解释器实例,用于执行代码解释和运行任务。代码解释器提供Python代码执行、数据处理、机器学习等功能。
|
|
448
|
+
|
|
449
|
+
@param request: CreateCodeInterpreterRequest
|
|
450
|
+
@return: CreateCodeInterpreterResponse
|
|
451
|
+
"""
|
|
452
|
+
runtime = util_models.RuntimeOptions()
|
|
453
|
+
headers = {}
|
|
454
|
+
return self.create_code_interpreter_with_options(request, headers, runtime)
|
|
455
|
+
|
|
456
|
+
async def create_code_interpreter_async(
|
|
457
|
+
self,
|
|
458
|
+
request: agent_run_20250910_models.CreateCodeInterpreterRequest,
|
|
459
|
+
) -> agent_run_20250910_models.CreateCodeInterpreterResponse:
|
|
460
|
+
"""
|
|
461
|
+
@summary 创建代码解释器
|
|
462
|
+
|
|
463
|
+
@description 创建一个新的代码解释器实例,用于执行代码解释和运行任务。代码解释器提供Python代码执行、数据处理、机器学习等功能。
|
|
464
|
+
|
|
465
|
+
@param request: CreateCodeInterpreterRequest
|
|
466
|
+
@return: CreateCodeInterpreterResponse
|
|
467
|
+
"""
|
|
468
|
+
runtime = util_models.RuntimeOptions()
|
|
469
|
+
headers = {}
|
|
470
|
+
return await self.create_code_interpreter_with_options_async(request, headers, runtime)
|
|
471
|
+
|
|
472
|
+
def delete_agent_runtime_with_options(
|
|
473
|
+
self,
|
|
474
|
+
agent_runtime_id: str,
|
|
475
|
+
headers: Dict[str, str],
|
|
476
|
+
runtime: util_models.RuntimeOptions,
|
|
477
|
+
) -> agent_run_20250910_models.DeleteAgentRuntimeResponse:
|
|
478
|
+
"""
|
|
479
|
+
@summary 删除智能体运行时
|
|
480
|
+
|
|
481
|
+
@description 删除指定的智能体运行时实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。
|
|
482
|
+
|
|
483
|
+
@param headers: map
|
|
484
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
485
|
+
@return: DeleteAgentRuntimeResponse
|
|
486
|
+
"""
|
|
487
|
+
req = open_api_models.OpenApiRequest(
|
|
488
|
+
headers=headers
|
|
489
|
+
)
|
|
490
|
+
params = open_api_models.Params(
|
|
491
|
+
action='DeleteAgentRuntime',
|
|
492
|
+
version='2025-09-10',
|
|
493
|
+
protocol='HTTPS',
|
|
494
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}',
|
|
495
|
+
method='DELETE',
|
|
496
|
+
auth_type='AK',
|
|
497
|
+
style='ROA',
|
|
498
|
+
req_body_type='json',
|
|
499
|
+
body_type='json'
|
|
500
|
+
)
|
|
501
|
+
return TeaCore.from_map(
|
|
502
|
+
agent_run_20250910_models.DeleteAgentRuntimeResponse(),
|
|
503
|
+
self.call_api(params, req, runtime)
|
|
504
|
+
)
|
|
505
|
+
|
|
506
|
+
async def delete_agent_runtime_with_options_async(
|
|
507
|
+
self,
|
|
508
|
+
agent_runtime_id: str,
|
|
509
|
+
headers: Dict[str, str],
|
|
510
|
+
runtime: util_models.RuntimeOptions,
|
|
511
|
+
) -> agent_run_20250910_models.DeleteAgentRuntimeResponse:
|
|
512
|
+
"""
|
|
513
|
+
@summary 删除智能体运行时
|
|
514
|
+
|
|
515
|
+
@description 删除指定的智能体运行时实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。
|
|
516
|
+
|
|
517
|
+
@param headers: map
|
|
518
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
519
|
+
@return: DeleteAgentRuntimeResponse
|
|
520
|
+
"""
|
|
521
|
+
req = open_api_models.OpenApiRequest(
|
|
522
|
+
headers=headers
|
|
523
|
+
)
|
|
524
|
+
params = open_api_models.Params(
|
|
525
|
+
action='DeleteAgentRuntime',
|
|
526
|
+
version='2025-09-10',
|
|
527
|
+
protocol='HTTPS',
|
|
528
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}',
|
|
529
|
+
method='DELETE',
|
|
530
|
+
auth_type='AK',
|
|
531
|
+
style='ROA',
|
|
532
|
+
req_body_type='json',
|
|
533
|
+
body_type='json'
|
|
534
|
+
)
|
|
535
|
+
return TeaCore.from_map(
|
|
536
|
+
agent_run_20250910_models.DeleteAgentRuntimeResponse(),
|
|
537
|
+
await self.call_api_async(params, req, runtime)
|
|
538
|
+
)
|
|
539
|
+
|
|
540
|
+
def delete_agent_runtime(
|
|
541
|
+
self,
|
|
542
|
+
agent_runtime_id: str,
|
|
543
|
+
) -> agent_run_20250910_models.DeleteAgentRuntimeResponse:
|
|
544
|
+
"""
|
|
545
|
+
@summary 删除智能体运行时
|
|
546
|
+
|
|
547
|
+
@description 删除指定的智能体运行时实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。
|
|
548
|
+
|
|
549
|
+
@return: DeleteAgentRuntimeResponse
|
|
550
|
+
"""
|
|
551
|
+
runtime = util_models.RuntimeOptions()
|
|
552
|
+
headers = {}
|
|
553
|
+
return self.delete_agent_runtime_with_options(agent_runtime_id, headers, runtime)
|
|
554
|
+
|
|
555
|
+
async def delete_agent_runtime_async(
|
|
556
|
+
self,
|
|
557
|
+
agent_runtime_id: str,
|
|
558
|
+
) -> agent_run_20250910_models.DeleteAgentRuntimeResponse:
|
|
559
|
+
"""
|
|
560
|
+
@summary 删除智能体运行时
|
|
561
|
+
|
|
562
|
+
@description 删除指定的智能体运行时实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。
|
|
563
|
+
|
|
564
|
+
@return: DeleteAgentRuntimeResponse
|
|
565
|
+
"""
|
|
566
|
+
runtime = util_models.RuntimeOptions()
|
|
567
|
+
headers = {}
|
|
568
|
+
return await self.delete_agent_runtime_with_options_async(agent_runtime_id, headers, runtime)
|
|
569
|
+
|
|
570
|
+
def delete_agent_runtime_endpoint_with_options(
|
|
571
|
+
self,
|
|
572
|
+
agent_runtime_id: str,
|
|
573
|
+
agent_runtime_endpoint_id: str,
|
|
574
|
+
headers: Dict[str, str],
|
|
575
|
+
runtime: util_models.RuntimeOptions,
|
|
576
|
+
) -> agent_run_20250910_models.DeleteAgentRuntimeEndpointResponse:
|
|
577
|
+
"""
|
|
578
|
+
@summary Delete an agent runtime endpoint
|
|
579
|
+
|
|
580
|
+
@param headers: map
|
|
581
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
582
|
+
@return: DeleteAgentRuntimeEndpointResponse
|
|
583
|
+
"""
|
|
584
|
+
req = open_api_models.OpenApiRequest(
|
|
585
|
+
headers=headers
|
|
586
|
+
)
|
|
587
|
+
params = open_api_models.Params(
|
|
588
|
+
action='DeleteAgentRuntimeEndpoint',
|
|
589
|
+
version='2025-09-10',
|
|
590
|
+
protocol='HTTPS',
|
|
591
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/endpoints/{OpenApiUtilClient.get_encode_param(agent_runtime_endpoint_id)}',
|
|
592
|
+
method='DELETE',
|
|
593
|
+
auth_type='AK',
|
|
594
|
+
style='ROA',
|
|
595
|
+
req_body_type='json',
|
|
596
|
+
body_type='json'
|
|
597
|
+
)
|
|
598
|
+
return TeaCore.from_map(
|
|
599
|
+
agent_run_20250910_models.DeleteAgentRuntimeEndpointResponse(),
|
|
600
|
+
self.call_api(params, req, runtime)
|
|
601
|
+
)
|
|
602
|
+
|
|
603
|
+
async def delete_agent_runtime_endpoint_with_options_async(
|
|
604
|
+
self,
|
|
605
|
+
agent_runtime_id: str,
|
|
606
|
+
agent_runtime_endpoint_id: str,
|
|
607
|
+
headers: Dict[str, str],
|
|
608
|
+
runtime: util_models.RuntimeOptions,
|
|
609
|
+
) -> agent_run_20250910_models.DeleteAgentRuntimeEndpointResponse:
|
|
610
|
+
"""
|
|
611
|
+
@summary Delete an agent runtime endpoint
|
|
612
|
+
|
|
613
|
+
@param headers: map
|
|
614
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
615
|
+
@return: DeleteAgentRuntimeEndpointResponse
|
|
616
|
+
"""
|
|
617
|
+
req = open_api_models.OpenApiRequest(
|
|
618
|
+
headers=headers
|
|
619
|
+
)
|
|
620
|
+
params = open_api_models.Params(
|
|
621
|
+
action='DeleteAgentRuntimeEndpoint',
|
|
622
|
+
version='2025-09-10',
|
|
623
|
+
protocol='HTTPS',
|
|
624
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/endpoints/{OpenApiUtilClient.get_encode_param(agent_runtime_endpoint_id)}',
|
|
625
|
+
method='DELETE',
|
|
626
|
+
auth_type='AK',
|
|
627
|
+
style='ROA',
|
|
628
|
+
req_body_type='json',
|
|
629
|
+
body_type='json'
|
|
630
|
+
)
|
|
631
|
+
return TeaCore.from_map(
|
|
632
|
+
agent_run_20250910_models.DeleteAgentRuntimeEndpointResponse(),
|
|
633
|
+
await self.call_api_async(params, req, runtime)
|
|
634
|
+
)
|
|
635
|
+
|
|
636
|
+
def delete_agent_runtime_endpoint(
|
|
637
|
+
self,
|
|
638
|
+
agent_runtime_id: str,
|
|
639
|
+
agent_runtime_endpoint_id: str,
|
|
640
|
+
) -> agent_run_20250910_models.DeleteAgentRuntimeEndpointResponse:
|
|
641
|
+
"""
|
|
642
|
+
@summary Delete an agent runtime endpoint
|
|
643
|
+
|
|
644
|
+
@return: DeleteAgentRuntimeEndpointResponse
|
|
645
|
+
"""
|
|
646
|
+
runtime = util_models.RuntimeOptions()
|
|
647
|
+
headers = {}
|
|
648
|
+
return self.delete_agent_runtime_endpoint_with_options(agent_runtime_id, agent_runtime_endpoint_id, headers, runtime)
|
|
649
|
+
|
|
650
|
+
async def delete_agent_runtime_endpoint_async(
|
|
651
|
+
self,
|
|
652
|
+
agent_runtime_id: str,
|
|
653
|
+
agent_runtime_endpoint_id: str,
|
|
654
|
+
) -> agent_run_20250910_models.DeleteAgentRuntimeEndpointResponse:
|
|
655
|
+
"""
|
|
656
|
+
@summary Delete an agent runtime endpoint
|
|
657
|
+
|
|
658
|
+
@return: DeleteAgentRuntimeEndpointResponse
|
|
659
|
+
"""
|
|
660
|
+
runtime = util_models.RuntimeOptions()
|
|
661
|
+
headers = {}
|
|
662
|
+
return await self.delete_agent_runtime_endpoint_with_options_async(agent_runtime_id, agent_runtime_endpoint_id, headers, runtime)
|
|
663
|
+
|
|
664
|
+
def delete_browser_with_options(
|
|
665
|
+
self,
|
|
666
|
+
browser_id: str,
|
|
667
|
+
headers: Dict[str, str],
|
|
668
|
+
runtime: util_models.RuntimeOptions,
|
|
669
|
+
) -> agent_run_20250910_models.DeleteBrowserResponse:
|
|
670
|
+
"""
|
|
671
|
+
@summary 删除浏览器实例
|
|
672
|
+
|
|
673
|
+
@description 删除指定的浏览器实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。
|
|
674
|
+
|
|
675
|
+
@param headers: map
|
|
676
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
677
|
+
@return: DeleteBrowserResponse
|
|
678
|
+
"""
|
|
679
|
+
req = open_api_models.OpenApiRequest(
|
|
680
|
+
headers=headers
|
|
681
|
+
)
|
|
682
|
+
params = open_api_models.Params(
|
|
683
|
+
action='DeleteBrowser',
|
|
684
|
+
version='2025-09-10',
|
|
685
|
+
protocol='HTTPS',
|
|
686
|
+
pathname=f'/2025-09-10/agents/browsers/{OpenApiUtilClient.get_encode_param(browser_id)}',
|
|
687
|
+
method='DELETE',
|
|
688
|
+
auth_type='AK',
|
|
689
|
+
style='ROA',
|
|
690
|
+
req_body_type='json',
|
|
691
|
+
body_type='json'
|
|
692
|
+
)
|
|
693
|
+
return TeaCore.from_map(
|
|
694
|
+
agent_run_20250910_models.DeleteBrowserResponse(),
|
|
695
|
+
self.call_api(params, req, runtime)
|
|
696
|
+
)
|
|
697
|
+
|
|
698
|
+
async def delete_browser_with_options_async(
|
|
699
|
+
self,
|
|
700
|
+
browser_id: str,
|
|
701
|
+
headers: Dict[str, str],
|
|
702
|
+
runtime: util_models.RuntimeOptions,
|
|
703
|
+
) -> agent_run_20250910_models.DeleteBrowserResponse:
|
|
704
|
+
"""
|
|
705
|
+
@summary 删除浏览器实例
|
|
706
|
+
|
|
707
|
+
@description 删除指定的浏览器实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。
|
|
708
|
+
|
|
709
|
+
@param headers: map
|
|
710
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
711
|
+
@return: DeleteBrowserResponse
|
|
712
|
+
"""
|
|
713
|
+
req = open_api_models.OpenApiRequest(
|
|
714
|
+
headers=headers
|
|
715
|
+
)
|
|
716
|
+
params = open_api_models.Params(
|
|
717
|
+
action='DeleteBrowser',
|
|
718
|
+
version='2025-09-10',
|
|
719
|
+
protocol='HTTPS',
|
|
720
|
+
pathname=f'/2025-09-10/agents/browsers/{OpenApiUtilClient.get_encode_param(browser_id)}',
|
|
721
|
+
method='DELETE',
|
|
722
|
+
auth_type='AK',
|
|
723
|
+
style='ROA',
|
|
724
|
+
req_body_type='json',
|
|
725
|
+
body_type='json'
|
|
726
|
+
)
|
|
727
|
+
return TeaCore.from_map(
|
|
728
|
+
agent_run_20250910_models.DeleteBrowserResponse(),
|
|
729
|
+
await self.call_api_async(params, req, runtime)
|
|
730
|
+
)
|
|
731
|
+
|
|
732
|
+
def delete_browser(
|
|
733
|
+
self,
|
|
734
|
+
browser_id: str,
|
|
735
|
+
) -> agent_run_20250910_models.DeleteBrowserResponse:
|
|
736
|
+
"""
|
|
737
|
+
@summary 删除浏览器实例
|
|
738
|
+
|
|
739
|
+
@description 删除指定的浏览器实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。
|
|
740
|
+
|
|
741
|
+
@return: DeleteBrowserResponse
|
|
742
|
+
"""
|
|
743
|
+
runtime = util_models.RuntimeOptions()
|
|
744
|
+
headers = {}
|
|
745
|
+
return self.delete_browser_with_options(browser_id, headers, runtime)
|
|
746
|
+
|
|
747
|
+
async def delete_browser_async(
|
|
748
|
+
self,
|
|
749
|
+
browser_id: str,
|
|
750
|
+
) -> agent_run_20250910_models.DeleteBrowserResponse:
|
|
751
|
+
"""
|
|
752
|
+
@summary 删除浏览器实例
|
|
753
|
+
|
|
754
|
+
@description 删除指定的浏览器实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。
|
|
755
|
+
|
|
756
|
+
@return: DeleteBrowserResponse
|
|
757
|
+
"""
|
|
758
|
+
runtime = util_models.RuntimeOptions()
|
|
759
|
+
headers = {}
|
|
760
|
+
return await self.delete_browser_with_options_async(browser_id, headers, runtime)
|
|
761
|
+
|
|
762
|
+
def delete_code_interpreter_with_options(
|
|
763
|
+
self,
|
|
764
|
+
code_interpreter_id: str,
|
|
765
|
+
headers: Dict[str, str],
|
|
766
|
+
runtime: util_models.RuntimeOptions,
|
|
767
|
+
) -> agent_run_20250910_models.DeleteCodeInterpreterResponse:
|
|
768
|
+
"""
|
|
769
|
+
@summary 删除代码解释器
|
|
770
|
+
|
|
771
|
+
@description 删除指定的代码解释器实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。
|
|
772
|
+
|
|
773
|
+
@param headers: map
|
|
774
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
775
|
+
@return: DeleteCodeInterpreterResponse
|
|
776
|
+
"""
|
|
777
|
+
req = open_api_models.OpenApiRequest(
|
|
778
|
+
headers=headers
|
|
779
|
+
)
|
|
780
|
+
params = open_api_models.Params(
|
|
781
|
+
action='DeleteCodeInterpreter',
|
|
782
|
+
version='2025-09-10',
|
|
783
|
+
protocol='HTTPS',
|
|
784
|
+
pathname=f'/2025-09-10/agents/code-interpreters/{OpenApiUtilClient.get_encode_param(code_interpreter_id)}',
|
|
785
|
+
method='DELETE',
|
|
786
|
+
auth_type='AK',
|
|
787
|
+
style='ROA',
|
|
788
|
+
req_body_type='json',
|
|
789
|
+
body_type='json'
|
|
790
|
+
)
|
|
791
|
+
return TeaCore.from_map(
|
|
792
|
+
agent_run_20250910_models.DeleteCodeInterpreterResponse(),
|
|
793
|
+
self.call_api(params, req, runtime)
|
|
794
|
+
)
|
|
795
|
+
|
|
796
|
+
async def delete_code_interpreter_with_options_async(
|
|
797
|
+
self,
|
|
798
|
+
code_interpreter_id: str,
|
|
799
|
+
headers: Dict[str, str],
|
|
800
|
+
runtime: util_models.RuntimeOptions,
|
|
801
|
+
) -> agent_run_20250910_models.DeleteCodeInterpreterResponse:
|
|
802
|
+
"""
|
|
803
|
+
@summary 删除代码解释器
|
|
804
|
+
|
|
805
|
+
@description 删除指定的代码解释器实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。
|
|
806
|
+
|
|
807
|
+
@param headers: map
|
|
808
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
809
|
+
@return: DeleteCodeInterpreterResponse
|
|
810
|
+
"""
|
|
811
|
+
req = open_api_models.OpenApiRequest(
|
|
812
|
+
headers=headers
|
|
813
|
+
)
|
|
814
|
+
params = open_api_models.Params(
|
|
815
|
+
action='DeleteCodeInterpreter',
|
|
816
|
+
version='2025-09-10',
|
|
817
|
+
protocol='HTTPS',
|
|
818
|
+
pathname=f'/2025-09-10/agents/code-interpreters/{OpenApiUtilClient.get_encode_param(code_interpreter_id)}',
|
|
819
|
+
method='DELETE',
|
|
820
|
+
auth_type='AK',
|
|
821
|
+
style='ROA',
|
|
822
|
+
req_body_type='json',
|
|
823
|
+
body_type='json'
|
|
824
|
+
)
|
|
825
|
+
return TeaCore.from_map(
|
|
826
|
+
agent_run_20250910_models.DeleteCodeInterpreterResponse(),
|
|
827
|
+
await self.call_api_async(params, req, runtime)
|
|
828
|
+
)
|
|
829
|
+
|
|
830
|
+
def delete_code_interpreter(
|
|
831
|
+
self,
|
|
832
|
+
code_interpreter_id: str,
|
|
833
|
+
) -> agent_run_20250910_models.DeleteCodeInterpreterResponse:
|
|
834
|
+
"""
|
|
835
|
+
@summary 删除代码解释器
|
|
836
|
+
|
|
837
|
+
@description 删除指定的代码解释器实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。
|
|
838
|
+
|
|
839
|
+
@return: DeleteCodeInterpreterResponse
|
|
840
|
+
"""
|
|
841
|
+
runtime = util_models.RuntimeOptions()
|
|
842
|
+
headers = {}
|
|
843
|
+
return self.delete_code_interpreter_with_options(code_interpreter_id, headers, runtime)
|
|
844
|
+
|
|
845
|
+
async def delete_code_interpreter_async(
|
|
846
|
+
self,
|
|
847
|
+
code_interpreter_id: str,
|
|
848
|
+
) -> agent_run_20250910_models.DeleteCodeInterpreterResponse:
|
|
849
|
+
"""
|
|
850
|
+
@summary 删除代码解释器
|
|
851
|
+
|
|
852
|
+
@description 删除指定的代码解释器实例,包括其所有相关资源和数据。删除操作不可逆,请谨慎操作。
|
|
853
|
+
|
|
854
|
+
@return: DeleteCodeInterpreterResponse
|
|
855
|
+
"""
|
|
856
|
+
runtime = util_models.RuntimeOptions()
|
|
857
|
+
headers = {}
|
|
858
|
+
return await self.delete_code_interpreter_with_options_async(code_interpreter_id, headers, runtime)
|
|
859
|
+
|
|
860
|
+
def get_agent_runtime_with_options(
|
|
861
|
+
self,
|
|
862
|
+
agent_runtime_id: str,
|
|
863
|
+
request: agent_run_20250910_models.GetAgentRuntimeRequest,
|
|
864
|
+
headers: Dict[str, str],
|
|
865
|
+
runtime: util_models.RuntimeOptions,
|
|
866
|
+
) -> agent_run_20250910_models.GetAgentRuntimeResponse:
|
|
867
|
+
"""
|
|
868
|
+
@summary 获取智能体运行时详情
|
|
869
|
+
|
|
870
|
+
@description 根据智能体运行时ID获取指定智能体运行时的详细信息,包括配置、状态、资源使用情况等。
|
|
871
|
+
|
|
872
|
+
@param request: GetAgentRuntimeRequest
|
|
873
|
+
@param headers: map
|
|
874
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
875
|
+
@return: GetAgentRuntimeResponse
|
|
876
|
+
"""
|
|
877
|
+
UtilClient.validate_model(request)
|
|
878
|
+
query = {}
|
|
879
|
+
if not UtilClient.is_unset(request.agent_runtime_version):
|
|
880
|
+
query['agentRuntimeVersion'] = request.agent_runtime_version
|
|
881
|
+
req = open_api_models.OpenApiRequest(
|
|
882
|
+
headers=headers,
|
|
883
|
+
query=OpenApiUtilClient.query(query)
|
|
884
|
+
)
|
|
885
|
+
params = open_api_models.Params(
|
|
886
|
+
action='GetAgentRuntime',
|
|
887
|
+
version='2025-09-10',
|
|
888
|
+
protocol='HTTPS',
|
|
889
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}',
|
|
890
|
+
method='GET',
|
|
891
|
+
auth_type='AK',
|
|
892
|
+
style='ROA',
|
|
893
|
+
req_body_type='json',
|
|
894
|
+
body_type='json'
|
|
895
|
+
)
|
|
896
|
+
return TeaCore.from_map(
|
|
897
|
+
agent_run_20250910_models.GetAgentRuntimeResponse(),
|
|
898
|
+
self.call_api(params, req, runtime)
|
|
899
|
+
)
|
|
900
|
+
|
|
901
|
+
async def get_agent_runtime_with_options_async(
|
|
902
|
+
self,
|
|
903
|
+
agent_runtime_id: str,
|
|
904
|
+
request: agent_run_20250910_models.GetAgentRuntimeRequest,
|
|
905
|
+
headers: Dict[str, str],
|
|
906
|
+
runtime: util_models.RuntimeOptions,
|
|
907
|
+
) -> agent_run_20250910_models.GetAgentRuntimeResponse:
|
|
908
|
+
"""
|
|
909
|
+
@summary 获取智能体运行时详情
|
|
910
|
+
|
|
911
|
+
@description 根据智能体运行时ID获取指定智能体运行时的详细信息,包括配置、状态、资源使用情况等。
|
|
912
|
+
|
|
913
|
+
@param request: GetAgentRuntimeRequest
|
|
914
|
+
@param headers: map
|
|
915
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
916
|
+
@return: GetAgentRuntimeResponse
|
|
917
|
+
"""
|
|
918
|
+
UtilClient.validate_model(request)
|
|
919
|
+
query = {}
|
|
920
|
+
if not UtilClient.is_unset(request.agent_runtime_version):
|
|
921
|
+
query['agentRuntimeVersion'] = request.agent_runtime_version
|
|
922
|
+
req = open_api_models.OpenApiRequest(
|
|
923
|
+
headers=headers,
|
|
924
|
+
query=OpenApiUtilClient.query(query)
|
|
925
|
+
)
|
|
926
|
+
params = open_api_models.Params(
|
|
927
|
+
action='GetAgentRuntime',
|
|
928
|
+
version='2025-09-10',
|
|
929
|
+
protocol='HTTPS',
|
|
930
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}',
|
|
931
|
+
method='GET',
|
|
932
|
+
auth_type='AK',
|
|
933
|
+
style='ROA',
|
|
934
|
+
req_body_type='json',
|
|
935
|
+
body_type='json'
|
|
936
|
+
)
|
|
937
|
+
return TeaCore.from_map(
|
|
938
|
+
agent_run_20250910_models.GetAgentRuntimeResponse(),
|
|
939
|
+
await self.call_api_async(params, req, runtime)
|
|
940
|
+
)
|
|
941
|
+
|
|
942
|
+
def get_agent_runtime(
|
|
943
|
+
self,
|
|
944
|
+
agent_runtime_id: str,
|
|
945
|
+
request: agent_run_20250910_models.GetAgentRuntimeRequest,
|
|
946
|
+
) -> agent_run_20250910_models.GetAgentRuntimeResponse:
|
|
947
|
+
"""
|
|
948
|
+
@summary 获取智能体运行时详情
|
|
949
|
+
|
|
950
|
+
@description 根据智能体运行时ID获取指定智能体运行时的详细信息,包括配置、状态、资源使用情况等。
|
|
951
|
+
|
|
952
|
+
@param request: GetAgentRuntimeRequest
|
|
953
|
+
@return: GetAgentRuntimeResponse
|
|
954
|
+
"""
|
|
955
|
+
runtime = util_models.RuntimeOptions()
|
|
956
|
+
headers = {}
|
|
957
|
+
return self.get_agent_runtime_with_options(agent_runtime_id, request, headers, runtime)
|
|
958
|
+
|
|
959
|
+
async def get_agent_runtime_async(
|
|
960
|
+
self,
|
|
961
|
+
agent_runtime_id: str,
|
|
962
|
+
request: agent_run_20250910_models.GetAgentRuntimeRequest,
|
|
963
|
+
) -> agent_run_20250910_models.GetAgentRuntimeResponse:
|
|
964
|
+
"""
|
|
965
|
+
@summary 获取智能体运行时详情
|
|
966
|
+
|
|
967
|
+
@description 根据智能体运行时ID获取指定智能体运行时的详细信息,包括配置、状态、资源使用情况等。
|
|
968
|
+
|
|
969
|
+
@param request: GetAgentRuntimeRequest
|
|
970
|
+
@return: GetAgentRuntimeResponse
|
|
971
|
+
"""
|
|
972
|
+
runtime = util_models.RuntimeOptions()
|
|
973
|
+
headers = {}
|
|
974
|
+
return await self.get_agent_runtime_with_options_async(agent_runtime_id, request, headers, runtime)
|
|
975
|
+
|
|
976
|
+
def get_agent_runtime_endpoint_with_options(
|
|
977
|
+
self,
|
|
978
|
+
agent_runtime_id: str,
|
|
979
|
+
agent_runtime_endpoint_id: str,
|
|
980
|
+
headers: Dict[str, str],
|
|
981
|
+
runtime: util_models.RuntimeOptions,
|
|
982
|
+
) -> agent_run_20250910_models.GetAgentRuntimeEndpointResponse:
|
|
983
|
+
"""
|
|
984
|
+
@summary Get an agent runtime endpoint
|
|
985
|
+
|
|
986
|
+
@param headers: map
|
|
987
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
988
|
+
@return: GetAgentRuntimeEndpointResponse
|
|
989
|
+
"""
|
|
990
|
+
req = open_api_models.OpenApiRequest(
|
|
991
|
+
headers=headers
|
|
992
|
+
)
|
|
993
|
+
params = open_api_models.Params(
|
|
994
|
+
action='GetAgentRuntimeEndpoint',
|
|
995
|
+
version='2025-09-10',
|
|
996
|
+
protocol='HTTPS',
|
|
997
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/endpoints/{OpenApiUtilClient.get_encode_param(agent_runtime_endpoint_id)}',
|
|
998
|
+
method='GET',
|
|
999
|
+
auth_type='AK',
|
|
1000
|
+
style='ROA',
|
|
1001
|
+
req_body_type='json',
|
|
1002
|
+
body_type='json'
|
|
1003
|
+
)
|
|
1004
|
+
return TeaCore.from_map(
|
|
1005
|
+
agent_run_20250910_models.GetAgentRuntimeEndpointResponse(),
|
|
1006
|
+
self.call_api(params, req, runtime)
|
|
1007
|
+
)
|
|
1008
|
+
|
|
1009
|
+
async def get_agent_runtime_endpoint_with_options_async(
|
|
1010
|
+
self,
|
|
1011
|
+
agent_runtime_id: str,
|
|
1012
|
+
agent_runtime_endpoint_id: str,
|
|
1013
|
+
headers: Dict[str, str],
|
|
1014
|
+
runtime: util_models.RuntimeOptions,
|
|
1015
|
+
) -> agent_run_20250910_models.GetAgentRuntimeEndpointResponse:
|
|
1016
|
+
"""
|
|
1017
|
+
@summary Get an agent runtime endpoint
|
|
1018
|
+
|
|
1019
|
+
@param headers: map
|
|
1020
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1021
|
+
@return: GetAgentRuntimeEndpointResponse
|
|
1022
|
+
"""
|
|
1023
|
+
req = open_api_models.OpenApiRequest(
|
|
1024
|
+
headers=headers
|
|
1025
|
+
)
|
|
1026
|
+
params = open_api_models.Params(
|
|
1027
|
+
action='GetAgentRuntimeEndpoint',
|
|
1028
|
+
version='2025-09-10',
|
|
1029
|
+
protocol='HTTPS',
|
|
1030
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/endpoints/{OpenApiUtilClient.get_encode_param(agent_runtime_endpoint_id)}',
|
|
1031
|
+
method='GET',
|
|
1032
|
+
auth_type='AK',
|
|
1033
|
+
style='ROA',
|
|
1034
|
+
req_body_type='json',
|
|
1035
|
+
body_type='json'
|
|
1036
|
+
)
|
|
1037
|
+
return TeaCore.from_map(
|
|
1038
|
+
agent_run_20250910_models.GetAgentRuntimeEndpointResponse(),
|
|
1039
|
+
await self.call_api_async(params, req, runtime)
|
|
1040
|
+
)
|
|
1041
|
+
|
|
1042
|
+
def get_agent_runtime_endpoint(
|
|
1043
|
+
self,
|
|
1044
|
+
agent_runtime_id: str,
|
|
1045
|
+
agent_runtime_endpoint_id: str,
|
|
1046
|
+
) -> agent_run_20250910_models.GetAgentRuntimeEndpointResponse:
|
|
1047
|
+
"""
|
|
1048
|
+
@summary Get an agent runtime endpoint
|
|
1049
|
+
|
|
1050
|
+
@return: GetAgentRuntimeEndpointResponse
|
|
1051
|
+
"""
|
|
1052
|
+
runtime = util_models.RuntimeOptions()
|
|
1053
|
+
headers = {}
|
|
1054
|
+
return self.get_agent_runtime_endpoint_with_options(agent_runtime_id, agent_runtime_endpoint_id, headers, runtime)
|
|
1055
|
+
|
|
1056
|
+
async def get_agent_runtime_endpoint_async(
|
|
1057
|
+
self,
|
|
1058
|
+
agent_runtime_id: str,
|
|
1059
|
+
agent_runtime_endpoint_id: str,
|
|
1060
|
+
) -> agent_run_20250910_models.GetAgentRuntimeEndpointResponse:
|
|
1061
|
+
"""
|
|
1062
|
+
@summary Get an agent runtime endpoint
|
|
1063
|
+
|
|
1064
|
+
@return: GetAgentRuntimeEndpointResponse
|
|
1065
|
+
"""
|
|
1066
|
+
runtime = util_models.RuntimeOptions()
|
|
1067
|
+
headers = {}
|
|
1068
|
+
return await self.get_agent_runtime_endpoint_with_options_async(agent_runtime_id, agent_runtime_endpoint_id, headers, runtime)
|
|
1069
|
+
|
|
1070
|
+
def get_browser_with_options(
|
|
1071
|
+
self,
|
|
1072
|
+
browser_id: str,
|
|
1073
|
+
headers: Dict[str, str],
|
|
1074
|
+
runtime: util_models.RuntimeOptions,
|
|
1075
|
+
) -> agent_run_20250910_models.GetBrowserResponse:
|
|
1076
|
+
"""
|
|
1077
|
+
@summary 获取浏览器实例详情
|
|
1078
|
+
|
|
1079
|
+
@description 根据浏览器ID获取指定浏览器实例的详细信息,包括配置、状态、资源使用情况等。
|
|
1080
|
+
|
|
1081
|
+
@param headers: map
|
|
1082
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1083
|
+
@return: GetBrowserResponse
|
|
1084
|
+
"""
|
|
1085
|
+
req = open_api_models.OpenApiRequest(
|
|
1086
|
+
headers=headers
|
|
1087
|
+
)
|
|
1088
|
+
params = open_api_models.Params(
|
|
1089
|
+
action='GetBrowser',
|
|
1090
|
+
version='2025-09-10',
|
|
1091
|
+
protocol='HTTPS',
|
|
1092
|
+
pathname=f'/2025-09-10/agents/browsers/{OpenApiUtilClient.get_encode_param(browser_id)}',
|
|
1093
|
+
method='GET',
|
|
1094
|
+
auth_type='AK',
|
|
1095
|
+
style='ROA',
|
|
1096
|
+
req_body_type='json',
|
|
1097
|
+
body_type='json'
|
|
1098
|
+
)
|
|
1099
|
+
return TeaCore.from_map(
|
|
1100
|
+
agent_run_20250910_models.GetBrowserResponse(),
|
|
1101
|
+
self.call_api(params, req, runtime)
|
|
1102
|
+
)
|
|
1103
|
+
|
|
1104
|
+
async def get_browser_with_options_async(
|
|
1105
|
+
self,
|
|
1106
|
+
browser_id: str,
|
|
1107
|
+
headers: Dict[str, str],
|
|
1108
|
+
runtime: util_models.RuntimeOptions,
|
|
1109
|
+
) -> agent_run_20250910_models.GetBrowserResponse:
|
|
1110
|
+
"""
|
|
1111
|
+
@summary 获取浏览器实例详情
|
|
1112
|
+
|
|
1113
|
+
@description 根据浏览器ID获取指定浏览器实例的详细信息,包括配置、状态、资源使用情况等。
|
|
1114
|
+
|
|
1115
|
+
@param headers: map
|
|
1116
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1117
|
+
@return: GetBrowserResponse
|
|
1118
|
+
"""
|
|
1119
|
+
req = open_api_models.OpenApiRequest(
|
|
1120
|
+
headers=headers
|
|
1121
|
+
)
|
|
1122
|
+
params = open_api_models.Params(
|
|
1123
|
+
action='GetBrowser',
|
|
1124
|
+
version='2025-09-10',
|
|
1125
|
+
protocol='HTTPS',
|
|
1126
|
+
pathname=f'/2025-09-10/agents/browsers/{OpenApiUtilClient.get_encode_param(browser_id)}',
|
|
1127
|
+
method='GET',
|
|
1128
|
+
auth_type='AK',
|
|
1129
|
+
style='ROA',
|
|
1130
|
+
req_body_type='json',
|
|
1131
|
+
body_type='json'
|
|
1132
|
+
)
|
|
1133
|
+
return TeaCore.from_map(
|
|
1134
|
+
agent_run_20250910_models.GetBrowserResponse(),
|
|
1135
|
+
await self.call_api_async(params, req, runtime)
|
|
1136
|
+
)
|
|
1137
|
+
|
|
1138
|
+
def get_browser(
|
|
1139
|
+
self,
|
|
1140
|
+
browser_id: str,
|
|
1141
|
+
) -> agent_run_20250910_models.GetBrowserResponse:
|
|
1142
|
+
"""
|
|
1143
|
+
@summary 获取浏览器实例详情
|
|
1144
|
+
|
|
1145
|
+
@description 根据浏览器ID获取指定浏览器实例的详细信息,包括配置、状态、资源使用情况等。
|
|
1146
|
+
|
|
1147
|
+
@return: GetBrowserResponse
|
|
1148
|
+
"""
|
|
1149
|
+
runtime = util_models.RuntimeOptions()
|
|
1150
|
+
headers = {}
|
|
1151
|
+
return self.get_browser_with_options(browser_id, headers, runtime)
|
|
1152
|
+
|
|
1153
|
+
async def get_browser_async(
|
|
1154
|
+
self,
|
|
1155
|
+
browser_id: str,
|
|
1156
|
+
) -> agent_run_20250910_models.GetBrowserResponse:
|
|
1157
|
+
"""
|
|
1158
|
+
@summary 获取浏览器实例详情
|
|
1159
|
+
|
|
1160
|
+
@description 根据浏览器ID获取指定浏览器实例的详细信息,包括配置、状态、资源使用情况等。
|
|
1161
|
+
|
|
1162
|
+
@return: GetBrowserResponse
|
|
1163
|
+
"""
|
|
1164
|
+
runtime = util_models.RuntimeOptions()
|
|
1165
|
+
headers = {}
|
|
1166
|
+
return await self.get_browser_with_options_async(browser_id, headers, runtime)
|
|
1167
|
+
|
|
1168
|
+
def get_code_interpreter_with_options(
|
|
1169
|
+
self,
|
|
1170
|
+
code_interpreter_id: str,
|
|
1171
|
+
headers: Dict[str, str],
|
|
1172
|
+
runtime: util_models.RuntimeOptions,
|
|
1173
|
+
) -> agent_run_20250910_models.GetCodeInterpreterResponse:
|
|
1174
|
+
"""
|
|
1175
|
+
@summary 获取代码解释器详情
|
|
1176
|
+
|
|
1177
|
+
@description 根据代码解释器ID获取指定代码解释器实例的详细信息,包括配置、状态、资源使用情况等。
|
|
1178
|
+
|
|
1179
|
+
@param headers: map
|
|
1180
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1181
|
+
@return: GetCodeInterpreterResponse
|
|
1182
|
+
"""
|
|
1183
|
+
req = open_api_models.OpenApiRequest(
|
|
1184
|
+
headers=headers
|
|
1185
|
+
)
|
|
1186
|
+
params = open_api_models.Params(
|
|
1187
|
+
action='GetCodeInterpreter',
|
|
1188
|
+
version='2025-09-10',
|
|
1189
|
+
protocol='HTTPS',
|
|
1190
|
+
pathname=f'/2025-09-10/agents/code-interpreters/{OpenApiUtilClient.get_encode_param(code_interpreter_id)}',
|
|
1191
|
+
method='GET',
|
|
1192
|
+
auth_type='AK',
|
|
1193
|
+
style='ROA',
|
|
1194
|
+
req_body_type='json',
|
|
1195
|
+
body_type='json'
|
|
1196
|
+
)
|
|
1197
|
+
return TeaCore.from_map(
|
|
1198
|
+
agent_run_20250910_models.GetCodeInterpreterResponse(),
|
|
1199
|
+
self.call_api(params, req, runtime)
|
|
1200
|
+
)
|
|
1201
|
+
|
|
1202
|
+
async def get_code_interpreter_with_options_async(
|
|
1203
|
+
self,
|
|
1204
|
+
code_interpreter_id: str,
|
|
1205
|
+
headers: Dict[str, str],
|
|
1206
|
+
runtime: util_models.RuntimeOptions,
|
|
1207
|
+
) -> agent_run_20250910_models.GetCodeInterpreterResponse:
|
|
1208
|
+
"""
|
|
1209
|
+
@summary 获取代码解释器详情
|
|
1210
|
+
|
|
1211
|
+
@description 根据代码解释器ID获取指定代码解释器实例的详细信息,包括配置、状态、资源使用情况等。
|
|
1212
|
+
|
|
1213
|
+
@param headers: map
|
|
1214
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1215
|
+
@return: GetCodeInterpreterResponse
|
|
1216
|
+
"""
|
|
1217
|
+
req = open_api_models.OpenApiRequest(
|
|
1218
|
+
headers=headers
|
|
1219
|
+
)
|
|
1220
|
+
params = open_api_models.Params(
|
|
1221
|
+
action='GetCodeInterpreter',
|
|
1222
|
+
version='2025-09-10',
|
|
1223
|
+
protocol='HTTPS',
|
|
1224
|
+
pathname=f'/2025-09-10/agents/code-interpreters/{OpenApiUtilClient.get_encode_param(code_interpreter_id)}',
|
|
1225
|
+
method='GET',
|
|
1226
|
+
auth_type='AK',
|
|
1227
|
+
style='ROA',
|
|
1228
|
+
req_body_type='json',
|
|
1229
|
+
body_type='json'
|
|
1230
|
+
)
|
|
1231
|
+
return TeaCore.from_map(
|
|
1232
|
+
agent_run_20250910_models.GetCodeInterpreterResponse(),
|
|
1233
|
+
await self.call_api_async(params, req, runtime)
|
|
1234
|
+
)
|
|
1235
|
+
|
|
1236
|
+
def get_code_interpreter(
|
|
1237
|
+
self,
|
|
1238
|
+
code_interpreter_id: str,
|
|
1239
|
+
) -> agent_run_20250910_models.GetCodeInterpreterResponse:
|
|
1240
|
+
"""
|
|
1241
|
+
@summary 获取代码解释器详情
|
|
1242
|
+
|
|
1243
|
+
@description 根据代码解释器ID获取指定代码解释器实例的详细信息,包括配置、状态、资源使用情况等。
|
|
1244
|
+
|
|
1245
|
+
@return: GetCodeInterpreterResponse
|
|
1246
|
+
"""
|
|
1247
|
+
runtime = util_models.RuntimeOptions()
|
|
1248
|
+
headers = {}
|
|
1249
|
+
return self.get_code_interpreter_with_options(code_interpreter_id, headers, runtime)
|
|
1250
|
+
|
|
1251
|
+
async def get_code_interpreter_async(
|
|
1252
|
+
self,
|
|
1253
|
+
code_interpreter_id: str,
|
|
1254
|
+
) -> agent_run_20250910_models.GetCodeInterpreterResponse:
|
|
1255
|
+
"""
|
|
1256
|
+
@summary 获取代码解释器详情
|
|
1257
|
+
|
|
1258
|
+
@description 根据代码解释器ID获取指定代码解释器实例的详细信息,包括配置、状态、资源使用情况等。
|
|
1259
|
+
|
|
1260
|
+
@return: GetCodeInterpreterResponse
|
|
1261
|
+
"""
|
|
1262
|
+
runtime = util_models.RuntimeOptions()
|
|
1263
|
+
headers = {}
|
|
1264
|
+
return await self.get_code_interpreter_with_options_async(code_interpreter_id, headers, runtime)
|
|
1265
|
+
|
|
1266
|
+
def list_agent_runtime_endpoints_with_options(
|
|
1267
|
+
self,
|
|
1268
|
+
agent_runtime_id: str,
|
|
1269
|
+
request: agent_run_20250910_models.ListAgentRuntimeEndpointsRequest,
|
|
1270
|
+
headers: Dict[str, str],
|
|
1271
|
+
runtime: util_models.RuntimeOptions,
|
|
1272
|
+
) -> agent_run_20250910_models.ListAgentRuntimeEndpointsResponse:
|
|
1273
|
+
"""
|
|
1274
|
+
@summary 列出智能体运行时端点
|
|
1275
|
+
|
|
1276
|
+
@description 获取指定智能体运行时的所有端点列表,支持按名称过滤和分页查询。端点用于外部系统访问智能体运行时服务。
|
|
1277
|
+
|
|
1278
|
+
@param request: ListAgentRuntimeEndpointsRequest
|
|
1279
|
+
@param headers: map
|
|
1280
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1281
|
+
@return: ListAgentRuntimeEndpointsResponse
|
|
1282
|
+
"""
|
|
1283
|
+
UtilClient.validate_model(request)
|
|
1284
|
+
query = {}
|
|
1285
|
+
if not UtilClient.is_unset(request.endpoint_name):
|
|
1286
|
+
query['endpointName'] = request.endpoint_name
|
|
1287
|
+
if not UtilClient.is_unset(request.page_number):
|
|
1288
|
+
query['pageNumber'] = request.page_number
|
|
1289
|
+
if not UtilClient.is_unset(request.page_size):
|
|
1290
|
+
query['pageSize'] = request.page_size
|
|
1291
|
+
req = open_api_models.OpenApiRequest(
|
|
1292
|
+
headers=headers,
|
|
1293
|
+
query=OpenApiUtilClient.query(query)
|
|
1294
|
+
)
|
|
1295
|
+
params = open_api_models.Params(
|
|
1296
|
+
action='ListAgentRuntimeEndpoints',
|
|
1297
|
+
version='2025-09-10',
|
|
1298
|
+
protocol='HTTPS',
|
|
1299
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/endpoints',
|
|
1300
|
+
method='GET',
|
|
1301
|
+
auth_type='AK',
|
|
1302
|
+
style='ROA',
|
|
1303
|
+
req_body_type='json',
|
|
1304
|
+
body_type='json'
|
|
1305
|
+
)
|
|
1306
|
+
return TeaCore.from_map(
|
|
1307
|
+
agent_run_20250910_models.ListAgentRuntimeEndpointsResponse(),
|
|
1308
|
+
self.call_api(params, req, runtime)
|
|
1309
|
+
)
|
|
1310
|
+
|
|
1311
|
+
async def list_agent_runtime_endpoints_with_options_async(
|
|
1312
|
+
self,
|
|
1313
|
+
agent_runtime_id: str,
|
|
1314
|
+
request: agent_run_20250910_models.ListAgentRuntimeEndpointsRequest,
|
|
1315
|
+
headers: Dict[str, str],
|
|
1316
|
+
runtime: util_models.RuntimeOptions,
|
|
1317
|
+
) -> agent_run_20250910_models.ListAgentRuntimeEndpointsResponse:
|
|
1318
|
+
"""
|
|
1319
|
+
@summary 列出智能体运行时端点
|
|
1320
|
+
|
|
1321
|
+
@description 获取指定智能体运行时的所有端点列表,支持按名称过滤和分页查询。端点用于外部系统访问智能体运行时服务。
|
|
1322
|
+
|
|
1323
|
+
@param request: ListAgentRuntimeEndpointsRequest
|
|
1324
|
+
@param headers: map
|
|
1325
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1326
|
+
@return: ListAgentRuntimeEndpointsResponse
|
|
1327
|
+
"""
|
|
1328
|
+
UtilClient.validate_model(request)
|
|
1329
|
+
query = {}
|
|
1330
|
+
if not UtilClient.is_unset(request.endpoint_name):
|
|
1331
|
+
query['endpointName'] = request.endpoint_name
|
|
1332
|
+
if not UtilClient.is_unset(request.page_number):
|
|
1333
|
+
query['pageNumber'] = request.page_number
|
|
1334
|
+
if not UtilClient.is_unset(request.page_size):
|
|
1335
|
+
query['pageSize'] = request.page_size
|
|
1336
|
+
req = open_api_models.OpenApiRequest(
|
|
1337
|
+
headers=headers,
|
|
1338
|
+
query=OpenApiUtilClient.query(query)
|
|
1339
|
+
)
|
|
1340
|
+
params = open_api_models.Params(
|
|
1341
|
+
action='ListAgentRuntimeEndpoints',
|
|
1342
|
+
version='2025-09-10',
|
|
1343
|
+
protocol='HTTPS',
|
|
1344
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/endpoints',
|
|
1345
|
+
method='GET',
|
|
1346
|
+
auth_type='AK',
|
|
1347
|
+
style='ROA',
|
|
1348
|
+
req_body_type='json',
|
|
1349
|
+
body_type='json'
|
|
1350
|
+
)
|
|
1351
|
+
return TeaCore.from_map(
|
|
1352
|
+
agent_run_20250910_models.ListAgentRuntimeEndpointsResponse(),
|
|
1353
|
+
await self.call_api_async(params, req, runtime)
|
|
1354
|
+
)
|
|
1355
|
+
|
|
1356
|
+
def list_agent_runtime_endpoints(
|
|
1357
|
+
self,
|
|
1358
|
+
agent_runtime_id: str,
|
|
1359
|
+
request: agent_run_20250910_models.ListAgentRuntimeEndpointsRequest,
|
|
1360
|
+
) -> agent_run_20250910_models.ListAgentRuntimeEndpointsResponse:
|
|
1361
|
+
"""
|
|
1362
|
+
@summary 列出智能体运行时端点
|
|
1363
|
+
|
|
1364
|
+
@description 获取指定智能体运行时的所有端点列表,支持按名称过滤和分页查询。端点用于外部系统访问智能体运行时服务。
|
|
1365
|
+
|
|
1366
|
+
@param request: ListAgentRuntimeEndpointsRequest
|
|
1367
|
+
@return: ListAgentRuntimeEndpointsResponse
|
|
1368
|
+
"""
|
|
1369
|
+
runtime = util_models.RuntimeOptions()
|
|
1370
|
+
headers = {}
|
|
1371
|
+
return self.list_agent_runtime_endpoints_with_options(agent_runtime_id, request, headers, runtime)
|
|
1372
|
+
|
|
1373
|
+
async def list_agent_runtime_endpoints_async(
|
|
1374
|
+
self,
|
|
1375
|
+
agent_runtime_id: str,
|
|
1376
|
+
request: agent_run_20250910_models.ListAgentRuntimeEndpointsRequest,
|
|
1377
|
+
) -> agent_run_20250910_models.ListAgentRuntimeEndpointsResponse:
|
|
1378
|
+
"""
|
|
1379
|
+
@summary 列出智能体运行时端点
|
|
1380
|
+
|
|
1381
|
+
@description 获取指定智能体运行时的所有端点列表,支持按名称过滤和分页查询。端点用于外部系统访问智能体运行时服务。
|
|
1382
|
+
|
|
1383
|
+
@param request: ListAgentRuntimeEndpointsRequest
|
|
1384
|
+
@return: ListAgentRuntimeEndpointsResponse
|
|
1385
|
+
"""
|
|
1386
|
+
runtime = util_models.RuntimeOptions()
|
|
1387
|
+
headers = {}
|
|
1388
|
+
return await self.list_agent_runtime_endpoints_with_options_async(agent_runtime_id, request, headers, runtime)
|
|
1389
|
+
|
|
1390
|
+
def list_agent_runtime_versions_with_options(
|
|
1391
|
+
self,
|
|
1392
|
+
agent_runtime_id: str,
|
|
1393
|
+
request: agent_run_20250910_models.ListAgentRuntimeVersionsRequest,
|
|
1394
|
+
headers: Dict[str, str],
|
|
1395
|
+
runtime: util_models.RuntimeOptions,
|
|
1396
|
+
) -> agent_run_20250910_models.ListAgentRuntimeVersionsResponse:
|
|
1397
|
+
"""
|
|
1398
|
+
@summary List agent runtime versions
|
|
1399
|
+
|
|
1400
|
+
@param request: ListAgentRuntimeVersionsRequest
|
|
1401
|
+
@param headers: map
|
|
1402
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1403
|
+
@return: ListAgentRuntimeVersionsResponse
|
|
1404
|
+
"""
|
|
1405
|
+
UtilClient.validate_model(request)
|
|
1406
|
+
query = {}
|
|
1407
|
+
if not UtilClient.is_unset(request.page_number):
|
|
1408
|
+
query['pageNumber'] = request.page_number
|
|
1409
|
+
if not UtilClient.is_unset(request.page_size):
|
|
1410
|
+
query['pageSize'] = request.page_size
|
|
1411
|
+
req = open_api_models.OpenApiRequest(
|
|
1412
|
+
headers=headers,
|
|
1413
|
+
query=OpenApiUtilClient.query(query)
|
|
1414
|
+
)
|
|
1415
|
+
params = open_api_models.Params(
|
|
1416
|
+
action='ListAgentRuntimeVersions',
|
|
1417
|
+
version='2025-09-10',
|
|
1418
|
+
protocol='HTTPS',
|
|
1419
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/versions',
|
|
1420
|
+
method='GET',
|
|
1421
|
+
auth_type='AK',
|
|
1422
|
+
style='ROA',
|
|
1423
|
+
req_body_type='json',
|
|
1424
|
+
body_type='json'
|
|
1425
|
+
)
|
|
1426
|
+
return TeaCore.from_map(
|
|
1427
|
+
agent_run_20250910_models.ListAgentRuntimeVersionsResponse(),
|
|
1428
|
+
self.call_api(params, req, runtime)
|
|
1429
|
+
)
|
|
1430
|
+
|
|
1431
|
+
async def list_agent_runtime_versions_with_options_async(
|
|
1432
|
+
self,
|
|
1433
|
+
agent_runtime_id: str,
|
|
1434
|
+
request: agent_run_20250910_models.ListAgentRuntimeVersionsRequest,
|
|
1435
|
+
headers: Dict[str, str],
|
|
1436
|
+
runtime: util_models.RuntimeOptions,
|
|
1437
|
+
) -> agent_run_20250910_models.ListAgentRuntimeVersionsResponse:
|
|
1438
|
+
"""
|
|
1439
|
+
@summary List agent runtime versions
|
|
1440
|
+
|
|
1441
|
+
@param request: ListAgentRuntimeVersionsRequest
|
|
1442
|
+
@param headers: map
|
|
1443
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1444
|
+
@return: ListAgentRuntimeVersionsResponse
|
|
1445
|
+
"""
|
|
1446
|
+
UtilClient.validate_model(request)
|
|
1447
|
+
query = {}
|
|
1448
|
+
if not UtilClient.is_unset(request.page_number):
|
|
1449
|
+
query['pageNumber'] = request.page_number
|
|
1450
|
+
if not UtilClient.is_unset(request.page_size):
|
|
1451
|
+
query['pageSize'] = request.page_size
|
|
1452
|
+
req = open_api_models.OpenApiRequest(
|
|
1453
|
+
headers=headers,
|
|
1454
|
+
query=OpenApiUtilClient.query(query)
|
|
1455
|
+
)
|
|
1456
|
+
params = open_api_models.Params(
|
|
1457
|
+
action='ListAgentRuntimeVersions',
|
|
1458
|
+
version='2025-09-10',
|
|
1459
|
+
protocol='HTTPS',
|
|
1460
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/versions',
|
|
1461
|
+
method='GET',
|
|
1462
|
+
auth_type='AK',
|
|
1463
|
+
style='ROA',
|
|
1464
|
+
req_body_type='json',
|
|
1465
|
+
body_type='json'
|
|
1466
|
+
)
|
|
1467
|
+
return TeaCore.from_map(
|
|
1468
|
+
agent_run_20250910_models.ListAgentRuntimeVersionsResponse(),
|
|
1469
|
+
await self.call_api_async(params, req, runtime)
|
|
1470
|
+
)
|
|
1471
|
+
|
|
1472
|
+
def list_agent_runtime_versions(
|
|
1473
|
+
self,
|
|
1474
|
+
agent_runtime_id: str,
|
|
1475
|
+
request: agent_run_20250910_models.ListAgentRuntimeVersionsRequest,
|
|
1476
|
+
) -> agent_run_20250910_models.ListAgentRuntimeVersionsResponse:
|
|
1477
|
+
"""
|
|
1478
|
+
@summary List agent runtime versions
|
|
1479
|
+
|
|
1480
|
+
@param request: ListAgentRuntimeVersionsRequest
|
|
1481
|
+
@return: ListAgentRuntimeVersionsResponse
|
|
1482
|
+
"""
|
|
1483
|
+
runtime = util_models.RuntimeOptions()
|
|
1484
|
+
headers = {}
|
|
1485
|
+
return self.list_agent_runtime_versions_with_options(agent_runtime_id, request, headers, runtime)
|
|
1486
|
+
|
|
1487
|
+
async def list_agent_runtime_versions_async(
|
|
1488
|
+
self,
|
|
1489
|
+
agent_runtime_id: str,
|
|
1490
|
+
request: agent_run_20250910_models.ListAgentRuntimeVersionsRequest,
|
|
1491
|
+
) -> agent_run_20250910_models.ListAgentRuntimeVersionsResponse:
|
|
1492
|
+
"""
|
|
1493
|
+
@summary List agent runtime versions
|
|
1494
|
+
|
|
1495
|
+
@param request: ListAgentRuntimeVersionsRequest
|
|
1496
|
+
@return: ListAgentRuntimeVersionsResponse
|
|
1497
|
+
"""
|
|
1498
|
+
runtime = util_models.RuntimeOptions()
|
|
1499
|
+
headers = {}
|
|
1500
|
+
return await self.list_agent_runtime_versions_with_options_async(agent_runtime_id, request, headers, runtime)
|
|
1501
|
+
|
|
1502
|
+
def list_agent_runtimes_with_options(
|
|
1503
|
+
self,
|
|
1504
|
+
request: agent_run_20250910_models.ListAgentRuntimesRequest,
|
|
1505
|
+
headers: Dict[str, str],
|
|
1506
|
+
runtime: util_models.RuntimeOptions,
|
|
1507
|
+
) -> agent_run_20250910_models.ListAgentRuntimesResponse:
|
|
1508
|
+
"""
|
|
1509
|
+
@summary 列出智能体运行时
|
|
1510
|
+
|
|
1511
|
+
@description 获取当前用户的所有智能体运行时列表,支持按名称、标签等条件过滤,支持分页查询。
|
|
1512
|
+
|
|
1513
|
+
@param request: ListAgentRuntimesRequest
|
|
1514
|
+
@param headers: map
|
|
1515
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1516
|
+
@return: ListAgentRuntimesResponse
|
|
1517
|
+
"""
|
|
1518
|
+
UtilClient.validate_model(request)
|
|
1519
|
+
query = {}
|
|
1520
|
+
if not UtilClient.is_unset(request.agent_runtime_name):
|
|
1521
|
+
query['agentRuntimeName'] = request.agent_runtime_name
|
|
1522
|
+
if not UtilClient.is_unset(request.page_number):
|
|
1523
|
+
query['pageNumber'] = request.page_number
|
|
1524
|
+
if not UtilClient.is_unset(request.page_size):
|
|
1525
|
+
query['pageSize'] = request.page_size
|
|
1526
|
+
req = open_api_models.OpenApiRequest(
|
|
1527
|
+
headers=headers,
|
|
1528
|
+
query=OpenApiUtilClient.query(query)
|
|
1529
|
+
)
|
|
1530
|
+
params = open_api_models.Params(
|
|
1531
|
+
action='ListAgentRuntimes',
|
|
1532
|
+
version='2025-09-10',
|
|
1533
|
+
protocol='HTTPS',
|
|
1534
|
+
pathname=f'/2025-09-10/agents/runtimes',
|
|
1535
|
+
method='GET',
|
|
1536
|
+
auth_type='AK',
|
|
1537
|
+
style='ROA',
|
|
1538
|
+
req_body_type='json',
|
|
1539
|
+
body_type='json'
|
|
1540
|
+
)
|
|
1541
|
+
return TeaCore.from_map(
|
|
1542
|
+
agent_run_20250910_models.ListAgentRuntimesResponse(),
|
|
1543
|
+
self.call_api(params, req, runtime)
|
|
1544
|
+
)
|
|
1545
|
+
|
|
1546
|
+
async def list_agent_runtimes_with_options_async(
|
|
1547
|
+
self,
|
|
1548
|
+
request: agent_run_20250910_models.ListAgentRuntimesRequest,
|
|
1549
|
+
headers: Dict[str, str],
|
|
1550
|
+
runtime: util_models.RuntimeOptions,
|
|
1551
|
+
) -> agent_run_20250910_models.ListAgentRuntimesResponse:
|
|
1552
|
+
"""
|
|
1553
|
+
@summary 列出智能体运行时
|
|
1554
|
+
|
|
1555
|
+
@description 获取当前用户的所有智能体运行时列表,支持按名称、标签等条件过滤,支持分页查询。
|
|
1556
|
+
|
|
1557
|
+
@param request: ListAgentRuntimesRequest
|
|
1558
|
+
@param headers: map
|
|
1559
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1560
|
+
@return: ListAgentRuntimesResponse
|
|
1561
|
+
"""
|
|
1562
|
+
UtilClient.validate_model(request)
|
|
1563
|
+
query = {}
|
|
1564
|
+
if not UtilClient.is_unset(request.agent_runtime_name):
|
|
1565
|
+
query['agentRuntimeName'] = request.agent_runtime_name
|
|
1566
|
+
if not UtilClient.is_unset(request.page_number):
|
|
1567
|
+
query['pageNumber'] = request.page_number
|
|
1568
|
+
if not UtilClient.is_unset(request.page_size):
|
|
1569
|
+
query['pageSize'] = request.page_size
|
|
1570
|
+
req = open_api_models.OpenApiRequest(
|
|
1571
|
+
headers=headers,
|
|
1572
|
+
query=OpenApiUtilClient.query(query)
|
|
1573
|
+
)
|
|
1574
|
+
params = open_api_models.Params(
|
|
1575
|
+
action='ListAgentRuntimes',
|
|
1576
|
+
version='2025-09-10',
|
|
1577
|
+
protocol='HTTPS',
|
|
1578
|
+
pathname=f'/2025-09-10/agents/runtimes',
|
|
1579
|
+
method='GET',
|
|
1580
|
+
auth_type='AK',
|
|
1581
|
+
style='ROA',
|
|
1582
|
+
req_body_type='json',
|
|
1583
|
+
body_type='json'
|
|
1584
|
+
)
|
|
1585
|
+
return TeaCore.from_map(
|
|
1586
|
+
agent_run_20250910_models.ListAgentRuntimesResponse(),
|
|
1587
|
+
await self.call_api_async(params, req, runtime)
|
|
1588
|
+
)
|
|
1589
|
+
|
|
1590
|
+
def list_agent_runtimes(
|
|
1591
|
+
self,
|
|
1592
|
+
request: agent_run_20250910_models.ListAgentRuntimesRequest,
|
|
1593
|
+
) -> agent_run_20250910_models.ListAgentRuntimesResponse:
|
|
1594
|
+
"""
|
|
1595
|
+
@summary 列出智能体运行时
|
|
1596
|
+
|
|
1597
|
+
@description 获取当前用户的所有智能体运行时列表,支持按名称、标签等条件过滤,支持分页查询。
|
|
1598
|
+
|
|
1599
|
+
@param request: ListAgentRuntimesRequest
|
|
1600
|
+
@return: ListAgentRuntimesResponse
|
|
1601
|
+
"""
|
|
1602
|
+
runtime = util_models.RuntimeOptions()
|
|
1603
|
+
headers = {}
|
|
1604
|
+
return self.list_agent_runtimes_with_options(request, headers, runtime)
|
|
1605
|
+
|
|
1606
|
+
async def list_agent_runtimes_async(
|
|
1607
|
+
self,
|
|
1608
|
+
request: agent_run_20250910_models.ListAgentRuntimesRequest,
|
|
1609
|
+
) -> agent_run_20250910_models.ListAgentRuntimesResponse:
|
|
1610
|
+
"""
|
|
1611
|
+
@summary 列出智能体运行时
|
|
1612
|
+
|
|
1613
|
+
@description 获取当前用户的所有智能体运行时列表,支持按名称、标签等条件过滤,支持分页查询。
|
|
1614
|
+
|
|
1615
|
+
@param request: ListAgentRuntimesRequest
|
|
1616
|
+
@return: ListAgentRuntimesResponse
|
|
1617
|
+
"""
|
|
1618
|
+
runtime = util_models.RuntimeOptions()
|
|
1619
|
+
headers = {}
|
|
1620
|
+
return await self.list_agent_runtimes_with_options_async(request, headers, runtime)
|
|
1621
|
+
|
|
1622
|
+
def list_browsers_with_options(
|
|
1623
|
+
self,
|
|
1624
|
+
request: agent_run_20250910_models.ListBrowsersRequest,
|
|
1625
|
+
headers: Dict[str, str],
|
|
1626
|
+
runtime: util_models.RuntimeOptions,
|
|
1627
|
+
) -> agent_run_20250910_models.ListBrowsersResponse:
|
|
1628
|
+
"""
|
|
1629
|
+
@summary 列出浏览器实例
|
|
1630
|
+
|
|
1631
|
+
@description 获取当前用户的所有浏览器实例列表,支持按名称、状态等条件过滤,支持分页查询。
|
|
1632
|
+
|
|
1633
|
+
@param request: ListBrowsersRequest
|
|
1634
|
+
@param headers: map
|
|
1635
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1636
|
+
@return: ListBrowsersResponse
|
|
1637
|
+
"""
|
|
1638
|
+
UtilClient.validate_model(request)
|
|
1639
|
+
query = {}
|
|
1640
|
+
if not UtilClient.is_unset(request.browser_name):
|
|
1641
|
+
query['browserName'] = request.browser_name
|
|
1642
|
+
if not UtilClient.is_unset(request.page_number):
|
|
1643
|
+
query['pageNumber'] = request.page_number
|
|
1644
|
+
if not UtilClient.is_unset(request.page_size):
|
|
1645
|
+
query['pageSize'] = request.page_size
|
|
1646
|
+
if not UtilClient.is_unset(request.status):
|
|
1647
|
+
query['status'] = request.status
|
|
1648
|
+
req = open_api_models.OpenApiRequest(
|
|
1649
|
+
headers=headers,
|
|
1650
|
+
query=OpenApiUtilClient.query(query)
|
|
1651
|
+
)
|
|
1652
|
+
params = open_api_models.Params(
|
|
1653
|
+
action='ListBrowsers',
|
|
1654
|
+
version='2025-09-10',
|
|
1655
|
+
protocol='HTTPS',
|
|
1656
|
+
pathname=f'/2025-09-10/agents/browsers',
|
|
1657
|
+
method='GET',
|
|
1658
|
+
auth_type='AK',
|
|
1659
|
+
style='ROA',
|
|
1660
|
+
req_body_type='json',
|
|
1661
|
+
body_type='json'
|
|
1662
|
+
)
|
|
1663
|
+
return TeaCore.from_map(
|
|
1664
|
+
agent_run_20250910_models.ListBrowsersResponse(),
|
|
1665
|
+
self.call_api(params, req, runtime)
|
|
1666
|
+
)
|
|
1667
|
+
|
|
1668
|
+
async def list_browsers_with_options_async(
|
|
1669
|
+
self,
|
|
1670
|
+
request: agent_run_20250910_models.ListBrowsersRequest,
|
|
1671
|
+
headers: Dict[str, str],
|
|
1672
|
+
runtime: util_models.RuntimeOptions,
|
|
1673
|
+
) -> agent_run_20250910_models.ListBrowsersResponse:
|
|
1674
|
+
"""
|
|
1675
|
+
@summary 列出浏览器实例
|
|
1676
|
+
|
|
1677
|
+
@description 获取当前用户的所有浏览器实例列表,支持按名称、状态等条件过滤,支持分页查询。
|
|
1678
|
+
|
|
1679
|
+
@param request: ListBrowsersRequest
|
|
1680
|
+
@param headers: map
|
|
1681
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1682
|
+
@return: ListBrowsersResponse
|
|
1683
|
+
"""
|
|
1684
|
+
UtilClient.validate_model(request)
|
|
1685
|
+
query = {}
|
|
1686
|
+
if not UtilClient.is_unset(request.browser_name):
|
|
1687
|
+
query['browserName'] = request.browser_name
|
|
1688
|
+
if not UtilClient.is_unset(request.page_number):
|
|
1689
|
+
query['pageNumber'] = request.page_number
|
|
1690
|
+
if not UtilClient.is_unset(request.page_size):
|
|
1691
|
+
query['pageSize'] = request.page_size
|
|
1692
|
+
if not UtilClient.is_unset(request.status):
|
|
1693
|
+
query['status'] = request.status
|
|
1694
|
+
req = open_api_models.OpenApiRequest(
|
|
1695
|
+
headers=headers,
|
|
1696
|
+
query=OpenApiUtilClient.query(query)
|
|
1697
|
+
)
|
|
1698
|
+
params = open_api_models.Params(
|
|
1699
|
+
action='ListBrowsers',
|
|
1700
|
+
version='2025-09-10',
|
|
1701
|
+
protocol='HTTPS',
|
|
1702
|
+
pathname=f'/2025-09-10/agents/browsers',
|
|
1703
|
+
method='GET',
|
|
1704
|
+
auth_type='AK',
|
|
1705
|
+
style='ROA',
|
|
1706
|
+
req_body_type='json',
|
|
1707
|
+
body_type='json'
|
|
1708
|
+
)
|
|
1709
|
+
return TeaCore.from_map(
|
|
1710
|
+
agent_run_20250910_models.ListBrowsersResponse(),
|
|
1711
|
+
await self.call_api_async(params, req, runtime)
|
|
1712
|
+
)
|
|
1713
|
+
|
|
1714
|
+
def list_browsers(
|
|
1715
|
+
self,
|
|
1716
|
+
request: agent_run_20250910_models.ListBrowsersRequest,
|
|
1717
|
+
) -> agent_run_20250910_models.ListBrowsersResponse:
|
|
1718
|
+
"""
|
|
1719
|
+
@summary 列出浏览器实例
|
|
1720
|
+
|
|
1721
|
+
@description 获取当前用户的所有浏览器实例列表,支持按名称、状态等条件过滤,支持分页查询。
|
|
1722
|
+
|
|
1723
|
+
@param request: ListBrowsersRequest
|
|
1724
|
+
@return: ListBrowsersResponse
|
|
1725
|
+
"""
|
|
1726
|
+
runtime = util_models.RuntimeOptions()
|
|
1727
|
+
headers = {}
|
|
1728
|
+
return self.list_browsers_with_options(request, headers, runtime)
|
|
1729
|
+
|
|
1730
|
+
async def list_browsers_async(
|
|
1731
|
+
self,
|
|
1732
|
+
request: agent_run_20250910_models.ListBrowsersRequest,
|
|
1733
|
+
) -> agent_run_20250910_models.ListBrowsersResponse:
|
|
1734
|
+
"""
|
|
1735
|
+
@summary 列出浏览器实例
|
|
1736
|
+
|
|
1737
|
+
@description 获取当前用户的所有浏览器实例列表,支持按名称、状态等条件过滤,支持分页查询。
|
|
1738
|
+
|
|
1739
|
+
@param request: ListBrowsersRequest
|
|
1740
|
+
@return: ListBrowsersResponse
|
|
1741
|
+
"""
|
|
1742
|
+
runtime = util_models.RuntimeOptions()
|
|
1743
|
+
headers = {}
|
|
1744
|
+
return await self.list_browsers_with_options_async(request, headers, runtime)
|
|
1745
|
+
|
|
1746
|
+
def list_code_interpreters_with_options(
|
|
1747
|
+
self,
|
|
1748
|
+
request: agent_run_20250910_models.ListCodeInterpretersRequest,
|
|
1749
|
+
headers: Dict[str, str],
|
|
1750
|
+
runtime: util_models.RuntimeOptions,
|
|
1751
|
+
) -> agent_run_20250910_models.ListCodeInterpretersResponse:
|
|
1752
|
+
"""
|
|
1753
|
+
@summary 列出代码解释器
|
|
1754
|
+
|
|
1755
|
+
@description 获取当前用户的所有代码解释器实例列表,支持按名称等条件过滤,支持分页查询。
|
|
1756
|
+
|
|
1757
|
+
@param request: ListCodeInterpretersRequest
|
|
1758
|
+
@param headers: map
|
|
1759
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1760
|
+
@return: ListCodeInterpretersResponse
|
|
1761
|
+
"""
|
|
1762
|
+
UtilClient.validate_model(request)
|
|
1763
|
+
query = {}
|
|
1764
|
+
if not UtilClient.is_unset(request.code_interpreter_name):
|
|
1765
|
+
query['codeInterpreterName'] = request.code_interpreter_name
|
|
1766
|
+
if not UtilClient.is_unset(request.page_number):
|
|
1767
|
+
query['pageNumber'] = request.page_number
|
|
1768
|
+
if not UtilClient.is_unset(request.page_size):
|
|
1769
|
+
query['pageSize'] = request.page_size
|
|
1770
|
+
req = open_api_models.OpenApiRequest(
|
|
1771
|
+
headers=headers,
|
|
1772
|
+
query=OpenApiUtilClient.query(query)
|
|
1773
|
+
)
|
|
1774
|
+
params = open_api_models.Params(
|
|
1775
|
+
action='ListCodeInterpreters',
|
|
1776
|
+
version='2025-09-10',
|
|
1777
|
+
protocol='HTTPS',
|
|
1778
|
+
pathname=f'/2025-09-10/agents/code-interpreters',
|
|
1779
|
+
method='GET',
|
|
1780
|
+
auth_type='AK',
|
|
1781
|
+
style='ROA',
|
|
1782
|
+
req_body_type='json',
|
|
1783
|
+
body_type='json'
|
|
1784
|
+
)
|
|
1785
|
+
return TeaCore.from_map(
|
|
1786
|
+
agent_run_20250910_models.ListCodeInterpretersResponse(),
|
|
1787
|
+
self.call_api(params, req, runtime)
|
|
1788
|
+
)
|
|
1789
|
+
|
|
1790
|
+
async def list_code_interpreters_with_options_async(
|
|
1791
|
+
self,
|
|
1792
|
+
request: agent_run_20250910_models.ListCodeInterpretersRequest,
|
|
1793
|
+
headers: Dict[str, str],
|
|
1794
|
+
runtime: util_models.RuntimeOptions,
|
|
1795
|
+
) -> agent_run_20250910_models.ListCodeInterpretersResponse:
|
|
1796
|
+
"""
|
|
1797
|
+
@summary 列出代码解释器
|
|
1798
|
+
|
|
1799
|
+
@description 获取当前用户的所有代码解释器实例列表,支持按名称等条件过滤,支持分页查询。
|
|
1800
|
+
|
|
1801
|
+
@param request: ListCodeInterpretersRequest
|
|
1802
|
+
@param headers: map
|
|
1803
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1804
|
+
@return: ListCodeInterpretersResponse
|
|
1805
|
+
"""
|
|
1806
|
+
UtilClient.validate_model(request)
|
|
1807
|
+
query = {}
|
|
1808
|
+
if not UtilClient.is_unset(request.code_interpreter_name):
|
|
1809
|
+
query['codeInterpreterName'] = request.code_interpreter_name
|
|
1810
|
+
if not UtilClient.is_unset(request.page_number):
|
|
1811
|
+
query['pageNumber'] = request.page_number
|
|
1812
|
+
if not UtilClient.is_unset(request.page_size):
|
|
1813
|
+
query['pageSize'] = request.page_size
|
|
1814
|
+
req = open_api_models.OpenApiRequest(
|
|
1815
|
+
headers=headers,
|
|
1816
|
+
query=OpenApiUtilClient.query(query)
|
|
1817
|
+
)
|
|
1818
|
+
params = open_api_models.Params(
|
|
1819
|
+
action='ListCodeInterpreters',
|
|
1820
|
+
version='2025-09-10',
|
|
1821
|
+
protocol='HTTPS',
|
|
1822
|
+
pathname=f'/2025-09-10/agents/code-interpreters',
|
|
1823
|
+
method='GET',
|
|
1824
|
+
auth_type='AK',
|
|
1825
|
+
style='ROA',
|
|
1826
|
+
req_body_type='json',
|
|
1827
|
+
body_type='json'
|
|
1828
|
+
)
|
|
1829
|
+
return TeaCore.from_map(
|
|
1830
|
+
agent_run_20250910_models.ListCodeInterpretersResponse(),
|
|
1831
|
+
await self.call_api_async(params, req, runtime)
|
|
1832
|
+
)
|
|
1833
|
+
|
|
1834
|
+
def list_code_interpreters(
|
|
1835
|
+
self,
|
|
1836
|
+
request: agent_run_20250910_models.ListCodeInterpretersRequest,
|
|
1837
|
+
) -> agent_run_20250910_models.ListCodeInterpretersResponse:
|
|
1838
|
+
"""
|
|
1839
|
+
@summary 列出代码解释器
|
|
1840
|
+
|
|
1841
|
+
@description 获取当前用户的所有代码解释器实例列表,支持按名称等条件过滤,支持分页查询。
|
|
1842
|
+
|
|
1843
|
+
@param request: ListCodeInterpretersRequest
|
|
1844
|
+
@return: ListCodeInterpretersResponse
|
|
1845
|
+
"""
|
|
1846
|
+
runtime = util_models.RuntimeOptions()
|
|
1847
|
+
headers = {}
|
|
1848
|
+
return self.list_code_interpreters_with_options(request, headers, runtime)
|
|
1849
|
+
|
|
1850
|
+
async def list_code_interpreters_async(
|
|
1851
|
+
self,
|
|
1852
|
+
request: agent_run_20250910_models.ListCodeInterpretersRequest,
|
|
1853
|
+
) -> agent_run_20250910_models.ListCodeInterpretersResponse:
|
|
1854
|
+
"""
|
|
1855
|
+
@summary 列出代码解释器
|
|
1856
|
+
|
|
1857
|
+
@description 获取当前用户的所有代码解释器实例列表,支持按名称等条件过滤,支持分页查询。
|
|
1858
|
+
|
|
1859
|
+
@param request: ListCodeInterpretersRequest
|
|
1860
|
+
@return: ListCodeInterpretersResponse
|
|
1861
|
+
"""
|
|
1862
|
+
runtime = util_models.RuntimeOptions()
|
|
1863
|
+
headers = {}
|
|
1864
|
+
return await self.list_code_interpreters_with_options_async(request, headers, runtime)
|
|
1865
|
+
|
|
1866
|
+
def publish_runtime_version_with_options(
|
|
1867
|
+
self,
|
|
1868
|
+
agent_runtime_id: str,
|
|
1869
|
+
request: agent_run_20250910_models.PublishRuntimeVersionRequest,
|
|
1870
|
+
headers: Dict[str, str],
|
|
1871
|
+
runtime: util_models.RuntimeOptions,
|
|
1872
|
+
) -> agent_run_20250910_models.PublishRuntimeVersionResponse:
|
|
1873
|
+
"""
|
|
1874
|
+
@summary 发布运行时版本
|
|
1875
|
+
|
|
1876
|
+
@description 为指定的智能体运行时发布新版本,用于版本管理和部署。新版本可以包含代码更新、配置变更等内容。
|
|
1877
|
+
|
|
1878
|
+
@param request: PublishRuntimeVersionRequest
|
|
1879
|
+
@param headers: map
|
|
1880
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1881
|
+
@return: PublishRuntimeVersionResponse
|
|
1882
|
+
"""
|
|
1883
|
+
UtilClient.validate_model(request)
|
|
1884
|
+
req = open_api_models.OpenApiRequest(
|
|
1885
|
+
headers=headers,
|
|
1886
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
1887
|
+
)
|
|
1888
|
+
params = open_api_models.Params(
|
|
1889
|
+
action='PublishRuntimeVersion',
|
|
1890
|
+
version='2025-09-10',
|
|
1891
|
+
protocol='HTTPS',
|
|
1892
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/versions',
|
|
1893
|
+
method='POST',
|
|
1894
|
+
auth_type='AK',
|
|
1895
|
+
style='ROA',
|
|
1896
|
+
req_body_type='json',
|
|
1897
|
+
body_type='json'
|
|
1898
|
+
)
|
|
1899
|
+
return TeaCore.from_map(
|
|
1900
|
+
agent_run_20250910_models.PublishRuntimeVersionResponse(),
|
|
1901
|
+
self.call_api(params, req, runtime)
|
|
1902
|
+
)
|
|
1903
|
+
|
|
1904
|
+
async def publish_runtime_version_with_options_async(
|
|
1905
|
+
self,
|
|
1906
|
+
agent_runtime_id: str,
|
|
1907
|
+
request: agent_run_20250910_models.PublishRuntimeVersionRequest,
|
|
1908
|
+
headers: Dict[str, str],
|
|
1909
|
+
runtime: util_models.RuntimeOptions,
|
|
1910
|
+
) -> agent_run_20250910_models.PublishRuntimeVersionResponse:
|
|
1911
|
+
"""
|
|
1912
|
+
@summary 发布运行时版本
|
|
1913
|
+
|
|
1914
|
+
@description 为指定的智能体运行时发布新版本,用于版本管理和部署。新版本可以包含代码更新、配置变更等内容。
|
|
1915
|
+
|
|
1916
|
+
@param request: PublishRuntimeVersionRequest
|
|
1917
|
+
@param headers: map
|
|
1918
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1919
|
+
@return: PublishRuntimeVersionResponse
|
|
1920
|
+
"""
|
|
1921
|
+
UtilClient.validate_model(request)
|
|
1922
|
+
req = open_api_models.OpenApiRequest(
|
|
1923
|
+
headers=headers,
|
|
1924
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
1925
|
+
)
|
|
1926
|
+
params = open_api_models.Params(
|
|
1927
|
+
action='PublishRuntimeVersion',
|
|
1928
|
+
version='2025-09-10',
|
|
1929
|
+
protocol='HTTPS',
|
|
1930
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/versions',
|
|
1931
|
+
method='POST',
|
|
1932
|
+
auth_type='AK',
|
|
1933
|
+
style='ROA',
|
|
1934
|
+
req_body_type='json',
|
|
1935
|
+
body_type='json'
|
|
1936
|
+
)
|
|
1937
|
+
return TeaCore.from_map(
|
|
1938
|
+
agent_run_20250910_models.PublishRuntimeVersionResponse(),
|
|
1939
|
+
await self.call_api_async(params, req, runtime)
|
|
1940
|
+
)
|
|
1941
|
+
|
|
1942
|
+
def publish_runtime_version(
|
|
1943
|
+
self,
|
|
1944
|
+
agent_runtime_id: str,
|
|
1945
|
+
request: agent_run_20250910_models.PublishRuntimeVersionRequest,
|
|
1946
|
+
) -> agent_run_20250910_models.PublishRuntimeVersionResponse:
|
|
1947
|
+
"""
|
|
1948
|
+
@summary 发布运行时版本
|
|
1949
|
+
|
|
1950
|
+
@description 为指定的智能体运行时发布新版本,用于版本管理和部署。新版本可以包含代码更新、配置变更等内容。
|
|
1951
|
+
|
|
1952
|
+
@param request: PublishRuntimeVersionRequest
|
|
1953
|
+
@return: PublishRuntimeVersionResponse
|
|
1954
|
+
"""
|
|
1955
|
+
runtime = util_models.RuntimeOptions()
|
|
1956
|
+
headers = {}
|
|
1957
|
+
return self.publish_runtime_version_with_options(agent_runtime_id, request, headers, runtime)
|
|
1958
|
+
|
|
1959
|
+
async def publish_runtime_version_async(
|
|
1960
|
+
self,
|
|
1961
|
+
agent_runtime_id: str,
|
|
1962
|
+
request: agent_run_20250910_models.PublishRuntimeVersionRequest,
|
|
1963
|
+
) -> agent_run_20250910_models.PublishRuntimeVersionResponse:
|
|
1964
|
+
"""
|
|
1965
|
+
@summary 发布运行时版本
|
|
1966
|
+
|
|
1967
|
+
@description 为指定的智能体运行时发布新版本,用于版本管理和部署。新版本可以包含代码更新、配置变更等内容。
|
|
1968
|
+
|
|
1969
|
+
@param request: PublishRuntimeVersionRequest
|
|
1970
|
+
@return: PublishRuntimeVersionResponse
|
|
1971
|
+
"""
|
|
1972
|
+
runtime = util_models.RuntimeOptions()
|
|
1973
|
+
headers = {}
|
|
1974
|
+
return await self.publish_runtime_version_with_options_async(agent_runtime_id, request, headers, runtime)
|
|
1975
|
+
|
|
1976
|
+
def update_agent_runtime_with_options(
|
|
1977
|
+
self,
|
|
1978
|
+
agent_runtime_id: str,
|
|
1979
|
+
request: agent_run_20250910_models.UpdateAgentRuntimeRequest,
|
|
1980
|
+
headers: Dict[str, str],
|
|
1981
|
+
runtime: util_models.RuntimeOptions,
|
|
1982
|
+
) -> agent_run_20250910_models.UpdateAgentRuntimeResponse:
|
|
1983
|
+
"""
|
|
1984
|
+
@summary 更新智能体运行时
|
|
1985
|
+
|
|
1986
|
+
@description 更新指定智能体运行时的配置信息,包括资源分配、网络配置、环境变量等。更新操作会触发运行时重启。
|
|
1987
|
+
|
|
1988
|
+
@param request: UpdateAgentRuntimeRequest
|
|
1989
|
+
@param headers: map
|
|
1990
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1991
|
+
@return: UpdateAgentRuntimeResponse
|
|
1992
|
+
"""
|
|
1993
|
+
UtilClient.validate_model(request)
|
|
1994
|
+
req = open_api_models.OpenApiRequest(
|
|
1995
|
+
headers=headers,
|
|
1996
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
1997
|
+
)
|
|
1998
|
+
params = open_api_models.Params(
|
|
1999
|
+
action='UpdateAgentRuntime',
|
|
2000
|
+
version='2025-09-10',
|
|
2001
|
+
protocol='HTTPS',
|
|
2002
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}',
|
|
2003
|
+
method='PUT',
|
|
2004
|
+
auth_type='AK',
|
|
2005
|
+
style='ROA',
|
|
2006
|
+
req_body_type='json',
|
|
2007
|
+
body_type='json'
|
|
2008
|
+
)
|
|
2009
|
+
return TeaCore.from_map(
|
|
2010
|
+
agent_run_20250910_models.UpdateAgentRuntimeResponse(),
|
|
2011
|
+
self.call_api(params, req, runtime)
|
|
2012
|
+
)
|
|
2013
|
+
|
|
2014
|
+
async def update_agent_runtime_with_options_async(
|
|
2015
|
+
self,
|
|
2016
|
+
agent_runtime_id: str,
|
|
2017
|
+
request: agent_run_20250910_models.UpdateAgentRuntimeRequest,
|
|
2018
|
+
headers: Dict[str, str],
|
|
2019
|
+
runtime: util_models.RuntimeOptions,
|
|
2020
|
+
) -> agent_run_20250910_models.UpdateAgentRuntimeResponse:
|
|
2021
|
+
"""
|
|
2022
|
+
@summary 更新智能体运行时
|
|
2023
|
+
|
|
2024
|
+
@description 更新指定智能体运行时的配置信息,包括资源分配、网络配置、环境变量等。更新操作会触发运行时重启。
|
|
2025
|
+
|
|
2026
|
+
@param request: UpdateAgentRuntimeRequest
|
|
2027
|
+
@param headers: map
|
|
2028
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2029
|
+
@return: UpdateAgentRuntimeResponse
|
|
2030
|
+
"""
|
|
2031
|
+
UtilClient.validate_model(request)
|
|
2032
|
+
req = open_api_models.OpenApiRequest(
|
|
2033
|
+
headers=headers,
|
|
2034
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
2035
|
+
)
|
|
2036
|
+
params = open_api_models.Params(
|
|
2037
|
+
action='UpdateAgentRuntime',
|
|
2038
|
+
version='2025-09-10',
|
|
2039
|
+
protocol='HTTPS',
|
|
2040
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}',
|
|
2041
|
+
method='PUT',
|
|
2042
|
+
auth_type='AK',
|
|
2043
|
+
style='ROA',
|
|
2044
|
+
req_body_type='json',
|
|
2045
|
+
body_type='json'
|
|
2046
|
+
)
|
|
2047
|
+
return TeaCore.from_map(
|
|
2048
|
+
agent_run_20250910_models.UpdateAgentRuntimeResponse(),
|
|
2049
|
+
await self.call_api_async(params, req, runtime)
|
|
2050
|
+
)
|
|
2051
|
+
|
|
2052
|
+
def update_agent_runtime(
|
|
2053
|
+
self,
|
|
2054
|
+
agent_runtime_id: str,
|
|
2055
|
+
request: agent_run_20250910_models.UpdateAgentRuntimeRequest,
|
|
2056
|
+
) -> agent_run_20250910_models.UpdateAgentRuntimeResponse:
|
|
2057
|
+
"""
|
|
2058
|
+
@summary 更新智能体运行时
|
|
2059
|
+
|
|
2060
|
+
@description 更新指定智能体运行时的配置信息,包括资源分配、网络配置、环境变量等。更新操作会触发运行时重启。
|
|
2061
|
+
|
|
2062
|
+
@param request: UpdateAgentRuntimeRequest
|
|
2063
|
+
@return: UpdateAgentRuntimeResponse
|
|
2064
|
+
"""
|
|
2065
|
+
runtime = util_models.RuntimeOptions()
|
|
2066
|
+
headers = {}
|
|
2067
|
+
return self.update_agent_runtime_with_options(agent_runtime_id, request, headers, runtime)
|
|
2068
|
+
|
|
2069
|
+
async def update_agent_runtime_async(
|
|
2070
|
+
self,
|
|
2071
|
+
agent_runtime_id: str,
|
|
2072
|
+
request: agent_run_20250910_models.UpdateAgentRuntimeRequest,
|
|
2073
|
+
) -> agent_run_20250910_models.UpdateAgentRuntimeResponse:
|
|
2074
|
+
"""
|
|
2075
|
+
@summary 更新智能体运行时
|
|
2076
|
+
|
|
2077
|
+
@description 更新指定智能体运行时的配置信息,包括资源分配、网络配置、环境变量等。更新操作会触发运行时重启。
|
|
2078
|
+
|
|
2079
|
+
@param request: UpdateAgentRuntimeRequest
|
|
2080
|
+
@return: UpdateAgentRuntimeResponse
|
|
2081
|
+
"""
|
|
2082
|
+
runtime = util_models.RuntimeOptions()
|
|
2083
|
+
headers = {}
|
|
2084
|
+
return await self.update_agent_runtime_with_options_async(agent_runtime_id, request, headers, runtime)
|
|
2085
|
+
|
|
2086
|
+
def update_agent_runtime_endpoint_with_options(
|
|
2087
|
+
self,
|
|
2088
|
+
agent_runtime_id: str,
|
|
2089
|
+
agent_runtime_endpoint_id: str,
|
|
2090
|
+
request: agent_run_20250910_models.UpdateAgentRuntimeEndpointRequest,
|
|
2091
|
+
headers: Dict[str, str],
|
|
2092
|
+
runtime: util_models.RuntimeOptions,
|
|
2093
|
+
) -> agent_run_20250910_models.UpdateAgentRuntimeEndpointResponse:
|
|
2094
|
+
"""
|
|
2095
|
+
@summary Update an agent runtime endpoint
|
|
2096
|
+
|
|
2097
|
+
@param request: UpdateAgentRuntimeEndpointRequest
|
|
2098
|
+
@param headers: map
|
|
2099
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2100
|
+
@return: UpdateAgentRuntimeEndpointResponse
|
|
2101
|
+
"""
|
|
2102
|
+
UtilClient.validate_model(request)
|
|
2103
|
+
req = open_api_models.OpenApiRequest(
|
|
2104
|
+
headers=headers,
|
|
2105
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
2106
|
+
)
|
|
2107
|
+
params = open_api_models.Params(
|
|
2108
|
+
action='UpdateAgentRuntimeEndpoint',
|
|
2109
|
+
version='2025-09-10',
|
|
2110
|
+
protocol='HTTPS',
|
|
2111
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/endpoints/{OpenApiUtilClient.get_encode_param(agent_runtime_endpoint_id)}',
|
|
2112
|
+
method='PUT',
|
|
2113
|
+
auth_type='AK',
|
|
2114
|
+
style='ROA',
|
|
2115
|
+
req_body_type='json',
|
|
2116
|
+
body_type='json'
|
|
2117
|
+
)
|
|
2118
|
+
return TeaCore.from_map(
|
|
2119
|
+
agent_run_20250910_models.UpdateAgentRuntimeEndpointResponse(),
|
|
2120
|
+
self.call_api(params, req, runtime)
|
|
2121
|
+
)
|
|
2122
|
+
|
|
2123
|
+
async def update_agent_runtime_endpoint_with_options_async(
|
|
2124
|
+
self,
|
|
2125
|
+
agent_runtime_id: str,
|
|
2126
|
+
agent_runtime_endpoint_id: str,
|
|
2127
|
+
request: agent_run_20250910_models.UpdateAgentRuntimeEndpointRequest,
|
|
2128
|
+
headers: Dict[str, str],
|
|
2129
|
+
runtime: util_models.RuntimeOptions,
|
|
2130
|
+
) -> agent_run_20250910_models.UpdateAgentRuntimeEndpointResponse:
|
|
2131
|
+
"""
|
|
2132
|
+
@summary Update an agent runtime endpoint
|
|
2133
|
+
|
|
2134
|
+
@param request: UpdateAgentRuntimeEndpointRequest
|
|
2135
|
+
@param headers: map
|
|
2136
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2137
|
+
@return: UpdateAgentRuntimeEndpointResponse
|
|
2138
|
+
"""
|
|
2139
|
+
UtilClient.validate_model(request)
|
|
2140
|
+
req = open_api_models.OpenApiRequest(
|
|
2141
|
+
headers=headers,
|
|
2142
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
|
2143
|
+
)
|
|
2144
|
+
params = open_api_models.Params(
|
|
2145
|
+
action='UpdateAgentRuntimeEndpoint',
|
|
2146
|
+
version='2025-09-10',
|
|
2147
|
+
protocol='HTTPS',
|
|
2148
|
+
pathname=f'/2025-09-10/agents/runtimes/{OpenApiUtilClient.get_encode_param(agent_runtime_id)}/endpoints/{OpenApiUtilClient.get_encode_param(agent_runtime_endpoint_id)}',
|
|
2149
|
+
method='PUT',
|
|
2150
|
+
auth_type='AK',
|
|
2151
|
+
style='ROA',
|
|
2152
|
+
req_body_type='json',
|
|
2153
|
+
body_type='json'
|
|
2154
|
+
)
|
|
2155
|
+
return TeaCore.from_map(
|
|
2156
|
+
agent_run_20250910_models.UpdateAgentRuntimeEndpointResponse(),
|
|
2157
|
+
await self.call_api_async(params, req, runtime)
|
|
2158
|
+
)
|
|
2159
|
+
|
|
2160
|
+
def update_agent_runtime_endpoint(
|
|
2161
|
+
self,
|
|
2162
|
+
agent_runtime_id: str,
|
|
2163
|
+
agent_runtime_endpoint_id: str,
|
|
2164
|
+
request: agent_run_20250910_models.UpdateAgentRuntimeEndpointRequest,
|
|
2165
|
+
) -> agent_run_20250910_models.UpdateAgentRuntimeEndpointResponse:
|
|
2166
|
+
"""
|
|
2167
|
+
@summary Update an agent runtime endpoint
|
|
2168
|
+
|
|
2169
|
+
@param request: UpdateAgentRuntimeEndpointRequest
|
|
2170
|
+
@return: UpdateAgentRuntimeEndpointResponse
|
|
2171
|
+
"""
|
|
2172
|
+
runtime = util_models.RuntimeOptions()
|
|
2173
|
+
headers = {}
|
|
2174
|
+
return self.update_agent_runtime_endpoint_with_options(agent_runtime_id, agent_runtime_endpoint_id, request, headers, runtime)
|
|
2175
|
+
|
|
2176
|
+
async def update_agent_runtime_endpoint_async(
|
|
2177
|
+
self,
|
|
2178
|
+
agent_runtime_id: str,
|
|
2179
|
+
agent_runtime_endpoint_id: str,
|
|
2180
|
+
request: agent_run_20250910_models.UpdateAgentRuntimeEndpointRequest,
|
|
2181
|
+
) -> agent_run_20250910_models.UpdateAgentRuntimeEndpointResponse:
|
|
2182
|
+
"""
|
|
2183
|
+
@summary Update an agent runtime endpoint
|
|
2184
|
+
|
|
2185
|
+
@param request: UpdateAgentRuntimeEndpointRequest
|
|
2186
|
+
@return: UpdateAgentRuntimeEndpointResponse
|
|
2187
|
+
"""
|
|
2188
|
+
runtime = util_models.RuntimeOptions()
|
|
2189
|
+
headers = {}
|
|
2190
|
+
return await self.update_agent_runtime_endpoint_with_options_async(agent_runtime_id, agent_runtime_endpoint_id, request, headers, runtime)
|