pub struct Budget {
pub max_turns: Option<u32>,
pub max_cost: Option<f64>,
}Expand description
Resource limits bounding an agent run.
Fields§
§max_turns: Option<u32>Maximum number of turns allowed, if bounded.
max_cost: Option<f64>Maximum accumulated cost allowed, if bounded.
Trait Implementations§
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