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>
§sampling_params: Option<CreateEvalCompletionsRunDataSourceSamplingParams>
§model: Option<String>
The name of the model to use for generating completions (e.g. “o3-mini”).
source: CreateEvalCompletionsRunDataSourceSource
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
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