pub struct PriorityFactors {
pub has_decision: bool,
pub has_error: bool,
pub has_tool_use: bool,
pub has_code: bool,
pub has_keywords: bool,
pub is_user_message: bool,
pub position_weight: f32,
pub length_factor: f32,
pub entity_count: usize,
}Expand description
Factors that contribute to message priority.
Fields§
§has_decision: boolMessage contains decisions or choices
has_error: boolMessage contains errors or failures
has_tool_use: boolMessage contains tool calls
has_code: boolMessage contains code blocks
has_keywords: boolMessage contains important keywords
is_user_message: boolMessage is from user (usually higher priority)
position_weight: f32Message position in conversation (normalized 0-1)
length_factor: f32Message length factor
entity_count: usizeNumber of important entities mentioned (files, functions, etc.)
Trait Implementations§
Source§impl Clone for PriorityFactors
impl Clone for PriorityFactors
Source§fn clone(&self) -> PriorityFactors
fn clone(&self) -> PriorityFactors
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 PriorityFactors
impl Debug for PriorityFactors
Source§impl Default for PriorityFactors
impl Default for PriorityFactors
Source§fn default() -> PriorityFactors
fn default() -> PriorityFactors
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PriorityFactors
impl RefUnwindSafe for PriorityFactors
impl Send for PriorityFactors
impl Sync for PriorityFactors
impl Unpin for PriorityFactors
impl UnsafeUnpin for PriorityFactors
impl UnwindSafe for PriorityFactors
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