pub struct Evaluator { /* private fields */ }Expand description
Replays cases against a candidate configuration derived from an agent.
Implementations§
Source§impl Evaluator
impl Evaluator
Sourcepub fn new(candidate: Agent) -> Self
pub fn new(candidate: Agent) -> Self
candidate is the configuration to test, typically
production.to_builder().model(k2).build()?.
pub fn scorer(self, s: impl Scorer + 'static) -> Self
pub fn live_tools(self, live: LiveTools) -> Self
pub fn concurrency(self, n: usize) -> Self
pub async fn run(&self, cases: &[EvalCase]) -> EvalReport
Auto Trait Implementations§
impl !RefUnwindSafe for Evaluator
impl !UnwindSafe for Evaluator
impl Freeze for Evaluator
impl Send for Evaluator
impl Sync for Evaluator
impl Unpin for Evaluator
impl UnsafeUnpin for Evaluator
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