pub struct ResponseMatcher;Expand description
Evaluator that scores the final response text against expected criteria.
Returns None when the case has no expected_response defined.
Trait Implementations§
Source§impl Evaluator for ResponseMatcher
impl Evaluator for ResponseMatcher
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Unique name for this evaluator, used in
EvalCase::evaluators filters.Source§fn evaluate(
&self,
case: &EvalCase,
invocation: &Invocation,
) -> Option<EvalMetricResult>
fn evaluate( &self, case: &EvalCase, invocation: &Invocation, ) -> Option<EvalMetricResult>
Score the actual invocation against the expected case. Read more
Auto Trait Implementations§
impl Freeze for ResponseMatcher
impl RefUnwindSafe for ResponseMatcher
impl Send for ResponseMatcher
impl Sync for ResponseMatcher
impl Unpin for ResponseMatcher
impl UnsafeUnpin for ResponseMatcher
impl UnwindSafe for ResponseMatcher
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