pub struct EffectiveGeneration {
pub temperature: Option<f64>,
pub max_output_tokens: Option<u32>,
pub thinking: Option<bool>,
pub reasoning_effort: Option<String>,
pub fast_mode: Option<bool>,
}Expand description
Generation parameters that may reach the wire. Fields left None are omitted from the
payload, which leaves the provider default in effect.
Fields§
§temperature: Option<f64>§max_output_tokens: Option<u32>§thinking: Option<bool>§reasoning_effort: Option<String>§fast_mode: Option<bool>Implementations§
Source§impl EffectiveGeneration
impl EffectiveGeneration
Sourcepub fn temperature_f32(&self) -> Option<f32>
pub fn temperature_f32(&self) -> Option<f32>
Provider payloads carry temperature as f32.
Trait Implementations§
Source§impl Clone for EffectiveGeneration
impl Clone for EffectiveGeneration
Source§fn clone(&self) -> EffectiveGeneration
fn clone(&self) -> EffectiveGeneration
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 Debug for EffectiveGeneration
impl Debug for EffectiveGeneration
Source§impl Default for EffectiveGeneration
impl Default for EffectiveGeneration
Source§fn default() -> EffectiveGeneration
fn default() -> EffectiveGeneration
Returns the “default value” for a type. Read more
Source§impl PartialEq for EffectiveGeneration
impl PartialEq for EffectiveGeneration
Source§impl Serialize for EffectiveGeneration
impl Serialize for EffectiveGeneration
impl StructuralPartialEq for EffectiveGeneration
Auto Trait Implementations§
impl Freeze for EffectiveGeneration
impl RefUnwindSafe for EffectiveGeneration
impl Send for EffectiveGeneration
impl Sync for EffectiveGeneration
impl Unpin for EffectiveGeneration
impl UnsafeUnpin for EffectiveGeneration
impl UnwindSafe for EffectiveGeneration
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