pub struct BudgetSpec {
pub wall_clock: Option<Duration>,
pub max_tokens: Option<u64>,
pub max_money_micro_usd: Option<u64>,
}Expand description
Budgets shared across the run. Mirrors the budget plumbing in the
rest of the framework but stays decoupled from
atomr-agents-core::TokenBudget so this crate remains lightweight.
Fields§
§wall_clock: Option<Duration>Wall-clock cap for the run.
max_tokens: Option<u64>Total token cap across all CLI calls.
max_money_micro_usd: Option<u64>Optional money cap in micro-USD.
Trait Implementations§
Source§impl Clone for BudgetSpec
impl Clone for BudgetSpec
Source§fn clone(&self) -> BudgetSpec
fn clone(&self) -> BudgetSpec
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 BudgetSpec
impl Debug for BudgetSpec
Source§impl Default for BudgetSpec
impl Default for BudgetSpec
Source§fn default() -> BudgetSpec
fn default() -> BudgetSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BudgetSpec
impl<'de> Deserialize<'de> for BudgetSpec
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 BudgetSpec
impl RefUnwindSafe for BudgetSpec
impl Send for BudgetSpec
impl Sync for BudgetSpec
impl Unpin for BudgetSpec
impl UnsafeUnpin for BudgetSpec
impl UnwindSafe for BudgetSpec
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