pub struct SandboxSettings {
pub enabled: Option<bool>,
pub auto_allow_bash_if_sandboxed: Option<bool>,
pub excluded_commands: Option<Vec<String>>,
pub allow_unsandboxed_commands: Option<bool>,
pub network: Option<SandboxNetworkConfig>,
pub ignore_violations: Option<SandboxIgnoreViolations>,
pub enable_weaker_nested_sandbox: Option<bool>,
}Expand description
Sandbox configuration for controlling command execution isolation.
Use this to enable command sandboxing and configure network restrictions programmatically.
§Fields
enabled— Enable sandbox mode for command execution.auto_allow_bash_if_sandboxed— Auto-approve bash commands when sandbox is enabled.excluded_commands— Commands that always bypass sandbox restrictions (e.g.,["docker"]).allow_unsandboxed_commands— Allow the model to request running commands outside the sandbox.network— Network-specific sandbox configuration.ignore_violations— Configure which sandbox violations to ignore.enable_weaker_nested_sandbox— Enable a weaker nested sandbox for compatibility.
Fields§
§enabled: Option<bool>Enables or disables sandboxing.
auto_allow_bash_if_sandboxed: Option<bool>Auto-approve bash tool when sandboxing is enabled.
excluded_commands: Option<Vec<String>>Commands excluded from sandbox restrictions.
allow_unsandboxed_commands: Option<bool>Whether unsandboxed command execution can be requested.
network: Option<SandboxNetworkConfig>Network-related sandbox settings.
ignore_violations: Option<SandboxIgnoreViolations>Violation categories to ignore.
enable_weaker_nested_sandbox: Option<bool>Enables weaker nested sandbox mode for compatibility.
Trait Implementations§
Source§impl Clone for SandboxSettings
impl Clone for SandboxSettings
Source§fn clone(&self) -> SandboxSettings
fn clone(&self) -> SandboxSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SandboxSettings
impl Debug for SandboxSettings
Source§impl Default for SandboxSettings
impl Default for SandboxSettings
Source§fn default() -> SandboxSettings
fn default() -> SandboxSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SandboxSettings
impl<'de> Deserialize<'de> for SandboxSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SandboxSettings
impl PartialEq for SandboxSettings
Source§impl Serialize for SandboxSettings
impl Serialize for SandboxSettings
impl StructuralPartialEq for SandboxSettings
Auto Trait Implementations§
impl Freeze for SandboxSettings
impl RefUnwindSafe for SandboxSettings
impl Send for SandboxSettings
impl Sync for SandboxSettings
impl Unpin for SandboxSettings
impl UnsafeUnpin for SandboxSettings
impl UnwindSafe for SandboxSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more