pub struct GraderLabelModel {
pub name: String,
pub model: String,
pub input: Vec<EvalItem>,
pub labels: Vec<String>,
pub passing_labels: Vec<String>,
}Fields§
§name: StringThe name of the grader.
model: StringThe model to use for the evaluation. Must support structured outputs.
input: Vec<EvalItem>A list of chat messages forming the prompt or context.
labels: Vec<String>The labels to classify to each item in the evaluation.
passing_labels: Vec<String>The labels that indicate a passing result. Must be a subset of labels.
Trait Implementations§
Source§impl Clone for GraderLabelModel
impl Clone for GraderLabelModel
Source§fn clone(&self) -> GraderLabelModel
fn clone(&self) -> GraderLabelModel
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 GraderLabelModel
impl Debug for GraderLabelModel
Source§impl<'de> Deserialize<'de> for GraderLabelModel
impl<'de> Deserialize<'de> for GraderLabelModel
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
Source§impl PartialEq for GraderLabelModel
impl PartialEq for GraderLabelModel
Source§impl Serialize for GraderLabelModel
impl Serialize for GraderLabelModel
impl StructuralPartialEq for GraderLabelModel
Auto Trait Implementations§
impl Freeze for GraderLabelModel
impl RefUnwindSafe for GraderLabelModel
impl Send for GraderLabelModel
impl Sync for GraderLabelModel
impl Unpin for GraderLabelModel
impl UnwindSafe for GraderLabelModel
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