pub struct ForecastInputs {
pub cost_so_far_cents: u64,
pub tool_calls_so_far: u32,
pub wall_time_ms_so_far: u64,
pub steps_completed: u32,
pub step_cost_cents: u64,
pub prior_ewma_step_cost_cents: Option<u64>,
}Expand description
Inputs gathered just after a step completes.
Fields§
§cost_so_far_cents: u64Cumulative cost spent so far on the run (in cents).
tool_calls_so_far: u32Number of tool calls consumed so far.
wall_time_ms_so_far: u64Wall-time elapsed since the run started (in milliseconds).
steps_completed: u32Number of completed steps (used as the divisor for per-step EWMA).
step_cost_cents: u64Cost in cents incurred by the step that just completed.
prior_ewma_step_cost_cents: Option<u64>Carry-over of the per-step EWMA in cents. None when this is the
first step (the EWMA is then seeded from step_cost_cents).
Trait Implementations§
Source§impl Clone for ForecastInputs
impl Clone for ForecastInputs
Source§fn clone(&self) -> ForecastInputs
fn clone(&self) -> ForecastInputs
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 ForecastInputs
impl RefUnwindSafe for ForecastInputs
impl Send for ForecastInputs
impl Sync for ForecastInputs
impl Unpin for ForecastInputs
impl UnsafeUnpin for ForecastInputs
impl UnwindSafe for ForecastInputs
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