pub struct UserSimulatorEvaluator { /* private fields */ }Expand description
Evaluates the fidelity of a user simulator in multi-turn conversations.
Assesses whether simulated user messages are:
- Realistic and coherent
- Following the assigned persona/scenario
- Providing adequate coverage of the test scenario
- Properly using the stop signal when the conversation should end
Implementations§
Source§impl UserSimulatorEvaluator
impl UserSimulatorEvaluator
Sourcepub fn with_stop_signal(self, signal: impl Into<String>) -> Self
pub fn with_stop_signal(self, signal: impl Into<String>) -> Self
Set the stop signal that the simulator uses to end conversations.
Sourcepub fn with_judge_model(self, model: impl Into<String>) -> Self
pub fn with_judge_model(self, model: impl Into<String>) -> Self
Set an override judge model name.
Trait Implementations§
Source§impl Default for UserSimulatorEvaluator
impl Default for UserSimulatorEvaluator
Source§impl Evaluator for UserSimulatorEvaluator
impl Evaluator for UserSimulatorEvaluator
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 UserSimulatorEvaluator
impl !RefUnwindSafe for UserSimulatorEvaluator
impl Send for UserSimulatorEvaluator
impl Sync for UserSimulatorEvaluator
impl Unpin for UserSimulatorEvaluator
impl !UnwindSafe for UserSimulatorEvaluator
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