pub struct ResourceLimits {
pub max_api_cost_per_run: f64,
pub max_api_cost_per_day: f64,
pub max_execution_time: u64,
pub max_concurrent_workflows: u32,
pub max_file_write_size: String,
pub allowed_directories: Vec<String>,
pub blocked_directories: Vec<String>,
}Expand description
Resource limits to prevent runaway execution.
Fields§
§max_api_cost_per_run: f64Maximum API cost (USD) per workflow run.
max_api_cost_per_day: f64Maximum API cost (USD) per day.
max_execution_time: u64Maximum execution time in seconds per workflow.
max_concurrent_workflows: u32Maximum number of concurrent workflows.
max_file_write_size: StringMaximum file write size (e.g. “10MB”).
allowed_directories: Vec<String>Directories the agent is allowed to access.
blocked_directories: Vec<String>Directories the agent must never access.
Trait Implementations§
Source§impl Clone for ResourceLimits
impl Clone for ResourceLimits
Source§fn clone(&self) -> ResourceLimits
fn clone(&self) -> ResourceLimits
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 ResourceLimits
impl Debug for ResourceLimits
Source§impl<'de> Deserialize<'de> for ResourceLimits
impl<'de> Deserialize<'de> for ResourceLimits
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 ResourceLimits
impl RefUnwindSafe for ResourceLimits
impl Send for ResourceLimits
impl Sync for ResourceLimits
impl Unpin for ResourceLimits
impl UnsafeUnpin for ResourceLimits
impl UnwindSafe for ResourceLimits
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