pub struct ExecutionConfig {
pub default_env: Option<String>,
pub environments: Vec<EnvironmentConfig>,
}Expand description
Top-level [execution] configuration section.
§Config example
[execution]
default_env = "repo"
[[execution.environments]]
name = "repo"
cwd = "/Users/me/Dev/myproject"
env = { CARGO_TARGET_DIR = "/tmp/cargo-target" }
[[execution.environments]]
name = "scratch"
cwd = "/tmp/scratch"§Note on case sensitivity
Environment names are case-sensitive. Convention is lowercase ("repo", "scratch").
An unknown default_env or context.name is a hard error at resolution time.
Fields§
§default_env: Option<String>Name of the environment applied when a ToolCall carries no explicit context
and no default_env would otherwise be used. This is the least-specific
fallback layer in the CWD/env precedence stack.
environments: Vec<EnvironmentConfig>Named execution environments. Each entry becomes a registry key that
ShellExecutor consults when ToolCall::context.name is set.
Trait Implementations§
Source§impl Clone for ExecutionConfig
impl Clone for ExecutionConfig
Source§fn clone(&self) -> ExecutionConfig
fn clone(&self) -> ExecutionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExecutionConfig
impl Debug for ExecutionConfig
Source§impl Default for ExecutionConfig
impl Default for ExecutionConfig
Source§fn default() -> ExecutionConfig
fn default() -> ExecutionConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExecutionConfig
impl<'de> Deserialize<'de> for ExecutionConfig
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
Auto Trait Implementations§
impl Freeze for ExecutionConfig
impl RefUnwindSafe for ExecutionConfig
impl Send for ExecutionConfig
impl Sync for ExecutionConfig
impl Unpin for ExecutionConfig
impl UnsafeUnpin for ExecutionConfig
impl UnwindSafe for ExecutionConfig
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