mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-29 16:20:02 +08:00
32 lines
766 B
Python
32 lines
766 B
Python
from zhenxun.services.ai.config.manager import get_llm_config
|
|||
|
|
|
||
|
|
if get_llm_config().sandbox.enable_sandbox:
|
||
|
|
from .drivers import docker # noqa: F401
|
||
|
|
from .models import (
|
||
|
|
SandboxBlueprint,
|
||
|
|
SandboxExecutionResult,
|
||
|
|
SandboxSessionState,
|
||
|
|
)
|
||
|
|
from .protocols import (
|
||
|
|
InteractiveTerminalSession,
|
||
|
|
SandboxChannel,
|
||
|
|
SupportsCommandExecution,
|
||
|
|
SupportsFileSystem,
|
||
|
|
SupportsInteractivePTY,
|
||
|
|
SupportsPortMapping,
|
||
|
|
)
|
||
|
|
from .registry import SandboxRegistry
|
||
|
|
|
||
|
|
__all__ = [
|
||
|
|
"InteractiveTerminalSession",
|
||
|
|
"SandboxBlueprint",
|
||
|
|
"SandboxChannel",
|
||
|
|
"SandboxExecutionResult",
|
||
|
|
"SandboxRegistry",
|
||
|
|
"SandboxSessionState",
|
||
|
|
"SupportsCommandExecution",
|
||
|
|
"SupportsFileSystem",
|
||
|
|
"SupportsInteractivePTY",
|
||
|
|
"SupportsPortMapping",
|
||
|
|
]
|