pub struct EvalLoopHarness<'a, G: QualityGate> { /* private fields */ }👎Deprecated since 0.2.23:
Use HarnessLoop with with_verdict_fn for host-defined judgment. EvalLoopHarness.stream() does not honor gate.
Expand description
EvalLoopHarness — retry until QualityGate passes.
I3.4 (A1): prefer HarnessLoop with a verdict_fn for host-defined judgment.
EvalLoopHarness::stream does NOT honor the gate (only run does); HarnessLoop runs the
eval loop uniformly across both surfaces.
Implementations§
Source§impl<'a, G: QualityGate> EvalLoopHarness<'a, G>
impl<'a, G: QualityGate> EvalLoopHarness<'a, G>
pub fn new(runner: &'a RuntimeRunner, gate: G, max_attempts: usize) -> Self
pub async fn run(&self, request: HarnessRequest) -> Result<HarnessOutcome>
Auto Trait Implementations§
impl<'a, G> !RefUnwindSafe for EvalLoopHarness<'a, G>
impl<'a, G> !UnwindSafe for EvalLoopHarness<'a, G>
impl<'a, G> Freeze for EvalLoopHarness<'a, G>where
G: Freeze,
impl<'a, G> Send for EvalLoopHarness<'a, G>
impl<'a, G> Sync for EvalLoopHarness<'a, G>
impl<'a, G> Unpin for EvalLoopHarness<'a, G>where
G: Unpin,
impl<'a, G> UnsafeUnpin for EvalLoopHarness<'a, G>where
G: UnsafeUnpin,
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