pub struct ToolTrajectoryScorer { /* private fields */ }Expand description
Scorer for tool trajectory matching
Implementations§
Source§impl ToolTrajectoryScorer
impl ToolTrajectoryScorer
Sourcepub fn with_config(config: ToolTrajectoryConfig) -> Self
pub fn with_config(config: ToolTrajectoryConfig) -> Self
Create with custom config
Sourcepub fn score(&self, expected: &[ToolUse], actual: &[ToolUse]) -> f64
pub fn score(&self, expected: &[ToolUse], actual: &[ToolUse]) -> f64
Score tool trajectory
Returns a score from 0.0 to 1.0 indicating how well the actual tool calls match the expected tool calls.
Sourcepub fn compare(
&self,
expected: &[ToolUse],
actual: &[ToolUse],
) -> ToolTrajectoryComparison
pub fn compare( &self, expected: &[ToolUse], actual: &[ToolUse], ) -> ToolTrajectoryComparison
Get detailed comparison
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolTrajectoryScorer
impl RefUnwindSafe for ToolTrajectoryScorer
impl Send for ToolTrajectoryScorer
impl Sync for ToolTrajectoryScorer
impl Unpin for ToolTrajectoryScorer
impl UnwindSafe for ToolTrajectoryScorer
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