pub struct BudgetSummary {
pub token_budget: Option<u64>,
pub tokens_used: Option<u64>,
pub steps_taken: Option<u32>,
pub max_steps: Option<u32>,
pub duration_ms: Option<u64>,
}Expand description
Scalar budget/spend facts for a run.
Every field is optional: owners report only what they actually track, and adapters must not invent values for the rest.
Fields§
§token_budget: Option<u64>Token ceiling configured for the run, if any.
tokens_used: Option<u64>Tokens consumed so far, when the owner tracks spend.
steps_taken: Option<u32>Steps taken so far, when the owner counts steps.
max_steps: Option<u32>Step ceiling configured for the run, if any.
duration_ms: Option<u64>Wall-clock duration in milliseconds, when known.
Trait Implementations§
Source§impl Clone for BudgetSummary
impl Clone for BudgetSummary
Source§fn clone(&self) -> BudgetSummary
fn clone(&self) -> BudgetSummary
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 BudgetSummary
Source§impl Debug for BudgetSummary
impl Debug for BudgetSummary
Source§impl Default for BudgetSummary
impl Default for BudgetSummary
Source§fn default() -> BudgetSummary
fn default() -> BudgetSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BudgetSummary
impl<'de> Deserialize<'de> for BudgetSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BudgetSummary
Source§impl PartialEq for BudgetSummary
impl PartialEq for BudgetSummary
Source§impl Serialize for BudgetSummary
impl Serialize for BudgetSummary
impl StructuralPartialEq for BudgetSummary
Auto Trait Implementations§
impl Freeze for BudgetSummary
impl RefUnwindSafe for BudgetSummary
impl Send for BudgetSummary
impl Sync for BudgetSummary
impl Unpin for BudgetSummary
impl UnsafeUnpin for BudgetSummary
impl UnwindSafe for BudgetSummary
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