pub enum CompactionError {
LlmFailed(AgentError),
EmptySummary,
EstimationFailed(String),
}Expand description
Errors that can occur during compaction.
Variants§
LlmFailed(AgentError)
The LLM call for summarization failed.
EmptySummary
The LLM returned an empty summary.
EstimationFailed(String)
Failed to estimate token count (serialization error).
Trait Implementations§
Source§impl Debug for CompactionError
impl Debug for CompactionError
Source§impl Display for CompactionError
impl Display for CompactionError
Source§impl Error for CompactionError
impl Error for CompactionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<AgentError> for CompactionError
impl From<AgentError> for CompactionError
Source§fn from(source: AgentError) -> Self
fn from(source: AgentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CompactionError
impl RefUnwindSafe for CompactionError
impl Send for CompactionError
impl Sync for CompactionError
impl Unpin for CompactionError
impl UnsafeUnpin for CompactionError
impl UnwindSafe for CompactionError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more