pub enum InferenceKind {
Stage,
Compaction,
Title,
Routing,
}Expand description
Which provider call a RunRecord::InferenceUsage belongs to.
A run bills for more than its stage turns, and the three auxiliary kinds are invisible in every other surface: they do not appear in the stage ledger and nothing else names them. Recording which kind spent the tokens is what turns a total into an explanation - “this run cost double what its stages did because its edges compact” is a sentence the journal can now support.
Variants§
Stage
An ordinary stage turn: the agent thinking or calling tools. The default so a journal written before this field existed reads back as stage work, which is what every record in one is.
Compaction
A region-summarizing call, from memory pressure or an edge transform.
Title
The one-off call that names the run.
Routing
A call asking the model which stage to move to next.
Implementations§
Source§impl InferenceKind
impl InferenceKind
Trait Implementations§
Source§impl Clone for InferenceKind
impl Clone for InferenceKind
Source§fn clone(&self) -> InferenceKind
fn clone(&self) -> InferenceKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for InferenceKind
Source§impl Debug for InferenceKind
impl Debug for InferenceKind
Source§impl Default for InferenceKind
impl Default for InferenceKind
Source§fn default() -> InferenceKind
fn default() -> InferenceKind
Source§impl<'de> Deserialize<'de> for InferenceKind
impl<'de> Deserialize<'de> for InferenceKind
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>,
impl Eq for InferenceKind
Source§impl PartialEq for InferenceKind
impl PartialEq for InferenceKind
Source§impl Serialize for InferenceKind
impl Serialize for InferenceKind
impl StructuralPartialEq for InferenceKind
Auto Trait Implementations§
impl Freeze for InferenceKind
impl RefUnwindSafe for InferenceKind
impl Send for InferenceKind
impl Sync for InferenceKind
impl Unpin for InferenceKind
impl UnsafeUnpin for InferenceKind
impl UnwindSafe for InferenceKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.