pub struct NormalizedGenerationOptions {
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
pub reasoning: Option<ThinkingLevel>,
pub thinking_budgets: Option<ThinkingBudgets>,
}Expand description
Generation controls that every built-in provider adapter can receive through
theway_llm_provider::SimpleStreamOptions. Transport, authentication, retry,
and provider-specific fields are intentionally excluded from extension patches.
Fields§
§temperature: Option<f32>§max_tokens: Option<u32>§reasoning: Option<ThinkingLevel>§thinking_budgets: Option<ThinkingBudgets>Trait Implementations§
Source§impl Clone for NormalizedGenerationOptions
impl Clone for NormalizedGenerationOptions
Source§fn clone(&self) -> NormalizedGenerationOptions
fn clone(&self) -> NormalizedGenerationOptions
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 NormalizedGenerationOptions
impl Debug for NormalizedGenerationOptions
Source§impl Default for NormalizedGenerationOptions
impl Default for NormalizedGenerationOptions
Source§fn default() -> NormalizedGenerationOptions
fn default() -> NormalizedGenerationOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NormalizedGenerationOptions
impl<'de> Deserialize<'de> for NormalizedGenerationOptions
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 NormalizedGenerationOptions
impl RefUnwindSafe for NormalizedGenerationOptions
impl Send for NormalizedGenerationOptions
impl Sync for NormalizedGenerationOptions
impl Unpin for NormalizedGenerationOptions
impl UnsafeUnpin for NormalizedGenerationOptions
impl UnwindSafe for NormalizedGenerationOptions
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