pub enum Effort {
High,
Medium,
Low,
}
Expand description
Reasoning effort level for chain-of-thought models
Controls how much computational effort the model should put into reasoning through problems. Higher effort levels typically produce more detailed reasoning but take longer and cost more.
§Examples
use openrouter_rs::types::Effort;
use openrouter_rs::api::chat::ChatCompletionRequest;
let request = ChatCompletionRequest::builder()
.model("deepseek/deepseek-r1")
.reasoning_effort(Effort::High) // Maximum reasoning depth
// ... other fields
.build()?;
Variants§
High
Maximum reasoning depth and thoroughness
Medium
Balanced reasoning effort
Low
Quick, lightweight reasoning
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Effort
impl<'de> Deserialize<'de> for Effort
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 Effort
impl RefUnwindSafe for Effort
impl Send for Effort
impl Sync for Effort
impl Unpin for Effort
impl UnwindSafe for Effort
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