pub struct EvalExample {
pub id: String,
pub input: String,
pub expected_output: Option<String>,
pub metadata: HashMap<String, Value>,
}Expand description
A single evaluation example for free-form text tasks.
Fields§
§id: StringUnique identifier for this example.
input: StringThe input prompt / context fed to the model.
expected_output: Option<String>Expected output, if known (used for scoring).
metadata: HashMap<String, Value>Arbitrary key-value metadata.
Trait Implementations§
Source§impl Clone for EvalExample
impl Clone for EvalExample
Source§fn clone(&self) -> EvalExample
fn clone(&self) -> EvalExample
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 EvalExample
impl Debug for EvalExample
Source§impl<'de> Deserialize<'de> for EvalExample
impl<'de> Deserialize<'de> for EvalExample
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 EvalExample
impl RefUnwindSafe for EvalExample
impl Send for EvalExample
impl Sync for EvalExample
impl Unpin for EvalExample
impl UnsafeUnpin for EvalExample
impl UnwindSafe for EvalExample
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