pub struct SessionDetail {
pub id: String,
pub project: Option<String>,
pub model: Option<String>,
pub started_at: Option<Timestamp>,
pub ended_at: Option<Timestamp>,
pub rollup: Rollup,
pub sub_agents: u64,
pub sub_agent_tokens: u64,
pub turns: Vec<Turn>,
pub context: ContextReport,
}Expand description
Everything the drill-down needs about one session row: the same folded,
sub-agent-inclusive accounting as a summary row, plus its turn list and its
context-bloat breakdown.
Fields§
§id: String§project: Option<String>§model: Option<String>§started_at: Option<Timestamp>§ended_at: Option<Timestamp>§rollup: RollupToken + cost rollup over all turns (parent + folded sub-agents), identical
to this session’s row in the summary.
sub_agents: u64Sub-agents attributed to this session (stronger of spawn calls / folded
child transcripts), as in super::aggregate.
sub_agent_tokens: u64Known tokens contributed by folded sub-agent transcripts.
turns: Vec<Turn>Deduplicated requests, oldest first (undated last), sub-agent turns marked.
context: ContextReportContext-bloat breakdown scoped to this session’s files (parent + children),
reusing super::context::profile_refs.
Implementations§
Source§impl SessionDetail
impl SessionDetail
Sourcepub fn total_tokens(&self) -> u64
pub fn total_tokens(&self) -> u64
Total deduplicated tokens for the row (sort key shared with summary).
Trait Implementations§
Source§impl Clone for SessionDetail
impl Clone for SessionDetail
Source§fn clone(&self) -> SessionDetail
fn clone(&self) -> SessionDetail
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 SessionDetail
impl Debug for SessionDetail
Auto Trait Implementations§
impl Freeze for SessionDetail
impl RefUnwindSafe for SessionDetail
impl Send for SessionDetail
impl Sync for SessionDetail
impl Unpin for SessionDetail
impl UnsafeUnpin for SessionDetail
impl UnwindSafe for SessionDetail
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