pub struct ReasoningConfig {
pub effort: Option<Effort>,
pub max_tokens: Option<u32>,
pub exclude: Option<bool>,
pub enabled: Option<bool>,
}
Fields§
§effort: Option<Effort>
§max_tokens: Option<u32>
§exclude: Option<bool>
§enabled: Option<bool>
Implementations§
Source§impl ReasoningConfig
impl ReasoningConfig
Sourcepub fn enabled() -> Self
pub fn enabled() -> Self
Create a new ReasoningConfig with default enabled settings (medium effort)
Sourcepub fn with_effort(effort: Effort) -> Self
pub fn with_effort(effort: Effort) -> Self
Create a ReasoningConfig with specific effort level
Sourcepub fn with_max_tokens(max_tokens: u32) -> Self
pub fn with_max_tokens(max_tokens: u32) -> Self
Create a ReasoningConfig with max tokens limit
Sourcepub fn max_tokens(self, max_tokens: u32) -> Self
pub fn max_tokens(self, max_tokens: u32) -> Self
Set max tokens
Trait Implementations§
Source§impl Clone for ReasoningConfig
impl Clone for ReasoningConfig
Source§fn clone(&self) -> ReasoningConfig
fn clone(&self) -> ReasoningConfig
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 ReasoningConfig
impl Debug for ReasoningConfig
Source§impl<'de> Deserialize<'de> for ReasoningConfig
impl<'de> Deserialize<'de> for ReasoningConfig
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 ReasoningConfig
impl RefUnwindSafe for ReasoningConfig
impl Send for ReasoningConfig
impl Sync for ReasoningConfig
impl Unpin for ReasoningConfig
impl UnwindSafe for ReasoningConfig
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