pub struct ReasoningConfig {
pub effort: Option<ReasoningEffort>,
pub max_reasoning_tokens: Option<u32>,
pub summary_mode: ReasoningSummaryMode,
}Expand description
Optional reasoning controls attached to a generation request.
§Examples
let config = providers_kit::generation::ReasoningConfig {
effort: Some(providers_kit::generation::ReasoningEffort::High),
..Default::default()
};
assert_eq!(config.effort, Some(providers_kit::generation::ReasoningEffort::High));Fields§
§effort: Option<ReasoningEffort>Requested reasoning effort tier when the backend supports explicit controls.
max_reasoning_tokens: Option<u32>Upper bound for provider-native reasoning tokens when that concept exists.
summary_mode: ReasoningSummaryModeRequested reasoning-summary presentation mode.
Trait Implementations§
Source§impl Clone for ReasoningConfig
impl Clone for ReasoningConfig
Source§impl Debug for ReasoningConfig
impl Debug for ReasoningConfig
Source§impl Default for ReasoningConfig
impl Default for ReasoningConfig
Source§impl<'de> Deserialize<'de> for ReasoningConfig
impl<'de> Deserialize<'de> for ReasoningConfig
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
impl Eq for ReasoningConfig
Source§impl PartialEq for ReasoningConfig
impl PartialEq for ReasoningConfig
Source§impl Serialize for ReasoningConfig
impl Serialize for ReasoningConfig
impl StructuralPartialEq for ReasoningConfig
Auto Trait Implementations§
impl Freeze for ReasoningConfig
impl RefUnwindSafe for ReasoningConfig
impl Send for ReasoningConfig
impl Sync for ReasoningConfig
impl Unpin for ReasoningConfig
impl UnsafeUnpin for ReasoningConfig
impl UnwindSafe for ReasoningConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.