pub struct TokenBudgetCompletion {
pub pct: f64,
pub tokens: u64,
pub budget: f64,
pub continuation_count: u64,
pub duration_ms: u64,
pub diminishing_returns: bool,
}Expand description
Completion event emitted when token budget causes the loop to stop.
Fields§
§pct: f64Percentage of budget consumed (0.0-1.0+)
tokens: u64Total turn tokens consumed
budget: f64Budget target
continuation_count: u64How many continuations were performed
duration_ms: u64Duration in milliseconds since tracker started
diminishing_returns: boolWhether diminishing returns triggered the stop
Trait Implementations§
Source§impl Clone for TokenBudgetCompletion
impl Clone for TokenBudgetCompletion
Source§fn clone(&self) -> TokenBudgetCompletion
fn clone(&self) -> TokenBudgetCompletion
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 moreAuto Trait Implementations§
impl Freeze for TokenBudgetCompletion
impl RefUnwindSafe for TokenBudgetCompletion
impl Send for TokenBudgetCompletion
impl Sync for TokenBudgetCompletion
impl Unpin for TokenBudgetCompletion
impl UnsafeUnpin for TokenBudgetCompletion
impl UnwindSafe for TokenBudgetCompletion
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