pub struct GeminiTranscript { /* private fields */ }Expand description
A Gemini CLI session: the main conversation plus every subagent file
under chats/<sessionId>/, folded into one summary. A subagent may run a
different model from its parent; each message is priced by the model it
names.
Implementations§
Source§impl GeminiTranscript
impl GeminiTranscript
pub fn new(path: impl Into<PathBuf>) -> Self
Sourcepub fn with_prices(self, prices: &'static Table) -> Self
pub fn with_prices(self, prices: &'static Table) -> Self
See ClaudeTranscript::with_prices.
Sourcepub fn with_spans(self, retention: SpanRetention) -> Self
pub fn with_spans(self, retention: SpanRetention) -> Self
Keep every span instead of the newest MAX_SPANS. See SpanRetention.
Trait Implementations§
Source§impl SessionTracker for GeminiTranscript
impl SessionTracker for GeminiTranscript
Source§fn refresh(&mut self) -> Result<bool>
fn refresh(&mut self) -> Result<bool>
Ingest whatever was appended since the last call. Returns true when
there is still unread data (the byte budget was exhausted).
fn summary(&self) -> &SessionSummary
fn path(&self) -> &Path
Source§fn refresh_all(&mut self) -> Result<()>
fn refresh_all(&mut self) -> Result<()>
Ingest the whole file, however many refreshes that takes. For a
one-shot read such as an export; the live collector spreads a large
transcript over several ticks instead.
Auto Trait Implementations§
impl Freeze for GeminiTranscript
impl RefUnwindSafe for GeminiTranscript
impl Send for GeminiTranscript
impl Sync for GeminiTranscript
impl Unpin for GeminiTranscript
impl UnsafeUnpin for GeminiTranscript
impl UnwindSafe for GeminiTranscript
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