pub enum RetrievalWindowPlanError {
InvalidRecentUserTurnFloor,
InvalidTargetUsagePercent {
target_usage_percent: u8,
},
InvalidTokenBudget {
context_window_tokens: u32,
max_request_input_tokens: u32,
},
TokenAccountingOverflow,
MissingProviderMessageTokenEstimate {
message_id: String,
},
NoActiveMessages,
TargetAlreadySatisfied {
active_tokens: u32,
target_tokens: u32,
},
NothingToArchive {
active_tokens: u32,
target_tokens: u32,
protected_active_tokens: u32,
incomplete_protocol_group_count: usize,
},
ProtectedContentExceedsTarget {
projected_tokens: u32,
target_tokens: u32,
protected_active_tokens: u32,
fixed_prompt_tokens: u32,
incomplete_protocol_group_count: usize,
},
}Expand description
Structured reason why retrieval-window planning could not produce a plan.
Variants§
InvalidRecentUserTurnFloor
InvalidTargetUsagePercent
InvalidTokenBudget
TokenAccountingOverflow
MissingProviderMessageTokenEstimate
NoActiveMessages
TargetAlreadySatisfied
NothingToArchive
Fields
ProtectedContentExceedsTarget
Trait Implementations§
Source§impl Clone for RetrievalWindowPlanError
impl Clone for RetrievalWindowPlanError
Source§impl Debug for RetrievalWindowPlanError
impl Debug for RetrievalWindowPlanError
Source§impl Display for RetrievalWindowPlanError
impl Display for RetrievalWindowPlanError
impl Eq for RetrievalWindowPlanError
Source§impl Error for RetrievalWindowPlanError
impl Error for RetrievalWindowPlanError
1.30.0 · 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 PartialEq for RetrievalWindowPlanError
impl PartialEq for RetrievalWindowPlanError
impl StructuralPartialEq for RetrievalWindowPlanError
Auto Trait Implementations§
impl Freeze for RetrievalWindowPlanError
impl RefUnwindSafe for RetrievalWindowPlanError
impl Send for RetrievalWindowPlanError
impl Sync for RetrievalWindowPlanError
impl Unpin for RetrievalWindowPlanError
impl UnsafeUnpin for RetrievalWindowPlanError
impl UnwindSafe for RetrievalWindowPlanError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.