pub struct CreateEvalResponsesRunDataSource {
pub input_messages: Option<CreateEvalResponsesRunDataSourceInputMessages>,
pub sampling_params: Option<CreateEvalResponsesRunDataSourceSamplingParams>,
pub model: Option<String>,
pub source: CreateEvalResponsesRunDataSourceSource,
}
Expand description
A ResponsesRunDataSource object describing a model sampling configuration.
Fields§
§input_messages: Option<CreateEvalResponsesRunDataSourceInputMessages>
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<CreateEvalResponsesRunDataSourceSamplingParams>
§model: Option<String>
The name of the model to use for generating completions (e.g. “o3-mini”).
source: CreateEvalResponsesRunDataSourceSource
Determines what populates the item
namespace in this run’s data source.
Implementations§
Source§impl CreateEvalResponsesRunDataSource
impl CreateEvalResponsesRunDataSource
Sourcepub fn builder() -> CreateEvalResponsesRunDataSourceBuilder<((), (), (), ())>
pub fn builder() -> CreateEvalResponsesRunDataSourceBuilder<((), (), (), ())>
Create a builder for building CreateEvalResponsesRunDataSource
.
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 CreateEvalResponsesRunDataSource
.
Trait Implementations§
Source§impl Clone for CreateEvalResponsesRunDataSource
impl Clone for CreateEvalResponsesRunDataSource
Source§fn clone(&self) -> CreateEvalResponsesRunDataSource
fn clone(&self) -> CreateEvalResponsesRunDataSource
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 CreateEvalResponsesRunDataSource
impl<'de> Deserialize<'de> for CreateEvalResponsesRunDataSource
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 CreateEvalResponsesRunDataSource
impl PartialEq for CreateEvalResponsesRunDataSource
Source§fn eq(&self, other: &CreateEvalResponsesRunDataSource) -> bool
fn eq(&self, other: &CreateEvalResponsesRunDataSource) -> bool
self
and other
values to be equal, and is used by ==
.