pub struct SummaryContext {
pub kind_label: Option<String>,
pub note: Option<String>,
pub max_words: Option<u32>,
}Expand description
Context the caller can pass alongside the chunks to bias the prompt the summarizer assembles.
Provider-agnostic: the field is wire-shape neutral so the same value
flows through AnthropicSummarizer, OllamaSummarizer, or any
future implementation. The Anthropic/Ollama impls render this into a
system prompt.
Fields§
§kind_label: Option<String>Human-readable label for the kind of summary being produced —
e.g. "session", "day 2026-05-23", "week of 2026-05-18 for rule pii_redact". Inserted into the prompt so the model picks
up the unit of summarization.
note: Option<String>Optional caller-supplied note (“user closed the chat mid-conversation”, “first daily rollup after deploy”). Appended verbatim after the chunks.
max_words: Option<u32>Optional cap on the output length, in words. The default impls pass this through as a “Maximum N words” instruction; the caller is responsible for any post-hoc truncation.
Trait Implementations§
Source§impl Clone for SummaryContext
impl Clone for SummaryContext
Source§fn clone(&self) -> SummaryContext
fn clone(&self) -> SummaryContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more