pub struct EvalResult {
pub case_name: String,
pub passed: bool,
pub scores: Vec<ScorerResult>,
pub actual_tools: Vec<String>,
pub actual_output: String,
pub error: Option<String>,
}Expand description
Result of evaluating a single test case.
Fields§
§case_name: StringName of the test case.
passed: boolWhether the case passed (all scorers above threshold).
scores: Vec<ScorerResult>Per-scorer results.
actual_tools: Vec<String>Actual tool calls made by the agent (in order).
actual_output: StringActual agent output text.
error: Option<String>Error if the agent failed to execute.
Trait Implementations§
Source§impl Clone for EvalResult
impl Clone for EvalResult
Source§fn clone(&self) -> EvalResult
fn clone(&self) -> EvalResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EvalResult
impl Debug for EvalResult
Source§impl<'de> Deserialize<'de> for EvalResult
impl<'de> Deserialize<'de> for EvalResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EvalResult
impl RefUnwindSafe for EvalResult
impl Send for EvalResult
impl Sync for EvalResult
impl Unpin for EvalResult
impl UnsafeUnpin for EvalResult
impl UnwindSafe for EvalResult
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