Skip to content

Commit 4b4b97f

Browse files
committed
feat(sandbox): add CustomSandbox to module exports
Add CustomSandbox class to the sandbox module's exports to make it available for import and use in other parts of the application. This enables users to utilize the custom sandbox functionality that was previously not exposed through the main module interface. feat(sandbox): 添加 CustomSandbox 到模块导出 将 CustomSandbox 类添加到 sandbox 模块的导出中,使其可在应用程序的其他部分导入和使用。 这使用户能够利用以前未通过主模块接口公开的自定义沙箱功能。 Change-Id: Ida6b9787ae39f33e2e6902950c0d114d9508b84a
1 parent 0d77025 commit 4b4b97f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

agentrun/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@
100100
)
101101
# Sandbox
102102
from agentrun.sandbox import (
103+
AioSandbox,
103104
BrowserSandbox,
104105
CodeInterpreterSandbox,
106+
CustomSandbox,
105107
SandboxClient,
106108
Template,
107109
)
@@ -239,6 +241,8 @@
239241
"SandboxClient",
240242
"BrowserSandbox",
241243
"CodeInterpreterSandbox",
244+
"AioSandbox",
245+
"CustomSandbox",
242246
"Template",
243247
######## ToolSet ########
244248
"ToolSetClient",

agentrun/sandbox/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from .browser_sandbox import BrowserSandbox
77
from .client import SandboxClient
88
from .code_interpreter_sandbox import CodeInterpreterSandbox
9+
from .custom_sandbox import CustomSandbox
910
from .model import (
1011
CodeLanguage,
1112
ListSandboxesInput,
@@ -66,4 +67,5 @@
6667
"OSSMountPoint",
6768
"PolarFsConfig",
6869
"PolarFsConfig",
70+
"CustomSandbox",
6971
]

0 commit comments

Comments
 (0)