pub struct SessionSummary {
pub id: String,
pub path: PathBuf,
pub cwd: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub last_response_at: Option<String>,
pub user_turns: usize,
pub assistant_turns: usize,
pub rounds: usize,
pub first_user_message: Option<String>,
pub source: SessionSummarySource,
pub sort_hint_ms: Option<u64>,
}Fields§
§id: String§path: PathBuf§cwd: Option<String>§created_at: Option<String>§updated_at: Option<String>§last_response_at: Option<String>RFC3339 timestamp string for the most recent assistant message, if available.
user_turns: usizeNumber of user turns (from event_msg user_message).
assistant_turns: usizeNumber of assistant messages (from response_item message role=assistant).
rounds: usizeConversation rounds (best-effort; currently min(user_turns, assistant_turns)).
first_user_message: Option<String>§source: SessionSummarySource§sort_hint_ms: Option<u64>Trait Implementations§
Source§impl Clone for SessionSummary
impl Clone for SessionSummary
Source§fn clone(&self) -> SessionSummary
fn clone(&self) -> SessionSummary
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 moreAuto Trait Implementations§
impl Freeze for SessionSummary
impl RefUnwindSafe for SessionSummary
impl Send for SessionSummary
impl Sync for SessionSummary
impl Unpin for SessionSummary
impl UnsafeUnpin for SessionSummary
impl UnwindSafe for SessionSummary
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