pub struct EvalSamplingParams {
pub seed: Option<i32>,
pub top_p: Option<f64>,
pub temperature: Option<f64>,
pub max_completion_tokens: Option<i32>,
pub reasoning_effort: Option<ReasoningEffort>,
pub response_format: Option<ResponseFormat>,
pub tools: Option<Vec<ChatCompletionTool>>,
}Expand description
Sampling parameters for the model.
Fields§
§seed: Option<i32>A seed value to initialize the randomness, during sampling.
top_p: Option<f64>An alternative to temperature for nucleus sampling; 1.0 includes all tokens.
temperature: Option<f64>A higher temperature increases randomness in the outputs.
max_completion_tokens: Option<i32>The maximum number of tokens in the generated output.
reasoning_effort: Option<ReasoningEffort>Optional reasoning effort parameter.
response_format: Option<ResponseFormat>An object specifying the format that the model must output.
tools: Option<Vec<ChatCompletionTool>>A list of tools the model may call.
Trait Implementations§
Source§impl Clone for EvalSamplingParams
impl Clone for EvalSamplingParams
Source§fn clone(&self) -> EvalSamplingParams
fn clone(&self) -> EvalSamplingParams
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 Debug for EvalSamplingParams
impl Debug for EvalSamplingParams
Source§impl Default for EvalSamplingParams
impl Default for EvalSamplingParams
Source§fn default() -> EvalSamplingParams
fn default() -> EvalSamplingParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EvalSamplingParams
impl<'de> Deserialize<'de> for EvalSamplingParams
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 EvalSamplingParams
impl PartialEq for EvalSamplingParams
Source§impl Serialize for EvalSamplingParams
impl Serialize for EvalSamplingParams
impl StructuralPartialEq for EvalSamplingParams
Auto Trait Implementations§
impl Freeze for EvalSamplingParams
impl RefUnwindSafe for EvalSamplingParams
impl Send for EvalSamplingParams
impl Sync for EvalSamplingParams
impl Unpin for EvalSamplingParams
impl UnwindSafe for EvalSamplingParams
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