pub struct CreateEvalResponsesRunDataSourceSamplingParams {
pub temperature: Option<f64>,
pub max_completion_tokens: Option<u64>,
pub top_p: Option<f64>,
pub seed: Option<u64>,
}
Fields§
§temperature: Option<f64>
A higher temperature increases randomness in the outputs.
max_completion_tokens: Option<u64>
The maximum number of tokens in the generated output.
top_p: Option<f64>
An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
seed: Option<u64>
A seed value to initialize the randomness, during sampling.
Implementations§
Source§impl CreateEvalResponsesRunDataSourceSamplingParams
impl CreateEvalResponsesRunDataSourceSamplingParams
Sourcepub fn builder() -> CreateEvalResponsesRunDataSourceSamplingParamsBuilder<((), (), (), ())>
pub fn builder() -> CreateEvalResponsesRunDataSourceSamplingParamsBuilder<((), (), (), ())>
Create a builder for building CreateEvalResponsesRunDataSourceSamplingParams
.
On the builder, call .temperature(...)
(optional), .max_completion_tokens(...)
(optional), .top_p(...)
(optional), .seed(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of CreateEvalResponsesRunDataSourceSamplingParams
.
Trait Implementations§
Source§impl Clone for CreateEvalResponsesRunDataSourceSamplingParams
impl Clone for CreateEvalResponsesRunDataSourceSamplingParams
Source§fn clone(&self) -> CreateEvalResponsesRunDataSourceSamplingParams
fn clone(&self) -> CreateEvalResponsesRunDataSourceSamplingParams
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 Default for CreateEvalResponsesRunDataSourceSamplingParams
impl Default for CreateEvalResponsesRunDataSourceSamplingParams
Source§fn default() -> CreateEvalResponsesRunDataSourceSamplingParams
fn default() -> CreateEvalResponsesRunDataSourceSamplingParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateEvalResponsesRunDataSourceSamplingParams
impl<'de> Deserialize<'de> for CreateEvalResponsesRunDataSourceSamplingParams
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 CreateEvalResponsesRunDataSourceSamplingParams
impl PartialEq for CreateEvalResponsesRunDataSourceSamplingParams
Source§fn eq(&self, other: &CreateEvalResponsesRunDataSourceSamplingParams) -> bool
fn eq(&self, other: &CreateEvalResponsesRunDataSourceSamplingParams) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for CreateEvalResponsesRunDataSourceSamplingParams
impl StructuralPartialEq for CreateEvalResponsesRunDataSourceSamplingParams
Auto Trait Implementations§
impl Freeze for CreateEvalResponsesRunDataSourceSamplingParams
impl RefUnwindSafe for CreateEvalResponsesRunDataSourceSamplingParams
impl Send for CreateEvalResponsesRunDataSourceSamplingParams
impl Sync for CreateEvalResponsesRunDataSourceSamplingParams
impl Unpin for CreateEvalResponsesRunDataSourceSamplingParams
impl UnwindSafe for CreateEvalResponsesRunDataSourceSamplingParams
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