pub struct ScoreWeights {
pub tool_accuracy: f32,
pub loop_avoidance: f32,
pub task_completion: f32,
pub speed: f32,
}Expand description
Weights used to combine per-candidate metrics into one composite score.
Each weight should be non-negative; the service normalizes the weighted
sum by the total weight, so the four values do not need to sum to 1.0.
Fields§
§tool_accuracy: f32Weight applied to the average tool-call match score (AST-style, partial credit) across all tasks in the suite.
loop_avoidance: f32Weight applied to 1 - (loop/stagnation trigger rate).
task_completion: f32Weight applied to the fraction of tasks the agent completed (produced a final answer instead of erroring out).
speed: f32Weight applied to token-generation throughput, normalized against the fastest candidate in the same run.
Trait Implementations§
Source§impl Clone for ScoreWeights
impl Clone for ScoreWeights
Source§fn clone(&self) -> ScoreWeights
fn clone(&self) -> ScoreWeights
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 ScoreWeights
impl Debug for ScoreWeights
Source§impl Default for ScoreWeights
impl Default for ScoreWeights
Source§impl<'de> Deserialize<'de> for ScoreWeights
impl<'de> Deserialize<'de> for ScoreWeights
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 ScoreWeights
impl RefUnwindSafe for ScoreWeights
impl Send for ScoreWeights
impl Sync for ScoreWeights
impl Unpin for ScoreWeights
impl UnsafeUnpin for ScoreWeights
impl UnwindSafe for ScoreWeights
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