pub struct CreateEvalCompletionsRunDataSource {
pub input_messages: Option<CreateEvalCompletionsRunDataSourceInputMessages>,
pub sampling_params: Option<CreateEvalCompletionsRunDataSourceSamplingParams>,
pub model: Option<String>,
pub source: CreateEvalCompletionsRunDataSourceSource,
}
Expand description
A CompletionsRunDataSource object describing a model sampling configuration.
Fields§
§input_messages: Option<CreateEvalCompletionsRunDataSourceInputMessages>
Used 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<CreateEvalCompletionsRunDataSourceSamplingParams>
§model: Option<String>
The name of the model to use for generating completions (e.g. “o3-mini”).
source: CreateEvalCompletionsRunDataSourceSource
Determines what populates the item
namespace in this run’s data source.
Implementations§
Source§impl CreateEvalCompletionsRunDataSource
impl CreateEvalCompletionsRunDataSource
Sourcepub fn builder() -> CreateEvalCompletionsRunDataSourceBuilder<((), (), (), ())>
pub fn builder() -> CreateEvalCompletionsRunDataSourceBuilder<((), (), (), ())>
Create a builder for building CreateEvalCompletionsRunDataSource
.
On the builder, call .input_messages(...)
(optional), .sampling_params(...)
(optional), .model(...)
(optional), .source(...)
to set the values of the fields.
Finally, call .build()
to create the instance of CreateEvalCompletionsRunDataSource
.
Trait Implementations§
Source§impl Clone for CreateEvalCompletionsRunDataSource
impl Clone for CreateEvalCompletionsRunDataSource
Source§fn clone(&self) -> CreateEvalCompletionsRunDataSource
fn clone(&self) -> CreateEvalCompletionsRunDataSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Source§impl PartialEq for CreateEvalCompletionsRunDataSource
impl PartialEq for CreateEvalCompletionsRunDataSource
Source§fn eq(&self, other: &CreateEvalCompletionsRunDataSource) -> bool
fn eq(&self, other: &CreateEvalCompletionsRunDataSource) -> bool
self
and other
values to be equal, and is used by ==
.