pub struct RouteTestResult {
pub label: String,
pub prompt: String,
pub expected: Vec<String>,
pub got: Option<String>,
pub route: Option<AutoRoute>,
pub pass: bool,
pub error: Option<String>,
pub elapsed_ms: u64,
pub sub_count: Option<usize>,
}Expand description
Result of running a single test case.
Fields§
§label: StringThe test case label.
prompt: StringThe prompt that was classified.
expected: Vec<String>Expected route types.
got: Option<String>The route type returned, if successful.
route: Option<AutoRoute>The full route decision, if successful.
pass: boolWhether the result matched expectations.
error: Option<String>Error message, if the routing call failed.
elapsed_ms: u64Wall-clock time for this case in milliseconds.
sub_count: Option<usize>Number of sub-items (parallel prompts or chain steps).
Implementations§
Trait Implementations§
Source§impl Clone for RouteTestResult
impl Clone for RouteTestResult
Source§fn clone(&self) -> RouteTestResult
fn clone(&self) -> RouteTestResult
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 RouteTestResult
impl Debug for RouteTestResult
Source§impl<'de> Deserialize<'de> for RouteTestResult
impl<'de> Deserialize<'de> for RouteTestResult
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 RouteTestResult
impl RefUnwindSafe for RouteTestResult
impl Send for RouteTestResult
impl Sync for RouteTestResult
impl Unpin for RouteTestResult
impl UnsafeUnpin for RouteTestResult
impl UnwindSafe for RouteTestResult
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