pub struct SessionReader { /* private fields */ }Expand description
Reads session data from JSONL files
Implementations§
Source§impl SessionReader
impl SessionReader
Sourcepub fn new(agents_dir: PathBuf, projects_dir: Option<PathBuf>) -> Self
pub fn new(agents_dir: PathBuf, projects_dir: Option<PathBuf>) -> Self
Create a new SessionReader
§Arguments
agents_dir- Path to agents directory (contains/sessions/*.jsonl) projects_dir- Optional path to projects directory
Sourcepub fn list(&self, query: &SessionQuery) -> Result<Vec<SessionSummary>>
pub fn list(&self, query: &SessionQuery) -> Result<Vec<SessionSummary>>
List sessions matching the query
Auto Trait Implementations§
impl Freeze for SessionReader
impl RefUnwindSafe for SessionReader
impl Send for SessionReader
impl Sync for SessionReader
impl Unpin for SessionReader
impl UnsafeUnpin for SessionReader
impl UnwindSafe for SessionReader
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