pub struct TranscriptCandidate {
pub seq: u64,
pub session_id: String,
pub label: String,
pub bytes: usize,
pub artifact_handle: Option<String>,
pub ui_only: bool,
pub streaming: bool,
}Expand description
A transcript entry considered for selection.
Carries the stable sequence number used for ids and eviction ordering, the kind label for inclusion/omission rules, and an estimated byte size so the policy stays free of the rendering layer.
Fields§
§seq: u64Monotonic sequence number within the session (0-based).
session_id: StringSession id scoping this entry’s item id.
label: StringShort label (e.g. "user", "assistant", "tool:read_file").
bytes: usizeEstimated UTF-8 byte size of the rendered entry content.
artifact_handle: Option<String>Stable handle for bounded redacted recovery of this transcript item.
ui_only: boolWhether the entry is UI-only (status/error rows) or live-only (streaming).
streaming: boolWhether the entry is still streaming and not yet settled.
Implementations§
Trait Implementations§
Source§impl Clone for TranscriptCandidate
impl Clone for TranscriptCandidate
Source§fn clone(&self) -> TranscriptCandidate
fn clone(&self) -> TranscriptCandidate
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 TranscriptCandidate
impl Debug for TranscriptCandidate
impl Eq for TranscriptCandidate
Source§impl PartialEq for TranscriptCandidate
impl PartialEq for TranscriptCandidate
impl StructuralPartialEq for TranscriptCandidate
Auto Trait Implementations§
impl Freeze for TranscriptCandidate
impl RefUnwindSafe for TranscriptCandidate
impl Send for TranscriptCandidate
impl Sync for TranscriptCandidate
impl Unpin for TranscriptCandidate
impl UnsafeUnpin for TranscriptCandidate
impl UnwindSafe for TranscriptCandidate
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