pub struct CreateMessagesRequestThinking {
pub budget_tokens: i64,
pub type_: CreateMessagesRequestThinkingType,
}Expand description
Configuration for extended thinking.
JSON schema
{
"description": "Configuration for extended thinking.\n",
"type": "object",
"required": [
"budget_tokens",
"type"
],
"properties": {
"budget_tokens": {
"description": "The maximum number of tokens the model is allowed to use\nfor thinking.\n",
"type": "integer"
},
"type": {
"description": "Always `enabled`.",
"type": "string",
"enum": [
"enabled"
]
}
}
}Fields§
§budget_tokens: i64The maximum number of tokens the model is allowed to use for thinking.
type_: CreateMessagesRequestThinkingTypeAlways enabled.
Trait Implementations§
Source§impl Clone for CreateMessagesRequestThinking
impl Clone for CreateMessagesRequestThinking
Source§fn clone(&self) -> CreateMessagesRequestThinking
fn clone(&self) -> CreateMessagesRequestThinking
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<'de> Deserialize<'de> for CreateMessagesRequestThinking
impl<'de> Deserialize<'de> for CreateMessagesRequestThinking
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 CreateMessagesRequestThinking
impl RefUnwindSafe for CreateMessagesRequestThinking
impl Send for CreateMessagesRequestThinking
impl Sync for CreateMessagesRequestThinking
impl Unpin for CreateMessagesRequestThinking
impl UnsafeUnpin for CreateMessagesRequestThinking
impl UnwindSafe for CreateMessagesRequestThinking
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