Skip to main content

Crate synaptic_condenser

Crate synaptic_condenser 

Source

Structs§

CondenserMiddleware
Middleware that applies a condenser to messages before each model call.
LlmSummarizingCondenser
Summarizes older messages using an LLM, keeping recent messages intact.
NoOpCondenser
A no-op condenser that returns messages unchanged.
PipelineCondenser
Chains multiple condensers in sequence.
RollingCondenser
Keeps only the most recent N messages, optionally preserving the system message.
TokenBudgetCondenser
Trims messages to fit within a token budget, keeping the most recent messages.

Traits§

Condenser
Trait for condensing (compressing) a message history.