pub struct TrajectoryEvaluator {
pub strict_order: bool,
/* private fields */
}Expand description
Evaluates the tool-call trajectory of agent invocations.
Compares actual tool calls (names and order) against expected tool calls to assess whether the agent followed the correct reasoning path.
Fields§
§strict_order: boolWhether to enforce strict ordering of tool calls.
Implementations§
Trait Implementations§
Source§impl Clone for TrajectoryEvaluator
impl Clone for TrajectoryEvaluator
Source§fn clone(&self) -> TrajectoryEvaluator
fn clone(&self) -> TrajectoryEvaluator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrajectoryEvaluator
impl Debug for TrajectoryEvaluator
Source§impl Default for TrajectoryEvaluator
impl Default for TrajectoryEvaluator
Source§impl Evaluator for TrajectoryEvaluator
impl Evaluator for TrajectoryEvaluator
Source§fn evaluate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
actual: &'life1 [Invocation],
expected: Option<&'life2 [Invocation]>,
) -> Pin<Box<dyn Future<Output = Result<EvalResult, EvalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn evaluate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
actual: &'life1 [Invocation],
expected: Option<&'life2 [Invocation]>,
) -> Pin<Box<dyn Future<Output = Result<EvalResult, EvalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Evaluate agent invocations. Read more
Auto Trait Implementations§
impl Freeze for TrajectoryEvaluator
impl RefUnwindSafe for TrajectoryEvaluator
impl Send for TrajectoryEvaluator
impl Sync for TrajectoryEvaluator
impl Unpin for TrajectoryEvaluator
impl UnwindSafe for TrajectoryEvaluator
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