pub struct BudgetSlice {
pub max_turns: u32,
pub max_total_tokens: u64,
pub max_wall_ms: Option<u64>,
}Expand description
The budget a task is granted for the next run step. M1’s schedule() returns one of these.
Fields§
§max_turns: u32§max_total_tokens: u64§max_wall_ms: Option<u64>Trait Implementations§
Source§impl Clone for BudgetSlice
impl Clone for BudgetSlice
Source§fn clone(&self) -> BudgetSlice
fn clone(&self) -> BudgetSlice
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 moreimpl Copy for BudgetSlice
Source§impl Debug for BudgetSlice
impl Debug for BudgetSlice
impl Eq for BudgetSlice
Source§impl PartialEq for BudgetSlice
impl PartialEq for BudgetSlice
Source§fn eq(&self, other: &BudgetSlice) -> bool
fn eq(&self, other: &BudgetSlice) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BudgetSlice
Auto Trait Implementations§
impl Freeze for BudgetSlice
impl RefUnwindSafe for BudgetSlice
impl Send for BudgetSlice
impl Sync for BudgetSlice
impl Unpin for BudgetSlice
impl UnsafeUnpin for BudgetSlice
impl UnwindSafe for BudgetSlice
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