pub struct CompactedCheckpoint { /* private fields */ }Expand description
Runtime-owned checkpoint left after compacting earlier dynamic state.
This prompt-facing context is intentionally narrower than arbitrary context projection: ordinary ledger facts, artifact payloads, and tool-result observations must not enter through this path until a checkpoint/compaction boundary has selected and compacted them.
Implementations§
Source§impl CompactedCheckpoint
impl CompactedCheckpoint
Sourcepub fn new(text: impl Into<String>) -> Result<Self, ContextError>
pub fn new(text: impl Into<String>) -> Result<Self, ContextError>
Creates validated compacted checkpoint text.
Sourcepub fn text(&self) -> &str
pub fn text(&self) -> &str
Compacted checkpoint text selected by a checkpoint/compaction boundary.
Sourcepub fn summary(&self) -> CompactedCheckpointSummary
pub fn summary(&self) -> CompactedCheckpointSummary
Payload-free summary for diagnostics. This excludes the checkpoint text.
Trait Implementations§
Source§impl Clone for CompactedCheckpoint
impl Clone for CompactedCheckpoint
Source§impl Debug for CompactedCheckpoint
impl Debug for CompactedCheckpoint
impl Eq for CompactedCheckpoint
Source§impl PartialEq for CompactedCheckpoint
impl PartialEq for CompactedCheckpoint
impl StructuralPartialEq for CompactedCheckpoint
Auto Trait Implementations§
impl Forget for CompactedCheckpoint
impl Freeze for CompactedCheckpoint
impl Move for CompactedCheckpoint
impl RefUnwindSafe for CompactedCheckpoint
impl Send for CompactedCheckpoint
impl Sync for CompactedCheckpoint
impl Unpin for CompactedCheckpoint
impl UnsafeUnpin for CompactedCheckpoint
impl UnwindSafe for CompactedCheckpoint
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.