pub struct ReasoningConfig {
pub mode: Option<ReasoningMode>,
pub effort: Option<ReasoningEffort>,
pub budget_tokens: Option<u32>,
pub summary: Option<ReasoningSummary>,
pub include_text: Option<bool>,
pub include_encrypted: Option<bool>,
}Expand description
Provider-neutral reasoning request configuration.
Adapters translate only the fields that their protocol supports. Fields that have no equivalent are ignored rather than guessed.
Fields§
§mode: Option<ReasoningMode>Enable/disable mode for providers with a simple toggle.
effort: Option<ReasoningEffort>Coarse effort level.
budget_tokens: Option<u32>Token budget for reasoning.
summary: Option<ReasoningSummary>How much reasoning summary to expose.
include_text: Option<bool>Ask providers such as Gemini to include readable thought parts.
include_encrypted: Option<bool>Ask OpenAI Responses to include encrypted reasoning for stateless replay.
Implementations§
Source§impl ReasoningConfig
impl ReasoningConfig
Sourcepub fn mode(self, mode: ReasoningMode) -> Self
pub fn mode(self, mode: ReasoningMode) -> Self
Sets the enable/disable mode.
Sourcepub fn effort(self, effort: ReasoningEffort) -> Self
pub fn effort(self, effort: ReasoningEffort) -> Self
Sets the effort level.
Sourcepub fn budget_tokens(self, budget_tokens: u32) -> Self
pub fn budget_tokens(self, budget_tokens: u32) -> Self
Sets the reasoning token budget.
Sourcepub fn summary(self, summary: ReasoningSummary) -> Self
pub fn summary(self, summary: ReasoningSummary) -> Self
Sets the reasoning summary verbosity.
Sourcepub fn include_text(self, include_text: bool) -> Self
pub fn include_text(self, include_text: bool) -> Self
Requests readable thought parts (e.g. Gemini).
Sourcepub fn include_encrypted(self, include_encrypted: bool) -> Self
pub fn include_encrypted(self, include_encrypted: bool) -> Self
Requests encrypted reasoning for stateless replay (e.g. OpenAI Responses).
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
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