Expand description
The sandbox-routed shell tool.
Each call runs in a fresh shell of the sandbox (sh locally and in containers, the login
shell over SSH), so state such as variables and the working directory does not persist. The
persistent host shell is bash.
Structs§
- Make
Shell Options - Options for
make_shell(MakeShellOptions). - Make
Shell Options Builder - Use builder syntax to set the inputs and finish with
build(). - Shell
Execution Error - The sandbox failed to run a shell command (
ShellExecutionError). - Shell
Output - What a shell command produced (
ShellOutput): the tool’s result, and the partial output of a timed-out command. - Shell
Timeout Error - A shell command exceeded its timeout (
ShellTimeoutError).
Constants§
- SANDBOX_
SHELL_ DESCRIPTION - The description of the
shelltool shown to the model (SANDBOX_SHELL_DESCRIPTION).
Functions§
- make_
shell - Creates a sandbox shell tool: it runs
commandwith the sandbox’sexecuteand returns aShellOutputas JSON.