Skip to main content

AgentBuilderCompactorExt

Trait AgentBuilderCompactorExt 

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl<M: ModelAdapter> AgentBuilderCompactorExt<M> for AgentBuilder<M>

Source§

fn compactor<C: Compactor + 'static>(self, compactor: C) -> Self

Implementors§