pub struct ThinkingConfig {
pub budget_tokens: u32,
}Expand description
Configuration for extended thinking.
When enabled, the model will show its reasoning process before generating the final response.
Fields§
§budget_tokens: u32Maximum tokens the model can use for thinking. Default is 10,000 tokens.
Implementations§
Source§impl ThinkingConfig
impl ThinkingConfig
Sourcepub const DEFAULT_BUDGET_TOKENS: u32 = 10_000
pub const DEFAULT_BUDGET_TOKENS: u32 = 10_000
Default budget: 10,000 tokens.
This provides enough capacity for meaningful reasoning on most tasks while keeping costs reasonable. Increase for complex multi-step problems.
Sourcepub const MIN_BUDGET_TOKENS: u32 = 1_024
pub const MIN_BUDGET_TOKENS: u32 = 1_024
Minimum budget required by the Anthropic API.
pub const fn new(budget_tokens: u32) -> Self
Trait Implementations§
Source§impl Clone for ThinkingConfig
impl Clone for ThinkingConfig
Source§fn clone(&self) -> ThinkingConfig
fn clone(&self) -> ThinkingConfig
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 ThinkingConfig
impl Debug for ThinkingConfig
Auto Trait Implementations§
impl Freeze for ThinkingConfig
impl RefUnwindSafe for ThinkingConfig
impl Send for ThinkingConfig
impl Sync for ThinkingConfig
impl Unpin for ThinkingConfig
impl UnwindSafe for ThinkingConfig
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