pub struct Budget {
pub max_turns: Option<u32>,
pub max_output_tokens: Option<u64>,
pub max_cost_usd: Option<f64>,
}Expand description
Per-run ceilings. Every None falls through to the agent’s own config, so a
caller overrides only what it actually means to change.
Fields§
§max_turns: Option<u32>§max_output_tokens: Option<u64>§max_cost_usd: Option<f64>Implementations§
Trait Implementations§
impl Copy for Budget
impl StructuralPartialEq for Budget
Auto Trait Implementations§
impl Freeze for Budget
impl RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnsafeUnpin for Budget
impl UnwindSafe for Budget
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