pub struct HarnessLoop<'a> { /* private fields */ }Expand description
HarnessLoop — LLM-as-judge with feedback injection and skill extraction.
Implementations§
Source§impl<'a> HarnessLoop<'a>
impl<'a> HarnessLoop<'a>
pub fn new( runner: &'a RuntimeRunner, eval_provider: impl LLMProvider + 'static, max_attempts: usize, skill_dir: Option<PathBuf>, ) -> Self
Sourcepub fn with_verdict_fn(self, f: VerdictFn) -> Self
pub fn with_verdict_fn(self, f: VerdictFn) -> Self
I3.2 (A2/A3): plug in a host-supplied verdict closure. Returning Some(Verdict) skips the
LLM eval; returning None defers. Pure addition — not setting it is byte-equivalent to
the prior LLM-eval-only path.
pub fn run_streaming<'b>( &'b self, request: HarnessRequest, ) -> impl Stream<Item = Result<HarnessEvent>> + 'b
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for HarnessLoop<'a>
impl<'a> !UnwindSafe for HarnessLoop<'a>
impl<'a> Freeze for HarnessLoop<'a>
impl<'a> Send for HarnessLoop<'a>
impl<'a> Sync for HarnessLoop<'a>
impl<'a> Unpin for HarnessLoop<'a>
impl<'a> UnsafeUnpin for HarnessLoop<'a>
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