pub struct TestingCriterionLabelModel {
pub input: Vec<TestingCriterionLabelModelInput>,
pub labels: Value,
pub model: String,
pub name: String,
pub passing_labels: Value,
pub type_: String,
}Expand description
A LabelModelGrader object which uses a model to assign labels to each item
Fields§
§input: Vec<TestingCriterionLabelModelInput>A list of chat messages forming the prompt or context.
labels: ValueThe labels to classify to each item in the evaluation.
model: StringThe model to use for the evaluation. Must support structured outputs.
name: StringThe name of the grader.
passing_labels: ValueThe labels that indicate a passing result. Must be a subset of labels.
type_: StringThe object type, which is always label_model.
Trait Implementations§
Source§impl Clone for TestingCriterionLabelModel
impl Clone for TestingCriterionLabelModel
Source§fn clone(&self) -> TestingCriterionLabelModel
fn clone(&self) -> TestingCriterionLabelModel
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 TestingCriterionLabelModel
impl Debug for TestingCriterionLabelModel
Source§impl<'de> Deserialize<'de> for TestingCriterionLabelModel
impl<'de> Deserialize<'de> for TestingCriterionLabelModel
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 TestingCriterionLabelModel
impl RefUnwindSafe for TestingCriterionLabelModel
impl Send for TestingCriterionLabelModel
impl Sync for TestingCriterionLabelModel
impl Unpin for TestingCriterionLabelModel
impl UnsafeUnpin for TestingCriterionLabelModel
impl UnwindSafe for TestingCriterionLabelModel
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