pub enum SummarizerError {
Provider(String),
NoInput,
InvalidConfig(String),
Internal(String),
}Expand description
Errors produced by a Summarizer.
Distinct from crate::MemoryError so the trait can be used in
contexts that don’t otherwise touch the memory crate’s error type.
The SQLite provider wraps these into MemoryError::Provider at the
call site.
Variants§
Provider(String)
The summarizer’s LLM client returned an error (rate limit, auth, server error, malformed response).
NoInput
The summarizer received no chunks to summarize and refuses to fabricate a summary out of thin air. Callers should treat this as “no summary applicable” rather than retrying.
InvalidConfig(String)
The summarizer was configured incorrectly (missing API key, model not available, etc.). Surfaced at construction time when possible; at call time only if discovery is lazy.
Internal(String)
An unexpected internal error. Indicates a bug.
Trait Implementations§
Source§impl Debug for SummarizerError
impl Debug for SummarizerError
Source§impl Display for SummarizerError
impl Display for SummarizerError
Source§impl Error for SummarizerError
impl Error for SummarizerError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()