pub enum ContextTier {
System = 0,
User = 1,
KeyTool = 2,
Assistant = 3,
RegularTool = 4,
}Expand description
消息优先级层级(数值越小优先级越高,用于 window 选择)
System:始终保留(不计配额)User:用户输入,兜底保证最新一条必保留KeyTool:承载决策/协议/工作流状态的关键工具,Stage 2 豁免保底Assistant:帮手纯文字回复RegularTool:常规执行类工具,预算紧张时优先丢弃
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ContextTier
impl Clone for ContextTier
Source§fn clone(&self) -> ContextTier
fn clone(&self) -> ContextTier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextTier
impl Debug for ContextTier
Source§impl Ord for ContextTier
impl Ord for ContextTier
Source§fn cmp(&self, other: &ContextTier) -> Ordering
fn cmp(&self, other: &ContextTier) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ContextTier
impl PartialEq for ContextTier
Source§fn eq(&self, other: &ContextTier) -> bool
fn eq(&self, other: &ContextTier) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ContextTier
impl PartialOrd for ContextTier
impl Copy for ContextTier
impl Eq for ContextTier
impl StructuralPartialEq for ContextTier
Auto Trait Implementations§
impl Freeze for ContextTier
impl RefUnwindSafe for ContextTier
impl Send for ContextTier
impl Sync for ContextTier
impl Unpin for ContextTier
impl UnsafeUnpin for ContextTier
impl UnwindSafe for ContextTier
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.