pub struct TrajectoryScorer;Expand description
Scores tool call trajectory against expected tool calls.
Scoring logic:
- If no expected tools are specified (
None), score is 1.0 (pass). - If expected tools is empty vec, score is 1.0 only if no tools were called.
- For ordered expectations: exact position match required.
- For unordered expectations: tool must appear anywhere in trajectory.
- Score = matched expectations / total expectations.
Trait Implementations§
Source§impl EvalScorer for TrajectoryScorer
impl EvalScorer for TrajectoryScorer
Auto Trait Implementations§
impl Freeze for TrajectoryScorer
impl RefUnwindSafe for TrajectoryScorer
impl Send for TrajectoryScorer
impl Sync for TrajectoryScorer
impl Unpin for TrajectoryScorer
impl UnsafeUnpin for TrajectoryScorer
impl UnwindSafe for TrajectoryScorer
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