pub struct ModelReasoningConfig {
pub default_effort: ReasoningEffort,
pub effort_map: BTreeMap<ReasoningEffort, Option<String>>,
}Expand description
Strict model-level reasoning profile and provider wire overrides.
Fields§
§default_effort: ReasoningEffortDefault canonical effort for this model.
effort_map: BTreeMap<ReasoningEffort, Option<String>>Canonical effort to provider wire value; null explicitly disables a level.
Implementations§
Source§impl ModelReasoningConfig
impl ModelReasoningConfig
Sourcepub fn resolved(
&self,
) -> Option<(ReasoningProfile, BTreeMap<ReasoningEffort, String>)>
pub fn resolved( &self, ) -> Option<(ReasoningProfile, BTreeMap<ReasoningEffort, String>)>
Resolves default support and explicit overrides into a validated profile and wire map.
Trait Implementations§
Source§impl Clone for ModelReasoningConfig
impl Clone for ModelReasoningConfig
Source§impl Debug for ModelReasoningConfig
impl Debug for ModelReasoningConfig
Source§impl<'de> Deserialize<'de> for ModelReasoningConfig
impl<'de> Deserialize<'de> for ModelReasoningConfig
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 ModelReasoningConfig
Source§impl PartialEq for ModelReasoningConfig
impl PartialEq for ModelReasoningConfig
impl StructuralPartialEq for ModelReasoningConfig
Auto Trait Implementations§
impl Freeze for ModelReasoningConfig
impl RefUnwindSafe for ModelReasoningConfig
impl Send for ModelReasoningConfig
impl Sync for ModelReasoningConfig
impl Unpin for ModelReasoningConfig
impl UnsafeUnpin for ModelReasoningConfig
impl UnwindSafe for ModelReasoningConfig
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.