pub struct ToolSandboxConfig {
pub kind: SandboxKind,
pub image: Option<String>,
pub engine: Option<String>,
pub network: bool,
pub mounts: Vec<String>,
pub persist: bool,
pub on_unavailable: OnUnavailable,
}Expand description
Sandbox configuration for tool execution, at either the agent or the stage
level. A present [sandbox] block (agent or stage) overrides broader levels;
see resolve_sandbox.
Fields§
§kind: SandboxKindThe isolation mechanism. Defaults to SandboxKind::None (host).
image: Option<String>Container image (e.g. "ubuntu:24.04"). Required for
SandboxKind::Container; ignored otherwise.
engine: Option<String>Container engine binary to use (e.g. "docker", "podman", "nerdctl",
"finch"). None auto-detects (Docker, then Podman). Leviath isn’t
prescriptive - any Docker-CLI-compatible binary works. Container kind only.
network: boolWhether the sandbox has network access. false isolates the network.
mounts: Vec<String>Extra host paths to bind-mount into the sandbox. The agent’s workdir is always mounted regardless of this list.
persist: boolKeep a container warm across the agent’s stages rather than tearing it down between them. Ignored for non-container kinds.
What to do when the runtime is unavailable.
Implementations§
Trait Implementations§
Source§impl Clone for ToolSandboxConfig
impl Clone for ToolSandboxConfig
Source§fn clone(&self) -> ToolSandboxConfig
fn clone(&self) -> ToolSandboxConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ToolSandboxConfig
impl Debug for ToolSandboxConfig
Source§impl Default for ToolSandboxConfig
impl Default for ToolSandboxConfig
Source§impl<'de> Deserialize<'de> for ToolSandboxConfig
impl<'de> Deserialize<'de> for ToolSandboxConfig
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>,
impl Eq for ToolSandboxConfig
Source§impl PartialEq for ToolSandboxConfig
impl PartialEq for ToolSandboxConfig
Source§impl Serialize for ToolSandboxConfig
impl Serialize for ToolSandboxConfig
impl StructuralPartialEq for ToolSandboxConfig
Auto Trait Implementations§
impl Freeze for ToolSandboxConfig
impl RefUnwindSafe for ToolSandboxConfig
impl Send for ToolSandboxConfig
impl Sync for ToolSandboxConfig
impl Unpin for ToolSandboxConfig
impl UnsafeUnpin for ToolSandboxConfig
impl UnwindSafe for ToolSandboxConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.