Skip to main content

Tally

Struct Tally 

Source
pub struct Tally {
Show 16 fields pub skipped: usize, pub asked: usize, pub cost: f64, pub rounds: usize, pub questions: usize, pub block_chars: usize, pub free: usize, pub free_lessons: usize, pub free_chars: usize, pub judge_calls: usize, pub judged: usize, pub judge_resolved: usize, pub judge_chars: usize, pub live_checks: usize, pub live_cost: f64, pub live_lessons: usize,
}
Expand description

What the gate did in a store’s session state (borg status): turn ends skipped at 0 tokens, turn ends that asked the model, and the model’s cost as logged by #borg-predict-cost (USD for Claude, tokens for codex:<model>). Live checks (live.rs) log #borg-predict-cost too, and a live cost line each: they are counted apart (live_checks, live_cost), not as turn ends.

Fields§

§skipped: usize§asked: usize§cost: f64§rounds: usize

R3b (main.rs log_cost): Stop blocks (extra rounds), the questions in them and their size; free deliveries (context on a hook that forces no round), their lessons and size.

§questions: usize§block_chars: usize§free: usize§free_lessons: usize§free_chars: usize§judge_calls: usize

R1 (main.rs record_verdicts): model calls that also judged pending lessons, the lessons judged, those that got a final verdict, and the characters the judging added to those prompts.

§judged: usize§judge_resolved: usize§judge_chars: usize§live_checks: usize

Live mode (main.rs live_check): model calls during the turn, their cost and lessons shown.

§live_cost: f64§live_lessons: usize

Trait Implementations§

Source§

impl Debug for Tally

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Tally

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Tally

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Tally

Auto Trait Implementations§

§

impl Freeze for Tally

§

impl RefUnwindSafe for Tally

§

impl Send for Tally

§

impl Sync for Tally

§

impl Unpin for Tally

§

impl UnsafeUnpin for Tally

§

impl UnwindSafe for Tally

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.