pub struct SamplingParams {
pub seed: Option<i32>,
pub top_p: Option<f64>,
pub temperature: Option<f64>,
pub max_completion_tokens: Option<i32>,
pub reasoning_effort: Option<ReasoningEffort>,
}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 the grader model may generate in its response.
reasoning_effort: Option<ReasoningEffort>Optional reasoning effort parameter.
Trait Implementations§
Source§impl Clone for SamplingParams
impl Clone for SamplingParams
Source§fn clone(&self) -> SamplingParams
fn clone(&self) -> SamplingParams
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 SamplingParams
impl Debug for SamplingParams
Source§impl<'de> Deserialize<'de> for SamplingParams
impl<'de> Deserialize<'de> for SamplingParams
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 SamplingParams
impl PartialEq for SamplingParams
Source§impl Serialize for SamplingParams
impl Serialize for SamplingParams
impl StructuralPartialEq for SamplingParams
Auto Trait Implementations§
impl Freeze for SamplingParams
impl RefUnwindSafe for SamplingParams
impl Send for SamplingParams
impl Sync for SamplingParams
impl Unpin for SamplingParams
impl UnwindSafe for SamplingParams
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