pub enum Kpi {
Tokens,
CacheTokens,
Cost,
Prompts,
ToolCalls,
StopReason,
DurationMs,
Sidechain,
}Expand description
A measurable a report might want to show. An adapter that does not list a KPI cannot fill it in from its logs — the column is blank because the data does not exist, not because the number is zero.
Variants§
Tokens
input_tok / output_tok.
CacheTokens
cache_read_tok / cache_write_tok.
Cost
cost_est, derived from configured pricing.
Prompts
Prompt text and text_hash.
ToolCalls
tool_calls.
StopReason
stop_reason.
DurationMs
Per-turn wall-clock time.
Sidechain
Whether an event came from a subagent transcript.
Implementations§
Trait Implementations§
impl Copy for Kpi
impl Eq for Kpi
Source§impl Ord for Kpi
impl Ord for Kpi
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Kpi
impl PartialOrd for Kpi
impl StructuralPartialEq for Kpi
Auto Trait Implementations§
impl Freeze for Kpi
impl RefUnwindSafe for Kpi
impl Send for Kpi
impl Sync for Kpi
impl Unpin for Kpi
impl UnsafeUnpin for Kpi
impl UnwindSafe for Kpi
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.