feat: integrated with sandbox

This commit is contained in:
Henry Li
2026-01-14 12:32:34 +08:00
parent c1e9340062
commit de2d18561a
8 changed files with 103 additions and 34 deletions

View File

@@ -10,7 +10,7 @@ class SandboxProvider(ABC):
@abstractmethod
def acquire(self) -> str:
"""Acquire a sandbox environment.
"""Acquire a sandbox environment and return its ID.
Returns:
The ID of the acquired sandbox environment.
@@ -18,7 +18,7 @@ class SandboxProvider(ABC):
pass
@abstractmethod
def get(self, sandbox_id: str) -> Sandbox:
def get(self, sandbox_id: str) -> Sandbox | None:
"""Get a sandbox environment by ID.
Args: