agentrun-inner-test 0.0.62__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of agentrun-inner-test might be problematic. Click here for more details.
- agentrun/__init__.py +358 -0
- agentrun/agent_runtime/__client_async_template.py +466 -0
- agentrun/agent_runtime/__endpoint_async_template.py +345 -0
- agentrun/agent_runtime/__init__.py +53 -0
- agentrun/agent_runtime/__runtime_async_template.py +477 -0
- agentrun/agent_runtime/api/__data_async_template.py +58 -0
- agentrun/agent_runtime/api/__init__.py +6 -0
- agentrun/agent_runtime/api/control.py +1362 -0
- agentrun/agent_runtime/api/data.py +98 -0
- agentrun/agent_runtime/client.py +868 -0
- agentrun/agent_runtime/endpoint.py +649 -0
- agentrun/agent_runtime/model.py +362 -0
- agentrun/agent_runtime/runtime.py +904 -0
- agentrun/credential/__client_async_template.py +177 -0
- agentrun/credential/__credential_async_template.py +216 -0
- agentrun/credential/__init__.py +28 -0
- agentrun/credential/api/__init__.py +5 -0
- agentrun/credential/api/control.py +606 -0
- agentrun/credential/client.py +319 -0
- agentrun/credential/credential.py +381 -0
- agentrun/credential/model.py +248 -0
- agentrun/integration/__init__.py +21 -0
- agentrun/integration/agentscope/__init__.py +13 -0
- agentrun/integration/agentscope/adapter.py +17 -0
- agentrun/integration/agentscope/builtin.py +88 -0
- agentrun/integration/agentscope/message_adapter.py +185 -0
- agentrun/integration/agentscope/model_adapter.py +60 -0
- agentrun/integration/agentscope/tool_adapter.py +59 -0
- agentrun/integration/builtin/__init__.py +18 -0
- agentrun/integration/builtin/knowledgebase.py +137 -0
- agentrun/integration/builtin/model.py +93 -0
- agentrun/integration/builtin/sandbox.py +1234 -0
- agentrun/integration/builtin/toolset.py +47 -0
- agentrun/integration/crewai/__init__.py +13 -0
- agentrun/integration/crewai/adapter.py +9 -0
- agentrun/integration/crewai/builtin.py +88 -0
- agentrun/integration/crewai/model_adapter.py +31 -0
- agentrun/integration/crewai/tool_adapter.py +26 -0
- agentrun/integration/google_adk/__init__.py +13 -0
- agentrun/integration/google_adk/adapter.py +15 -0
- agentrun/integration/google_adk/builtin.py +88 -0
- agentrun/integration/google_adk/message_adapter.py +144 -0
- agentrun/integration/google_adk/model_adapter.py +46 -0
- agentrun/integration/google_adk/tool_adapter.py +235 -0
- agentrun/integration/langchain/__init__.py +31 -0
- agentrun/integration/langchain/adapter.py +15 -0
- agentrun/integration/langchain/builtin.py +94 -0
- agentrun/integration/langchain/message_adapter.py +141 -0
- agentrun/integration/langchain/model_adapter.py +37 -0
- agentrun/integration/langchain/tool_adapter.py +50 -0
- agentrun/integration/langgraph/__init__.py +36 -0
- agentrun/integration/langgraph/adapter.py +20 -0
- agentrun/integration/langgraph/agent_converter.py +1073 -0
- agentrun/integration/langgraph/builtin.py +88 -0
- agentrun/integration/pydantic_ai/__init__.py +13 -0
- agentrun/integration/pydantic_ai/adapter.py +13 -0
- agentrun/integration/pydantic_ai/builtin.py +88 -0
- agentrun/integration/pydantic_ai/model_adapter.py +44 -0
- agentrun/integration/pydantic_ai/tool_adapter.py +19 -0
- agentrun/integration/utils/__init__.py +112 -0
- agentrun/integration/utils/adapter.py +560 -0
- agentrun/integration/utils/canonical.py +164 -0
- agentrun/integration/utils/converter.py +134 -0
- agentrun/integration/utils/model.py +110 -0
- agentrun/integration/utils/tool.py +1759 -0
- agentrun/knowledgebase/__client_async_template.py +173 -0
- agentrun/knowledgebase/__init__.py +53 -0
- agentrun/knowledgebase/__knowledgebase_async_template.py +438 -0
- agentrun/knowledgebase/api/__data_async_template.py +414 -0
- agentrun/knowledgebase/api/__init__.py +19 -0
- agentrun/knowledgebase/api/control.py +606 -0
- agentrun/knowledgebase/api/data.py +624 -0
- agentrun/knowledgebase/client.py +311 -0
- agentrun/knowledgebase/knowledgebase.py +748 -0
- agentrun/knowledgebase/model.py +270 -0
- agentrun/memory_collection/__client_async_template.py +178 -0
- agentrun/memory_collection/__init__.py +37 -0
- agentrun/memory_collection/__memory_collection_async_template.py +457 -0
- agentrun/memory_collection/api/__init__.py +5 -0
- agentrun/memory_collection/api/control.py +610 -0
- agentrun/memory_collection/client.py +323 -0
- agentrun/memory_collection/memory_collection.py +844 -0
- agentrun/memory_collection/model.py +162 -0
- agentrun/model/__client_async_template.py +357 -0
- agentrun/model/__init__.py +57 -0
- agentrun/model/__model_proxy_async_template.py +270 -0
- agentrun/model/__model_service_async_template.py +267 -0
- agentrun/model/api/__init__.py +6 -0
- agentrun/model/api/control.py +1173 -0
- agentrun/model/api/data.py +196 -0
- agentrun/model/client.py +674 -0
- agentrun/model/model.py +235 -0
- agentrun/model/model_proxy.py +439 -0
- agentrun/model/model_service.py +438 -0
- agentrun/sandbox/__aio_sandbox_async_template.py +523 -0
- agentrun/sandbox/__browser_sandbox_async_template.py +110 -0
- agentrun/sandbox/__client_async_template.py +491 -0
- agentrun/sandbox/__code_interpreter_sandbox_async_template.py +463 -0
- agentrun/sandbox/__init__.py +69 -0
- agentrun/sandbox/__sandbox_async_template.py +463 -0
- agentrun/sandbox/__template_async_template.py +152 -0
- agentrun/sandbox/aio_sandbox.py +912 -0
- agentrun/sandbox/api/__aio_data_async_template.py +335 -0
- agentrun/sandbox/api/__browser_data_async_template.py +140 -0
- agentrun/sandbox/api/__code_interpreter_data_async_template.py +206 -0
- agentrun/sandbox/api/__init__.py +19 -0
- agentrun/sandbox/api/__sandbox_data_async_template.py +107 -0
- agentrun/sandbox/api/aio_data.py +551 -0
- agentrun/sandbox/api/browser_data.py +172 -0
- agentrun/sandbox/api/code_interpreter_data.py +396 -0
- agentrun/sandbox/api/control.py +1051 -0
- agentrun/sandbox/api/playwright_async.py +492 -0
- agentrun/sandbox/api/playwright_sync.py +492 -0
- agentrun/sandbox/api/sandbox_data.py +154 -0
- agentrun/sandbox/browser_sandbox.py +185 -0
- agentrun/sandbox/client.py +925 -0
- agentrun/sandbox/code_interpreter_sandbox.py +823 -0
- agentrun/sandbox/model.py +384 -0
- agentrun/sandbox/sandbox.py +848 -0
- agentrun/sandbox/template.py +217 -0
- agentrun/server/__init__.py +191 -0
- agentrun/server/agui_normalizer.py +180 -0
- agentrun/server/agui_protocol.py +797 -0
- agentrun/server/invoker.py +309 -0
- agentrun/server/model.py +427 -0
- agentrun/server/openai_protocol.py +535 -0
- agentrun/server/protocol.py +140 -0
- agentrun/server/server.py +208 -0
- agentrun/toolset/__client_async_template.py +62 -0
- agentrun/toolset/__init__.py +51 -0
- agentrun/toolset/__toolset_async_template.py +204 -0
- agentrun/toolset/api/__init__.py +17 -0
- agentrun/toolset/api/control.py +262 -0
- agentrun/toolset/api/mcp.py +100 -0
- agentrun/toolset/api/openapi.py +1251 -0
- agentrun/toolset/client.py +102 -0
- agentrun/toolset/model.py +321 -0
- agentrun/toolset/toolset.py +271 -0
- agentrun/utils/__data_api_async_template.py +721 -0
- agentrun/utils/__init__.py +5 -0
- agentrun/utils/__resource_async_template.py +158 -0
- agentrun/utils/config.py +270 -0
- agentrun/utils/control_api.py +105 -0
- agentrun/utils/data_api.py +1121 -0
- agentrun/utils/exception.py +151 -0
- agentrun/utils/helper.py +108 -0
- agentrun/utils/log.py +77 -0
- agentrun/utils/model.py +168 -0
- agentrun/utils/resource.py +291 -0
- agentrun_inner_test-0.0.62.dist-info/METADATA +265 -0
- agentrun_inner_test-0.0.62.dist-info/RECORD +154 -0
- agentrun_inner_test-0.0.62.dist-info/WHEEL +5 -0
- agentrun_inner_test-0.0.62.dist-info/licenses/LICENSE +201 -0
- agentrun_inner_test-0.0.62.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
"""Agent Runtime 数据模型 / Agent Runtime Data Models
|
|
2
|
+
|
|
3
|
+
此模块定义 Agent Runtime 相关的所有数据模型、枚举和输入输出对象。
|
|
4
|
+
This module defines all data models, enums, and input/output objects related to Agent Runtime.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import base64
|
|
8
|
+
from enum import Enum
|
|
9
|
+
import os
|
|
10
|
+
import time
|
|
11
|
+
from typing import Dict, List, Optional
|
|
12
|
+
import zipfile
|
|
13
|
+
|
|
14
|
+
import crcmod
|
|
15
|
+
|
|
16
|
+
from agentrun.utils.model import (
|
|
17
|
+
BaseModel,
|
|
18
|
+
Field,
|
|
19
|
+
NetworkConfig,
|
|
20
|
+
PageableInput,
|
|
21
|
+
Status,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class AgentRuntimeArtifact(str, Enum):
|
|
26
|
+
"""Agent Runtime 运行方式 / Agent Runtime Artifact Type
|
|
27
|
+
|
|
28
|
+
定义 Agent Runtime 的运行方式,支持代码模式和容器模式。
|
|
29
|
+
Defines the runtime mode of Agent Runtime, supporting code mode and container mode.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
CODE = "Code"
|
|
33
|
+
"""代码直接运行模式 / Code execution mode"""
|
|
34
|
+
CONTAINER = "Container"
|
|
35
|
+
"""容器镜像模式 / Container image mode"""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class AgentRuntimeLanguage(str, Enum):
|
|
39
|
+
"""Agent Runtime 运行时语言 / Agent Runtime Language
|
|
40
|
+
|
|
41
|
+
支持的编程语言运行时。
|
|
42
|
+
Supported programming language runtimes.
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
PYTHON310 = "python3.10"
|
|
46
|
+
"""Python 3.10 运行时 / Python 3.10 runtime"""
|
|
47
|
+
PYTHON312 = "python3.12"
|
|
48
|
+
"""Python 3.12 运行时 / Python 3.12 runtime"""
|
|
49
|
+
NODEJS18 = "nodejs18"
|
|
50
|
+
"""Node.js 18 运行时 / Node.js 18 runtime"""
|
|
51
|
+
NODEJS20 = "nodejs20"
|
|
52
|
+
"""Node.js 20 运行时 / Node.js 20 runtime"""
|
|
53
|
+
JAVA8 = "java8"
|
|
54
|
+
"""Java 8 运行时 / Java 8 runtime"""
|
|
55
|
+
JAVA11 = "java11"
|
|
56
|
+
"""Java 11 运行时 / Java 11 runtime"""
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class AgentRuntimeCode(BaseModel):
|
|
60
|
+
"""Agent Runtime 代码配置"""
|
|
61
|
+
|
|
62
|
+
checksum: Optional[str] = None
|
|
63
|
+
"""代码包的 CRC-64校验值。如果提供了checksum,则函数计算会校验代码包的checksum是否和提供的一致"""
|
|
64
|
+
command: Optional[List[str]] = None
|
|
65
|
+
"""在运行时中运行的命令(例如:["python"])"""
|
|
66
|
+
language: Optional[AgentRuntimeLanguage] = None
|
|
67
|
+
"""代码运行时的编程语言,如 python3、nodejs 等"""
|
|
68
|
+
oss_bucket_name: Optional[str] = None
|
|
69
|
+
"""OSS存储桶名称"""
|
|
70
|
+
oss_object_name: Optional[str] = None
|
|
71
|
+
"""OSS对象名称"""
|
|
72
|
+
zip_file: Optional[str] = None
|
|
73
|
+
"""智能体代码ZIP包的Base64编码"""
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_zip_file(
|
|
77
|
+
cls,
|
|
78
|
+
language: AgentRuntimeLanguage,
|
|
79
|
+
command: List[str],
|
|
80
|
+
zip_file_path: str,
|
|
81
|
+
) -> "AgentRuntimeCode":
|
|
82
|
+
with open(zip_file_path, "rb") as f:
|
|
83
|
+
data = f.read()
|
|
84
|
+
|
|
85
|
+
crc64 = crcmod.mkCrcFun(
|
|
86
|
+
0x142F0E1EBA9EA3693, initCrc=0, xorOut=0xFFFFFFFFFFFFFFFF, rev=True
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
checksum = crc64(data).__str__()
|
|
90
|
+
return cls(
|
|
91
|
+
language=language,
|
|
92
|
+
command=command,
|
|
93
|
+
zip_file=base64.b64encode(data).decode("utf-8"),
|
|
94
|
+
checksum=checksum,
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
@classmethod
|
|
98
|
+
def from_oss(
|
|
99
|
+
cls,
|
|
100
|
+
language: AgentRuntimeLanguage,
|
|
101
|
+
command: List[str],
|
|
102
|
+
bucket: str,
|
|
103
|
+
object: str,
|
|
104
|
+
) -> "AgentRuntimeCode":
|
|
105
|
+
return cls(
|
|
106
|
+
language=language,
|
|
107
|
+
command=command,
|
|
108
|
+
oss_bucket_name=bucket,
|
|
109
|
+
oss_object_name=object,
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
@classmethod
|
|
113
|
+
def from_file(
|
|
114
|
+
cls, language: AgentRuntimeLanguage, command: List[str], file_path: str
|
|
115
|
+
) -> "AgentRuntimeCode":
|
|
116
|
+
# 如果是文件夹,则先将文件夹打包成 zip
|
|
117
|
+
zip_file_path = os.path.join(
|
|
118
|
+
os.path.dirname(file_path), str(int(time.time())) + ".zip"
|
|
119
|
+
)
|
|
120
|
+
|
|
121
|
+
if os.path.isdir(file_path):
|
|
122
|
+
with zipfile.ZipFile(
|
|
123
|
+
zip_file_path, "w", zipfile.ZIP_DEFLATED
|
|
124
|
+
) as zipf:
|
|
125
|
+
for root, dirs, files in os.walk(file_path):
|
|
126
|
+
for file in files:
|
|
127
|
+
full_path = os.path.join(root, file)
|
|
128
|
+
relative_path = os.path.relpath(full_path, file_path)
|
|
129
|
+
zipf.write(full_path, relative_path)
|
|
130
|
+
else:
|
|
131
|
+
with zipfile.ZipFile(
|
|
132
|
+
zip_file_path, "w", zipfile.ZIP_DEFLATED
|
|
133
|
+
) as zipf:
|
|
134
|
+
zipf.write(file_path, os.path.basename(file_path))
|
|
135
|
+
|
|
136
|
+
c = cls.from_zip_file(language, command, zip_file_path)
|
|
137
|
+
os.remove(zip_file_path)
|
|
138
|
+
|
|
139
|
+
return c
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
class AgentRuntimeContainer(BaseModel):
|
|
143
|
+
"""Agent Runtime 容器配置"""
|
|
144
|
+
|
|
145
|
+
command: Optional[List[str]] = Field(alias="command", default=None)
|
|
146
|
+
"""在运行时中运行的命令(例如:["python"])"""
|
|
147
|
+
image: Optional[str] = Field(alias="image", default=None)
|
|
148
|
+
"""容器镜像地址"""
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
class AgentRuntimeHealthCheckConfig(BaseModel):
|
|
152
|
+
"""Agent Runtime 健康检查配置"""
|
|
153
|
+
|
|
154
|
+
failure_threshold: Optional[int] = Field(
|
|
155
|
+
alias="failureThreshold", default=None
|
|
156
|
+
)
|
|
157
|
+
"""在将容器视为不健康之前,连续失败的健康检查次数"""
|
|
158
|
+
http_get_url: Optional[str] = Field(alias="httpGetUrl", default=None)
|
|
159
|
+
"""用于健康检查的HTTP GET请求的URL地址"""
|
|
160
|
+
initial_delay_seconds: Optional[int] = Field(
|
|
161
|
+
alias="initialDelaySeconds", default=None
|
|
162
|
+
)
|
|
163
|
+
"""在容器启动后,首次执行健康检查前的延迟时间(秒)"""
|
|
164
|
+
period_seconds: Optional[int] = Field(alias="periodSeconds", default=None)
|
|
165
|
+
"""执行健康检查的时间间隔(秒)"""
|
|
166
|
+
success_threshold: Optional[int] = Field(
|
|
167
|
+
alias="successThreshold", default=None
|
|
168
|
+
)
|
|
169
|
+
"""在将容器视为健康之前,连续成功的健康检查次数"""
|
|
170
|
+
timeout_seconds: Optional[int] = Field(alias="timeoutSeconds", default=None)
|
|
171
|
+
"""健康检查的超时时间(秒)"""
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
class AgentRuntimeLogConfig(BaseModel):
|
|
175
|
+
"""Agent Runtime 日志配置"""
|
|
176
|
+
|
|
177
|
+
project: str = Field(alias="project")
|
|
178
|
+
"""SLS项目名称"""
|
|
179
|
+
logstore: str = Field(alias="logstore")
|
|
180
|
+
"""SLS日志库名称"""
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
class AgentRuntimeProtocolType(str, Enum):
|
|
184
|
+
"""Agent Runtime 协议类型"""
|
|
185
|
+
|
|
186
|
+
HTTP = "HTTP"
|
|
187
|
+
MCP = "MCP"
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
class AgentRuntimeProtocolConfig(BaseModel):
|
|
191
|
+
"""Agent Runtime 协议配置"""
|
|
192
|
+
|
|
193
|
+
type: AgentRuntimeProtocolType = Field(
|
|
194
|
+
alias="type", default=AgentRuntimeProtocolType.HTTP
|
|
195
|
+
)
|
|
196
|
+
"""协议类型"""
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
class AgentRuntimeEndpointRoutingWeight(BaseModel):
|
|
200
|
+
"""智能体运行时端点路由配置"""
|
|
201
|
+
|
|
202
|
+
version: Optional[str] = None
|
|
203
|
+
weight: Optional[int] = None
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
class AgentRuntimeEndpointRoutingConfig(BaseModel):
|
|
207
|
+
"""智能体运行时端点路由配置"""
|
|
208
|
+
|
|
209
|
+
version_weights: Optional[List[AgentRuntimeEndpointRoutingWeight]] = None
|
|
210
|
+
"""版本权重列表"""
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
class AgentRuntimeMutableProps(BaseModel):
|
|
214
|
+
agent_runtime_name: Optional[str] = None
|
|
215
|
+
"""Agent Runtime 名称"""
|
|
216
|
+
artifact_type: Optional[AgentRuntimeArtifact] = None
|
|
217
|
+
"""Agent Runtime 运行方式"""
|
|
218
|
+
code_configuration: Optional[AgentRuntimeCode] = None
|
|
219
|
+
"""Agent Runtime 代码配置"""
|
|
220
|
+
container_configuration: Optional[AgentRuntimeContainer] = None
|
|
221
|
+
"""Agent Runtime 容器配置"""
|
|
222
|
+
cpu: Optional[float] = 2
|
|
223
|
+
"""Agent Runtime CPU 配置,单位:核"""
|
|
224
|
+
credential_name: Optional[str] = None
|
|
225
|
+
"""Agent Runtime 凭证 ID"""
|
|
226
|
+
description: Optional[str] = None
|
|
227
|
+
"""Agent Runtime 描述"""
|
|
228
|
+
environment_variables: Optional[Dict[str, str]] = None
|
|
229
|
+
"""环境变量"""
|
|
230
|
+
execution_role_arn: Optional[str] = None
|
|
231
|
+
"""Agent Runtime 执行角色 ARN"""
|
|
232
|
+
health_check_configuration: Optional[AgentRuntimeHealthCheckConfig] = None
|
|
233
|
+
"""健康检查配置"""
|
|
234
|
+
# instance_idle_timeout_seconds: Optional[int] = 1
|
|
235
|
+
# """实例空闲超时时间,单位:秒"""
|
|
236
|
+
log_configuration: Optional[AgentRuntimeLogConfig] = None
|
|
237
|
+
"""日志配置"""
|
|
238
|
+
memory: Optional[int] = 4096
|
|
239
|
+
"""Agent Runtime 内存配置,单位:MB"""
|
|
240
|
+
network_configuration: Optional[NetworkConfig] = None
|
|
241
|
+
"""Agent Runtime 网络配置"""
|
|
242
|
+
port: Optional[int] = 9000
|
|
243
|
+
"""Agent Runtime 端口配置"""
|
|
244
|
+
protocol_configuration: Optional[AgentRuntimeProtocolConfig] = None
|
|
245
|
+
"""协议配置"""
|
|
246
|
+
# request_timeout_seconds: Optional[int] = None
|
|
247
|
+
# """请求超时时间,单位:秒"""
|
|
248
|
+
session_concurrency_limit_per_instance: Optional[int] = None
|
|
249
|
+
"""每实例会话并发限制"""
|
|
250
|
+
session_idle_timeout_seconds: Optional[int] = None
|
|
251
|
+
"""会话空闲超时时间,单位:秒"""
|
|
252
|
+
tags: Optional[List[str]] = None
|
|
253
|
+
"""标签列表"""
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
class AgentRuntimeImmutableProps(BaseModel):
|
|
257
|
+
pass
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
class AgentRuntimeSystemProps(BaseModel):
|
|
261
|
+
agent_runtime_arn: Optional[str] = None
|
|
262
|
+
"""全局唯一资源名称"""
|
|
263
|
+
agent_runtime_id: Optional[str] = None
|
|
264
|
+
"""唯一标识符"""
|
|
265
|
+
created_at: Optional[str] = None
|
|
266
|
+
"""创建时间"""
|
|
267
|
+
last_updated_at: Optional[str] = None
|
|
268
|
+
"""最后更新时间"""
|
|
269
|
+
resource_name: Optional[str] = None
|
|
270
|
+
"""资源名称"""
|
|
271
|
+
status: Optional[Status] = None
|
|
272
|
+
"""运行状态"""
|
|
273
|
+
status_reason: Optional[str] = None
|
|
274
|
+
"""状态原因"""
|
|
275
|
+
agent_runtime_version: Optional[str] = None
|
|
276
|
+
"""版本号"""
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
class AgentRuntimeEndpointMutableProps(BaseModel):
|
|
280
|
+
agent_runtime_endpoint_name: Optional[str] = None
|
|
281
|
+
description: Optional[str] = None
|
|
282
|
+
routing_configuration: Optional[AgentRuntimeEndpointRoutingConfig] = None
|
|
283
|
+
"""智能体运行时端点的路由配置,支持多版本权重分配"""
|
|
284
|
+
tags: Optional[List[str]] = None
|
|
285
|
+
target_version: Optional[str] = "LATEST"
|
|
286
|
+
"""智能体运行时的目标版本"""
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
class AgentRuntimeEndpointImmutableProps(BaseModel):
|
|
290
|
+
pass
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
class AgentRuntimeEndpointSystemProps(BaseModel):
|
|
294
|
+
agent_runtime_endpoint_arn: Optional[str] = None
|
|
295
|
+
"""智能体运行时端点的资源ARN"""
|
|
296
|
+
agent_runtime_endpoint_id: Optional[str] = None
|
|
297
|
+
"""智能体运行时端点的唯一标识ID"""
|
|
298
|
+
agent_runtime_id: Optional[str] = None
|
|
299
|
+
"""智能体运行时的ID"""
|
|
300
|
+
endpoint_public_url: Optional[str] = None
|
|
301
|
+
"""智能体运行时端点的公网访问地址"""
|
|
302
|
+
resource_name: Optional[str] = None
|
|
303
|
+
"""智能体运行时端点的资源名称"""
|
|
304
|
+
status: Optional[Status] = None
|
|
305
|
+
"""智能体运行时端点的状态"""
|
|
306
|
+
status_reason: Optional[str] = None
|
|
307
|
+
"""智能体运行时端点的状态原因"""
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
class AgentRuntimeCreateInput(
|
|
311
|
+
AgentRuntimeMutableProps, AgentRuntimeImmutableProps
|
|
312
|
+
):
|
|
313
|
+
pass
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
class AgentRuntimeUpdateInput(AgentRuntimeMutableProps):
|
|
317
|
+
pass
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
class AgentRuntimeListInput(PageableInput):
|
|
321
|
+
agent_runtime_name: Optional[str] = None
|
|
322
|
+
"""Agent Runtime 名称"""
|
|
323
|
+
tags: Optional[str] = None
|
|
324
|
+
"""标签过滤,多个标签用逗号分隔"""
|
|
325
|
+
search_mode: Optional[str] = None
|
|
326
|
+
"""搜索模式"""
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
class AgentRuntimeEndpointCreateInput(
|
|
330
|
+
AgentRuntimeEndpointMutableProps, AgentRuntimeEndpointImmutableProps
|
|
331
|
+
):
|
|
332
|
+
pass
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
class AgentRuntimeEndpointUpdateInput(AgentRuntimeEndpointMutableProps):
|
|
336
|
+
pass
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
class AgentRuntimeEndpointListInput(PageableInput):
|
|
340
|
+
endpoint_name: Optional[str] = None
|
|
341
|
+
"""端点名称"""
|
|
342
|
+
search_mode: Optional[str] = None
|
|
343
|
+
"""搜索模式"""
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
class AgentRuntimeVersion(BaseModel):
|
|
347
|
+
agent_runtime_arn: Optional[str] = None
|
|
348
|
+
"""智能体运行时的ARN"""
|
|
349
|
+
agent_runtime_id: Optional[str] = None
|
|
350
|
+
"""智能体运行时的ID"""
|
|
351
|
+
agent_runtime_name: Optional[str] = None
|
|
352
|
+
"""智能体运行时的名称"""
|
|
353
|
+
agent_runtime_version: Optional[str] = None
|
|
354
|
+
"""已发布版本的版本号"""
|
|
355
|
+
description: Optional[str] = None
|
|
356
|
+
"""此版本的描述"""
|
|
357
|
+
last_updated_at: Optional[str] = None
|
|
358
|
+
"""最后更新的时间戳"""
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
class AgentRuntimeVersionListInput(PageableInput):
|
|
362
|
+
pass
|