pub struct CompactionRequest {
pub fold: usize,
pub system: String,
pub input: String,
pub output_schema: Value,
pub version: u64,
}Expand description
A prepared compaction: what to summarize and how.
Fields§
§fold: usizeThe number of leading messages that will be folded.
system: StringThe summarizer prompt (system).
input: StringThe summarizer input (user).
output_schema: ValueThe summarizer’s output schema.
version: u64The context version this plan was made against. The model call happens
between planning and applying, so apply_compaction refuses if the
context has moved on in the meantime — folding by a stale message count
would drop messages the plan never summarized.
Trait Implementations§
Source§impl Clone for CompactionRequest
impl Clone for CompactionRequest
Source§fn clone(&self) -> CompactionRequest
fn clone(&self) -> CompactionRequest
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 moreAuto Trait Implementations§
impl Freeze for CompactionRequest
impl RefUnwindSafe for CompactionRequest
impl Send for CompactionRequest
impl Sync for CompactionRequest
impl Unpin for CompactionRequest
impl UnsafeUnpin for CompactionRequest
impl UnwindSafe for CompactionRequest
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