pub enum Metric {
EndedOnFailedCall,
ToolErrorRate,
CutShort,
Compactions,
Turns,
MalformedArgs,
}Expand description
What a candidate claims it will do.
Variants§
EndedOnFailedCall
Runs that finished with their last tool call failed.
ToolErrorRate
Share of attempted tool calls the environment refused.
CutShort
Runs the harness cut short rather than the model finishing.
Compactions
Summaries taken. Fewer is better only when the work is unchanged, which is what the work guardrail is for.
Turns
Turns spent.
MalformedArgs
Arguments the model produced that did not parse.
Implementations§
Source§impl Metric
impl Metric
Sourcepub fn of(&self, s: &RunStats) -> f64
pub fn of(&self, s: &RunStats) -> f64
The metric’s value for one run. Lower is better for every metric here, which is a deliberate constraint rather than a coincidence: a mixed polarity is the kind of thing that inverts a comparison silently, so anything worth predicting gets phrased as a cost.
Trait Implementations§
impl Copy for Metric
Source§impl<'de> Deserialize<'de> for Metric
impl<'de> Deserialize<'de> for Metric
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
impl Eq for Metric
impl StructuralPartialEq for Metric
Auto Trait Implementations§
impl Freeze for Metric
impl RefUnwindSafe for Metric
impl Send for Metric
impl Sync for Metric
impl Unpin for Metric
impl UnsafeUnpin for Metric
impl UnwindSafe for Metric
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