pub struct SessionCompactionInput {
pub session_id: AgentSessionId,
pub source: SessionSourceRange,
pub groups: Vec<SessionCompactionGroup>,
pub focus_messages: Vec<ModelMessage>,
}Fields§
§session_id: AgentSessionId§source: SessionSourceRange§groups: Vec<SessionCompactionGroup>Original groups reached through source, expanding earlier compaction
references. Their sequences can precede source, but never follow it.
A Tool call/result exchange remains one atomic group. Summarizers must
use these originals rather than repeatedly summarizing lossy summaries.
focus_messages: Vec<ModelMessage>Required groups outside source are relevance hints and are never
copied automatically into the summary.
Auto Trait Implementations§
impl Freeze for SessionCompactionInput
impl RefUnwindSafe for SessionCompactionInput
impl Send for SessionCompactionInput
impl Sync for SessionCompactionInput
impl Unpin for SessionCompactionInput
impl UnsafeUnpin for SessionCompactionInput
impl UnwindSafe for SessionCompactionInput
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
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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.