pub struct ReliabilityConfig {
pub borderline_min: f64,
pub borderline_max: f64,
pub rerun_strategy: RerunStrategy,
pub max_extra_calls_per_test: u32,
pub max_extra_calls_per_run: u32,
pub tie_break: TieBreakPolicy,
pub blind_labeling: bool,
pub order_randomized: bool,
pub hijack_defense: bool,
}Fields§
§borderline_min: f64Minimum score for “borderline” (inclusive). Default 0.4.
borderline_max: f64Maximum score for “borderline” (inclusive). Default 0.6.
rerun_strategy: RerunStrategySequential rerun strategy.
max_extra_calls_per_test: u32Max extra judge calls allowed per test. High-cost protection.
max_extra_calls_per_run: u32Total budget for extra judge calls across the whole suite run.
tie_break: TieBreakPolicyPolicy for final Abstain results.
blind_labeling: boolUse blind labeling (X/Y) in prompts to mitigate bias.
order_randomized: boolRandomize candidate order (with seed) in prompts.
hijack_defense: boolHijack defense: wrap candidates in delimiters and add guard instructions.
Implementations§
Source§impl ReliabilityConfig
impl ReliabilityConfig
Sourcepub fn assess(&self, score: f64) -> VerdictStatus
pub fn assess(&self, score: f64) -> VerdictStatus
Maps a raw probability/score [0.0, 1.0] to a verdict status based on borderline band.
Sourcepub fn triggers_rerun(&self, score: f64, iteration: u32) -> bool
pub fn triggers_rerun(&self, score: f64, iteration: u32) -> bool
Determines if a re-evaluation is needed based on current results.
Trait Implementations§
Source§impl Clone for ReliabilityConfig
impl Clone for ReliabilityConfig
Source§fn clone(&self) -> ReliabilityConfig
fn clone(&self) -> ReliabilityConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ReliabilityConfig
impl Debug for ReliabilityConfig
Source§impl Default for ReliabilityConfig
impl Default for ReliabilityConfig
Source§impl<'de> Deserialize<'de> for ReliabilityConfig
impl<'de> Deserialize<'de> for ReliabilityConfig
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
Source§impl PartialEq for ReliabilityConfig
impl PartialEq for ReliabilityConfig
Source§impl Serialize for ReliabilityConfig
impl Serialize for ReliabilityConfig
impl StructuralPartialEq for ReliabilityConfig
Auto Trait Implementations§
impl Freeze for ReliabilityConfig
impl RefUnwindSafe for ReliabilityConfig
impl Send for ReliabilityConfig
impl Sync for ReliabilityConfig
impl Unpin for ReliabilityConfig
impl UnsafeUnpin for ReliabilityConfig
impl UnwindSafe for ReliabilityConfig
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more