pub struct PhaseWeights {
pub first_msg_bonus: f64,
pub user_msg_bonus: f64,
pub tool_use_bonus: f64,
pub tool_result_bonus: f64,
pub critical_tool_bonus: f64,
pub dependency_pair_bonus: f64,
}Expand description
Weight configuration for scoring based on conversation phase.
Fields§
§first_msg_bonus: f64Bonus for the first message (user’s original request).
user_msg_bonus: f64Bonus for user messages.
tool_use_bonus: f64Bonus for tool use blocks.
tool_result_bonus: f64Bonus for tool result blocks.
critical_tool_bonus: f64Additional bonus for critical tools (write/edit/bash).
dependency_pair_bonus: f64Bonus for messages that are part of a dependency pair.
Implementations§
Source§impl PhaseWeights
impl PhaseWeights
Trait Implementations§
Source§impl Clone for PhaseWeights
impl Clone for PhaseWeights
Source§fn clone(&self) -> PhaseWeights
fn clone(&self) -> PhaseWeights
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 PhaseWeights
impl Debug for PhaseWeights
Source§impl Default for PhaseWeights
impl Default for PhaseWeights
Source§impl<'de> Deserialize<'de> for PhaseWeights
impl<'de> Deserialize<'de> for PhaseWeights
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PhaseWeights
impl RefUnwindSafe for PhaseWeights
impl Send for PhaseWeights
impl Sync for PhaseWeights
impl Unpin for PhaseWeights
impl UnsafeUnpin for PhaseWeights
impl UnwindSafe for PhaseWeights
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