pub struct SessionContext {
pub id: String,
pub project: Option<String>,
pub model: Option<String>,
pub sidechain: bool,
pub startup_overhead_tokens: Option<u64>,
pub cold_start: bool,
pub peak_input_tokens: Option<u64>,
pub final_input_tokens: Option<u64>,
pub sources: Vec<SourceBreakdown>,
pub total_content_chars: u64,
pub compactions: u64,
}Expand description
Context-bloat profile for one session (each session — parent or sub-agent — is its own window, so each gets its own row; nothing is folded, nothing is double-counted).
Fields§
§id: String§project: Option<String>§model: Option<String>§sidechain: bool§startup_overhead_tokens: Option<u64>MEASURED real tokens cached on a cold-start first request (system prompt +
tool defs + memory + first user turn). None for a warm resume.
cold_start: boolTrue when a cold-start request (cache_read == 0) anchored the overhead.
peak_input_tokens: Option<u64>MEASURED: peak input + cache_read + cache_creation over requests.
final_input_tokens: Option<u64>MEASURED: the last request’s input + cache_read + cache_creation.
sources: Vec<SourceBreakdown>ESTIMATED transcript-content breakdown, sorted by chars desc.
total_content_chars: u64§compactions: u64Trait Implementations§
Source§impl Clone for SessionContext
impl Clone for SessionContext
Source§fn clone(&self) -> SessionContext
fn clone(&self) -> SessionContext
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 moreSource§impl Debug for SessionContext
impl Debug for SessionContext
Auto Trait Implementations§
impl Freeze for SessionContext
impl RefUnwindSafe for SessionContext
impl Send for SessionContext
impl Sync for SessionContext
impl Unpin for SessionContext
impl UnsafeUnpin for SessionContext
impl UnwindSafe for SessionContext
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