pub struct AnthropicThinkingConfig {
pub type: Type,
pub budget_tokens: f64,
}Fields§
§type: Type§budget_tokens: f64The maximum number of tokens to allocate for thinking. Must be between 1024 and 100000 tokens.
Implementations§
Source§impl AnthropicThinkingConfig
impl AnthropicThinkingConfig
pub fn new(type: Type, budget_tokens: f64) -> AnthropicThinkingConfig
Trait Implementations§
Source§impl Clone for AnthropicThinkingConfig
impl Clone for AnthropicThinkingConfig
Source§fn clone(&self) -> AnthropicThinkingConfig
fn clone(&self) -> AnthropicThinkingConfig
Returns a copy 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 AnthropicThinkingConfig
impl Debug for AnthropicThinkingConfig
Source§impl Default for AnthropicThinkingConfig
impl Default for AnthropicThinkingConfig
Source§fn default() -> AnthropicThinkingConfig
fn default() -> AnthropicThinkingConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnthropicThinkingConfig
impl<'de> Deserialize<'de> for AnthropicThinkingConfig
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 AnthropicThinkingConfig
impl PartialEq for AnthropicThinkingConfig
Source§impl Serialize for AnthropicThinkingConfig
impl Serialize for AnthropicThinkingConfig
impl StructuralPartialEq for AnthropicThinkingConfig
Auto Trait Implementations§
impl Freeze for AnthropicThinkingConfig
impl RefUnwindSafe for AnthropicThinkingConfig
impl Send for AnthropicThinkingConfig
impl Sync for AnthropicThinkingConfig
impl Unpin for AnthropicThinkingConfig
impl UnwindSafe for AnthropicThinkingConfig
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