pub struct Session {
pub id: String,
pub agent: String,
pub project: Option<String>,
pub model: Option<String>,
pub parent_session: Option<String>,
pub started_at: Option<Timestamp>,
pub ended_at: Option<Timestamp>,
pub events: Vec<Event>,
pub sub_agents: Vec<SubAgent>,
pub skipped_lines: u64,
}Expand description
One normalized agent conversation/run.
Fields§
§id: String§agent: String§project: Option<String>§model: Option<String>Most frequently seen (non-synthetic) assistant model, if any.
parent_session: Option<String>For sub-agent transcripts (e.g. Claude Code’s
<project>/<parent-session-uuid>/subagents/agent-*.jsonl): the parent
session id this spend is attributed to (CLAUDE.md §8.3).
started_at: Option<Timestamp>§ended_at: Option<Timestamp>§events: Vec<Event>§sub_agents: Vec<SubAgent>Sub-agents spawned BY this session (Task/Agent tool calls).
skipped_lines: u64Lines that failed to parse or had an unrecognized shape. Skipped leniently, surfaced so format drift is visible instead of silent.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Session
impl<'de> Deserialize<'de> for Session
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 StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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