pub trait AgentBuilderCompactorExt<M: ModelAdapter>: Sized {
// Required method
fn compactor<C: Compactor + 'static>(self, compactor: C) -> Self;
}Expand description
Extension trait that adds compactor to
AgentBuilder, wrapping any Compactor in a CompactorMutator
and registering it via AgentBuilder::mutator.
Required Methods§
Sourcefn compactor<C: Compactor + 'static>(self, compactor: C) -> Self
fn compactor<C: Compactor + 'static>(self, compactor: C) -> Self
Register compactor as a LoopMutator.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.