pub enum BudgetExceeded {
ToolCalls {
limit: usize,
actual: usize,
},
Tokens {
limit: usize,
actual: usize,
},
Duration {
limit: Duration,
elapsed: Duration,
},
Iterations {
limit: usize,
},
Cost {
limit: f64,
actual: f64,
},
}Expand description
Details of a budget over-limit.
Variants§
ToolCalls
Cumulative tool-call count exceeded.
Tokens
Cumulative LLM output-token count exceeded.
Duration
Loop wall-clock duration exceeded.
Iterations
Iteration count exceeded.
Cost
Cumulative USD spend exceeded.
Trait Implementations§
Source§impl Clone for BudgetExceeded
impl Clone for BudgetExceeded
Source§fn clone(&self) -> BudgetExceeded
fn clone(&self) -> BudgetExceeded
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 moreAuto Trait Implementations§
impl Freeze for BudgetExceeded
impl RefUnwindSafe for BudgetExceeded
impl Send for BudgetExceeded
impl Sync for BudgetExceeded
impl Unpin for BudgetExceeded
impl UnsafeUnpin for BudgetExceeded
impl UnwindSafe for BudgetExceeded
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