pub struct TrajectoryMatcher { /* private fields */ }Expand description
Evaluator that compares actual tool call trajectories against expected golden paths.
Returns None when the case has no expected_trajectory.
Implementations§
Source§impl TrajectoryMatcher
impl TrajectoryMatcher
Trait Implementations§
Source§impl Evaluator for TrajectoryMatcher
impl Evaluator for TrajectoryMatcher
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 TrajectoryMatcher
impl RefUnwindSafe for TrajectoryMatcher
impl Send for TrajectoryMatcher
impl Sync for TrajectoryMatcher
impl Unpin for TrajectoryMatcher
impl UnsafeUnpin for TrajectoryMatcher
impl UnwindSafe for TrajectoryMatcher
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