pub struct CreateEvalCompletionsRunDataSource {
pub input_messages: EvalInputMessages,
pub sampling_params: Option<EvalSamplingParams>,
pub model: String,
pub source: EvalCompletionsSource,
}Expand description
Completions run data source.
Fields§
§input_messages: EvalInputMessagesUsed when sampling from a model. Dictates the structure of the messages passed into the model. Can
either be a reference to a prebuilt trajectory (ie, item.input_trajectory), or a template with
variable references to the item namespace.
sampling_params: Option<EvalSamplingParams>The sampling parameters for the model.
model: StringThe name of the model to use for generating completions (e.g. “o3-mini”).
source: EvalCompletionsSourceDetermines what populates the item namespace in this run’s data source.
Trait Implementations§
Source§impl Clone for CreateEvalCompletionsRunDataSource
impl Clone for CreateEvalCompletionsRunDataSource
Source§fn clone(&self) -> CreateEvalCompletionsRunDataSource
fn clone(&self) -> CreateEvalCompletionsRunDataSource
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<'de> Deserialize<'de> for CreateEvalCompletionsRunDataSource
impl<'de> Deserialize<'de> for CreateEvalCompletionsRunDataSource
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 CreateEvalCompletionsRunDataSource
impl PartialEq for CreateEvalCompletionsRunDataSource
Source§fn eq(&self, other: &CreateEvalCompletionsRunDataSource) -> bool
fn eq(&self, other: &CreateEvalCompletionsRunDataSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateEvalCompletionsRunDataSource
Auto Trait Implementations§
impl Freeze for CreateEvalCompletionsRunDataSource
impl RefUnwindSafe for CreateEvalCompletionsRunDataSource
impl Send for CreateEvalCompletionsRunDataSource
impl Sync for CreateEvalCompletionsRunDataSource
impl Unpin for CreateEvalCompletionsRunDataSource
impl UnwindSafe for CreateEvalCompletionsRunDataSource
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