Executes commands in a Docker container via docker exec, providing a sandbox environment for agent operations.
# Source: https://github.com/strands-agents/harness-sdk | License: Apache-2.0 # Provided via justclaw.it.com; keep this notice with the code. """Docker sandbox -- executes commands in a Docker container via ``docker exec``. Mirrors ``strands-ts/src/sandbox/docker.ts``. """ from collections.abc import AsyncGenerator from typing import Any from ..types.tools import AgentTool from ..vended_tools.file_editor import make_file_editor from ..vended_tools.file_editor.file_editor import DEFAULT_FILE_EDITOR_DESCRIPTION from ..vended_tools.shell import make_shell from ..vended_tools.shell.types import SANDBOX_SHELL_DESCRIPTION from .posix_shell import PosixShellSandbox, validate_env_keys from .stream_process import _stream_process from .types import ExecutionResult, StreamChunk class DockerSandb ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key