pub struct DataSourceCreateEvalResponsesRunDataSourceSamplingParams {
pub max_completion_tokens: Option<i64>,
pub reasoning_effort: Option<Value>,
pub seed: Option<i64>,
pub temperature: Option<f64>,
pub text: Option<DataSourceCreateEvalResponsesRunDataSourceSamplingParamsText>,
pub tools: Option<Vec<Value>>,
pub top_p: Option<f64>,
}Fields§
§max_completion_tokens: Option<i64>The maximum number of tokens in the generated output.
reasoning_effort: Option<Value>Constrains effort on reasoning for
seed: Option<i64>A seed value to initialize the randomness, during sampling.
temperature: Option<f64>A higher temperature increases randomness in the outputs.
text: Option<DataSourceCreateEvalResponsesRunDataSourceSamplingParamsText>Configuration options for a text response from the model.
tools: Option<Vec<Value>>An array of tools the model may call while generating a response.
top_p: Option<f64>An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
Trait Implementations§
Source§impl Clone for DataSourceCreateEvalResponsesRunDataSourceSamplingParams
impl Clone for DataSourceCreateEvalResponsesRunDataSourceSamplingParams
Source§fn clone(&self) -> DataSourceCreateEvalResponsesRunDataSourceSamplingParams
fn clone(&self) -> DataSourceCreateEvalResponsesRunDataSourceSamplingParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DataSourceCreateEvalResponsesRunDataSourceSamplingParams
impl<'de> Deserialize<'de> for DataSourceCreateEvalResponsesRunDataSourceSamplingParams
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
Auto Trait Implementations§
impl Freeze for DataSourceCreateEvalResponsesRunDataSourceSamplingParams
impl RefUnwindSafe for DataSourceCreateEvalResponsesRunDataSourceSamplingParams
impl Send for DataSourceCreateEvalResponsesRunDataSourceSamplingParams
impl Sync for DataSourceCreateEvalResponsesRunDataSourceSamplingParams
impl Unpin for DataSourceCreateEvalResponsesRunDataSourceSamplingParams
impl UnsafeUnpin for DataSourceCreateEvalResponsesRunDataSourceSamplingParams
impl UnwindSafe for DataSourceCreateEvalResponsesRunDataSourceSamplingParams
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