pub struct CreateEvalLabelModelGraderArgs { /* private fields */ }Expand description
Builder for CreateEvalLabelModelGrader.
Implementations§
Source§impl CreateEvalLabelModelGraderArgs
impl CreateEvalLabelModelGraderArgs
Sourcepub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn model<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The model to use for the evaluation. Must support structured outputs.
Sourcepub fn input<VALUE: Into<Vec<CreateEvalItem>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn input<VALUE: Into<Vec<CreateEvalItem>>>( &mut self, value: VALUE, ) -> &mut Self
A list of chat messages forming the prompt or context. May include variable references to the
item namespace, ie {{item.name}}.
Sourcepub fn labels<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn labels<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
The labels to classify to each item in the evaluation.
Sourcepub fn passing_labels<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn passing_labels<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
The labels that indicate a passing result. Must be a subset of labels.
Sourcepub fn build(&self) -> Result<CreateEvalLabelModelGrader, OpenAIError>
pub fn build(&self) -> Result<CreateEvalLabelModelGrader, OpenAIError>
Trait Implementations§
Source§impl Clone for CreateEvalLabelModelGraderArgs
impl Clone for CreateEvalLabelModelGraderArgs
Source§fn clone(&self) -> CreateEvalLabelModelGraderArgs
fn clone(&self) -> CreateEvalLabelModelGraderArgs
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 moreAuto Trait Implementations§
impl Freeze for CreateEvalLabelModelGraderArgs
impl RefUnwindSafe for CreateEvalLabelModelGraderArgs
impl Send for CreateEvalLabelModelGraderArgs
impl Sync for CreateEvalLabelModelGraderArgs
impl Unpin for CreateEvalLabelModelGraderArgs
impl UnwindSafe for CreateEvalLabelModelGraderArgs
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