pub struct CompactionOutcome {
pub summary_text: String,
pub summary_provider: String,
pub summary_model: String,
pub local_only: bool,
pub prompt_stack_digest: String,
pub included_classes: Vec<ContentClass>,
pub excluded_classes: Vec<ContentClass>,
pub redaction_policy: RedactionPolicy,
}Expand description
Typed result of a summarization call (spec §9.3): the summary text plus the provenance metadata the transition persists.
Fields§
§summary_text: String§summary_provider: String§summary_model: String§local_only: boolTrue means no provider produced this summary. Kept independently from provider/model labels so capture never fabricates remote provenance.
prompt_stack_digest: String§included_classes: Vec<ContentClass>§excluded_classes: Vec<ContentClass>§redaction_policy: RedactionPolicyImplementations§
Source§impl CompactionOutcome
impl CompactionOutcome
Sourcepub fn new(
summary_text: String,
summary_model: &str,
prompt_parts: &[&str],
) -> CompactionOutcome
pub fn new( summary_text: String, summary_model: &str, prompt_parts: &[&str], ) -> CompactionOutcome
Build an outcome from the summary text, the summarizer model, and
the ordered prompt-stack parts it ran under. Provider label follows
the model’s resolved route; the default disclosure set matches what
compact_conversation serializes today (every class except event
data, truncation-only redaction).
Sourcepub fn for_prompt_stack(
summary_text: String,
summary_model: &str,
base_prompt: &'static str,
custom_instructions: Option<&str>,
) -> CompactionOutcome
pub fn for_prompt_stack( summary_text: String, summary_model: &str, base_prompt: &'static str, custom_instructions: Option<&str>, ) -> CompactionOutcome
Self::new over the compaction prompt stack that ACTUALLY ran:
the compaction system prompt, the instruction template selected by
the rendering (initial or UPDATE), and the optional custom focus.
Trait Implementations§
Source§impl Clone for CompactionOutcome
impl Clone for CompactionOutcome
Source§fn clone(&self) -> CompactionOutcome
fn clone(&self) -> CompactionOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompactionOutcome
impl Debug for CompactionOutcome
Source§impl PartialEq for CompactionOutcome
impl PartialEq for CompactionOutcome
impl StructuralPartialEq for CompactionOutcome
Auto Trait Implementations§
impl Freeze for CompactionOutcome
impl RefUnwindSafe for CompactionOutcome
impl Send for CompactionOutcome
impl Sync for CompactionOutcome
impl Unpin for CompactionOutcome
impl UnsafeUnpin for CompactionOutcome
impl UnwindSafe for CompactionOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> ⓘ
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> ⓘ
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