pub struct AgentConfig {
pub env_vars: HashMap<String, String>,
pub work_dir: Option<PathBuf>,
pub startup_commands: Vec<String>,
pub resource_limits: ResourceLimits,
pub shell: Option<String>,
pub default_timeout_secs: Option<u64>,
pub auto_sync: bool,
pub custom_settings: HashMap<String, Value>,
}Expand description
Agent-specific configuration settings.
Fields§
§env_vars: HashMap<String, String>Shell environment variables
work_dir: Option<PathBuf>Default working directory within workspace
startup_commands: Vec<String>Startup commands to run when agent starts
resource_limits: ResourceLimitsResource limits
shell: Option<String>Preferred shell for this agent
default_timeout_secs: Option<u64>Timeout for commands in seconds
auto_sync: boolWhether to automatically sync changes
custom_settings: HashMap<String, Value>Custom settings for the agent
Implementations§
Source§impl AgentConfig
impl AgentConfig
Sourcepub fn default_workspace(&self) -> PathBuf
pub fn default_workspace(&self) -> PathBuf
Get the default workspace path for an agent with the given ID.
Sourcepub fn shell_command(&self) -> &str
pub fn shell_command(&self) -> &str
Get the effective shell command.
Sourcepub fn merge(&self, other: &AgentConfig) -> AgentConfig
pub fn merge(&self, other: &AgentConfig) -> AgentConfig
Merge this configuration with another, with the other taking precedence.
Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§impl Debug for AgentConfig
impl Debug for AgentConfig
Source§impl Default for AgentConfig
impl Default for AgentConfig
Source§impl<'de> Deserialize<'de> for AgentConfig
impl<'de> Deserialize<'de> for AgentConfig
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 AgentConfig
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnsafeUnpin for AgentConfig
impl UnwindSafe for AgentConfig
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