pub struct CompactDirective {
pub created_unix: u64,
pub keep_recent_turns: usize,
pub summary: String,
pub boundary_fingerprint: Option<String>,
pub original_handle: Option<String>,
}Fields§
§created_unix: u64§keep_recent_turns: usizeHow many trailing plain-user turns stay verbatim.
summary: StringThe agent-authored summary that replaces the compacted span.
boundary_fingerprint: Option<String>Fingerprint of the first message AFTER the cut, pinned on first apply so the replaced prefix stays byte-identical while the conversation grows (provider prompt caches keep hitting).
original_handle: Option<String>CCR handle of the verbatim replaced span (defense in depth — restore itself only needs the directive cleared).
Trait Implementations§
Source§impl Clone for CompactDirective
impl Clone for CompactDirective
Source§impl Debug for CompactDirective
impl Debug for CompactDirective
Source§impl<'de> Deserialize<'de> for CompactDirective
impl<'de> Deserialize<'de> for CompactDirective
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for CompactDirective
impl Freeze for CompactDirective
impl Move for CompactDirective
impl RefUnwindSafe for CompactDirective
impl Send for CompactDirective
impl Sync for CompactDirective
impl Unpin for CompactDirective
impl UnsafeUnpin for CompactDirective
impl UnwindSafe for CompactDirective
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more