pub trait Distiller: Send + Sync {
// Required method
fn distill(&self, transcript: &str) -> Result<DistilledMemory>;
}Expand description
Produces DistilledMemory from a raw conversation transcript.
Implementations must be thread-safe (Send + Sync) so a single
distiller instance can be shared across worker threads.
Required Methods§
Sourcefn distill(&self, transcript: &str) -> Result<DistilledMemory>
fn distill(&self, transcript: &str) -> Result<DistilledMemory>
Distill transcript into a summary and a list of durable facts.
§Security
Implementations transmit transcript verbatim to the underlying
model or service — no secret scrubbing is applied at this layer.
ContextForge::distill_and_save
is the only entry point that scrubs secrets (via
scrub_secrets) before a transcript reaches
a Distiller; callers invoking Distiller::distill directly are
responsible for scrubbing first.
§Errors
Returns an error if distillation fails (e.g. the backing model or service is unavailable, or its response cannot be parsed).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".