refactor(sandbox): redesign sandbox_layer & reorganize import paths

This commit is contained in:
Harry
2026-01-15 13:22:46 +08:00
parent c1c8b6af44
commit 63b3e71909
21 changed files with 134 additions and 179 deletions

View File

@ -3,8 +3,7 @@ import shlex
from collections.abc import Mapping, Sequence
from typing import Any
from core.sandbox.manager import SandboxManager
from core.sandbox.utils.debug import sandbox_debug
from core.sandbox import SandboxManager, sandbox_debug
from core.virtual_environment.__base.command_future import CommandCancelledError, CommandTimeoutError
from core.virtual_environment.__base.helpers import submit_command, with_connection
from core.virtual_environment.__base.virtual_environment import VirtualEnvironment

View File

@ -50,8 +50,7 @@ from core.model_runtime.utils.encoders import jsonable_encoder
from core.prompt.entities.advanced_prompt_entities import CompletionModelPromptTemplate, MemoryConfig
from core.prompt.utils.prompt_message_util import PromptMessageUtil
from core.rag.entities.citation_metadata import RetrievalSourceMetadata
from core.sandbox import SandboxSession
from core.sandbox.manager import SandboxManager
from core.sandbox import SandboxManager, SandboxSession
from core.tools.__base.tool import Tool
from core.tools.signature import sign_upload_file
from core.tools.tool_manager import ToolManager