pub struct SnapshotTurnDiagnostics {Show 17 fields
pub usage: Usage,
pub elapsed_ms: u64,
pub requested_tool_calls: u32,
pub admitted_tool_calls: u32,
pub unadmitted_tool_calls: u32,
pub failed_tool_calls: u32,
pub denied_tool_calls: u32,
pub preflight_failures: u32,
pub reused_results: u32,
pub spooled_results: u32,
pub raw_spooled_bytes: u64,
pub model_visible_output_bytes: u64,
pub suppressed_tool_previews: u32,
pub model_visible_tool_preview_budget_exhausted: bool,
pub low_signal_tool_calls: u32,
pub recovery_activations: u32,
pub in_progress_exec_sessions: Vec<CompactStr>,
}Fields§
§usage: Usage§elapsed_ms: u64§requested_tool_calls: u32§admitted_tool_calls: u32§unadmitted_tool_calls: u32§failed_tool_calls: u32§denied_tool_calls: u32§preflight_failures: u32§reused_results: u32§spooled_results: u32§raw_spooled_bytes: u64§model_visible_output_bytes: u64§suppressed_tool_previews: u32§model_visible_tool_preview_budget_exhausted: bool§low_signal_tool_calls: u32§recovery_activations: u32§in_progress_exec_sessions: Vec<CompactStr>Exec sessions still running when the turn ended (bounded, newest first). Downstream consumers use this to correlate cross-turn resume hints; empty when every command settled within the turn.
Implementations§
Source§impl SnapshotTurnDiagnostics
impl SnapshotTurnDiagnostics
Sourcepub fn with_in_progress_exec_sessions(
self,
sessions: Vec<VTCodeExecSession>,
) -> Self
pub fn with_in_progress_exec_sessions( self, sessions: Vec<VTCodeExecSession>, ) -> Self
Attach the in-progress exec session ids captured at turn end.
Kept as a builder step because the ids come from the live exec-session
registry (async), not from the synchronous turn-state counters.
Bound shares vtcode_exec_events::MAX_IN_PROGRESS_EXEC_SESSIONS with
TurnCompletedEvent so checkpoint and event streams cannot drift.
Trait Implementations§
Source§impl Clone for SnapshotTurnDiagnostics
impl Clone for SnapshotTurnDiagnostics
Source§impl Debug for SnapshotTurnDiagnostics
impl Debug for SnapshotTurnDiagnostics
Source§impl Default for SnapshotTurnDiagnostics
impl Default for SnapshotTurnDiagnostics
Source§impl<'de> Deserialize<'de> for SnapshotTurnDiagnostics
impl<'de> Deserialize<'de> for SnapshotTurnDiagnostics
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 SnapshotTurnDiagnostics
Source§impl PartialEq for SnapshotTurnDiagnostics
impl PartialEq for SnapshotTurnDiagnostics
Source§impl Serialize for SnapshotTurnDiagnostics
impl Serialize for SnapshotTurnDiagnostics
impl StructuralPartialEq for SnapshotTurnDiagnostics
Auto Trait Implementations§
impl Forget for SnapshotTurnDiagnostics
impl Freeze for SnapshotTurnDiagnostics
impl Move for SnapshotTurnDiagnostics
impl RefUnwindSafe for SnapshotTurnDiagnostics
impl Send for SnapshotTurnDiagnostics
impl Sync for SnapshotTurnDiagnostics
impl Unpin for SnapshotTurnDiagnostics
impl UnsafeUnpin for SnapshotTurnDiagnostics
impl UnwindSafe for SnapshotTurnDiagnostics
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
impl<T> CacheValue for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
Source§type NoneType = T
type NoneType = T
The type of the none-equivalent value that
NoneValue::null_value produces.Source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.