pub struct ExecutionConfig {
pub command_timeout_seconds: u64,
pub shell_executable: Option<PathBuf>,
pub bubblewrap_executable: Option<PathBuf>,
pub procfs_mode: ProcfsMode,
pub bytes_per_token: f64,
pub subagent_max_depth: u8,
pub subagent_max_concurrency: usize,
pub subagent_max_agents: usize,
}Expand description
Host command policy independent of Bot permissions.
Fields§
§command_timeout_seconds: u64Deadline for each agent command.
shell_executable: Option<PathBuf>Optional absolute location of a shell accepting -c scripts.
bubblewrap_executable: Option<PathBuf>Optional absolute location of Bubblewrap on Linux.
procfs_mode: ProcfsModeLinux procfs policy; empty procfs requires host-provided PID isolation.
bytes_per_token: f64Configurable fallback estimate when measured token usage is unavailable.
subagent_max_depth: u8Host ceiling for each Bot’s subagent nesting depth.
subagent_max_concurrency: usizeHost ceiling for concurrent agents, including the root.
subagent_max_agents: usizeHost ceiling for retained agents, including the root.
Implementations§
Source§impl ExecutionConfig
impl ExecutionConfig
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
Validates execution policy before building a sandbox.
§Errors
Returns an error for invalid durations, paths or token estimates.
Sourcepub fn subagent_ceilings(&self) -> Result<SubagentCeilings>
pub fn subagent_ceilings(&self) -> Result<SubagentCeilings>
Returns validated host ceilings independent of frontend-writable Bot settings.
§Errors
Returns an error for invalid depth, concurrency, or agent relationships.