pub struct SafetyConfig {
pub max_total_cost: f64,
pub max_per_operation_cost: f64,
pub max_daily_operations: u32,
pub circuit_breaker_threshold: u32,
pub circuit_breaker_cooldown_secs: u64,
pub max_diff_per_task: u32,
pub max_total_diff: u32,
pub max_concurrent_agents: u32,
pub heartbeat_timeout_secs: u64,
pub allowed_paths: Vec<String>,
pub forbidden_paths: Vec<String>,
}Expand description
Safety and budget configuration for autonomous operations.
Controls cost limits, operation quotas, circuit breaker behavior, and file path restrictions that apply across all autonomous features.
Fields§
§max_total_cost: f64Maximum total cost in USD across all operations.
max_per_operation_cost: f64Maximum cost per single operation.
max_daily_operations: u32Maximum daily operations.
circuit_breaker_threshold: u32Consecutive failure threshold for circuit breaker.
circuit_breaker_cooldown_secs: u64Circuit breaker cooldown in seconds.
max_diff_per_task: u32Max diff lines per task.
max_total_diff: u32Max total diff lines per session.
max_concurrent_agents: u32Max concurrent agents.
heartbeat_timeout_secs: u64Dead man’s switch heartbeat timeout in seconds.
allowed_paths: Vec<String>Allowed path globs for file modifications.
forbidden_paths: Vec<String>Forbidden path globs (takes precedence over allowed).
Trait Implementations§
Source§impl Clone for SafetyConfig
impl Clone for SafetyConfig
Source§fn clone(&self) -> SafetyConfig
fn clone(&self) -> SafetyConfig
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 SafetyConfig
impl Debug for SafetyConfig
Source§impl Default for SafetyConfig
impl Default for SafetyConfig
Source§impl<'de> Deserialize<'de> for SafetyConfig
impl<'de> Deserialize<'de> for SafetyConfig
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 SafetyConfig
impl RefUnwindSafe for SafetyConfig
impl Send for SafetyConfig
impl Sync for SafetyConfig
impl Unpin for SafetyConfig
impl UnsafeUnpin for SafetyConfig
impl UnwindSafe for SafetyConfig
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