pub enum CompactionError {
ModelCall(ModelClientError),
EmptySummary,
}Variants§
ModelCall(ModelClientError)
EmptySummary
The model returned an empty summary. We refuse to fold history in that case — losing N turns of conversation for zero gain is strictly worse than the original “ran out of context” failure. Caller treats this as a no-op and lets the next turn try again.
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<ModelClientError> for CompactionError
impl From<ModelClientError> for CompactionError
Source§fn from(source: ModelClientError) -> Self
fn from(source: ModelClientError) -> 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