pub struct CompactionRecord {
pub schema_version: u32,
pub source_session: String,
pub source_message_count: usize,
pub source_range_digest: String,
pub summary_provider: String,
pub summary_model: String,
pub created_at: DateTime<Utc>,
pub prompt_stack_digest: String,
pub included_classes: Vec<ContentClass>,
pub excluded_classes: Vec<ContentClass>,
pub redaction_policy: RedactionPolicy,
pub prior_system_prompt: Option<String>,
}Expand description
Typed provenance persisted with every compaction summary (spec §9.3).
Fields§
§schema_version: u32COMPACTION_SUMMARY_SCHEMA_VERSION at write time.
source_session: StringSession the summarized range came from.
source_message_count: usizeNumber of messages in the summarized range.
source_range_digest: StringSHA-256 digest binding the exact summarized message range.
summary_provider: StringProvider that produced the summary.
summary_model: StringModel that produced the summary.
created_at: DateTime<Utc>When the summary was produced.
prompt_stack_digest: StringSHA-256 digest of the prompt stack the summarizer ran under.
included_classes: Vec<ContentClass>Content classes included in the summarization input.
excluded_classes: Vec<ContentClass>Content classes excluded from the summarization input.
redaction_policy: RedactionPolicyRedaction posture applied to the source range.
prior_system_prompt: Option<String>The predecessor’s system prompt as typed metadata (spec §9.3: never embedded as a plain user message).
Trait Implementations§
Source§impl Clone for CompactionRecord
impl Clone for CompactionRecord
Source§fn clone(&self) -> CompactionRecord
fn clone(&self) -> CompactionRecord
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 CompactionRecord
impl Debug for CompactionRecord
Source§impl<'de> Deserialize<'de> for CompactionRecord
impl<'de> Deserialize<'de> for CompactionRecord
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
Source§impl PartialEq for CompactionRecord
impl PartialEq for CompactionRecord
Source§impl Serialize for CompactionRecord
impl Serialize for CompactionRecord
impl StructuralPartialEq for CompactionRecord
Auto Trait Implementations§
impl Freeze for CompactionRecord
impl RefUnwindSafe for CompactionRecord
impl Send for CompactionRecord
impl Sync for CompactionRecord
impl Unpin for CompactionRecord
impl UnsafeUnpin for CompactionRecord
impl UnwindSafe for CompactionRecord
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