pub struct MessagesOutputConfig {
pub effort: Option<MessagesOutputConfigEffort>,
}Expand description
Output configuration for a Messages API request.
JSON schema
{
"description": "Output configuration for a Messages API request.\n",
"type": "object",
"properties": {
"effort": {
"description": "Constrains how much effort the model spends on reasoning.\nLower effort yields faster responses and fewer reasoning\ntokens.\n",
"type": "string",
"enum": [
"low",
"medium",
"high",
"xhigh",
"max"
]
}
}
}Fields§
§effort: Option<MessagesOutputConfigEffort>Constrains how much effort the model spends on reasoning. Lower effort yields faster responses and fewer reasoning tokens.
Trait Implementations§
Source§impl Clone for MessagesOutputConfig
impl Clone for MessagesOutputConfig
Source§fn clone(&self) -> MessagesOutputConfig
fn clone(&self) -> MessagesOutputConfig
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 MessagesOutputConfig
impl Debug for MessagesOutputConfig
Source§impl Default for MessagesOutputConfig
impl Default for MessagesOutputConfig
Source§impl<'de> Deserialize<'de> for MessagesOutputConfig
impl<'de> Deserialize<'de> for MessagesOutputConfig
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 MessagesOutputConfig
impl RefUnwindSafe for MessagesOutputConfig
impl Send for MessagesOutputConfig
impl Sync for MessagesOutputConfig
impl Unpin for MessagesOutputConfig
impl UnsafeUnpin for MessagesOutputConfig
impl UnwindSafe for MessagesOutputConfig
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