pub enum ReasoningFormat {
Qwen,
DeepSeekR1,
MiniMax,
Mistral,
Gemma4,
}Expand description
2026-09-26: Supported reasoning-block formats; the module doc lists each one’s delimiters.
Variants§
Qwen
2026-09-26: <think>...</think>, parsed as qwen.
DeepSeekR1
2026-09-26: <think>...</think>, parsed as deepseek_r1; also named
deepseek, nemotron, nemotron_h and nano_v3.
MiniMax
2026-09-26: <think>...</think>, parsed as minimax.
Mistral
2026-09-26: [THINK]...[/THINK], opened by the model.
Gemma4
2026-09-26: <|channel>thought ... <channel|> ..., Gemma 4’s channel format.
Implementations§
Source§impl ReasoningFormat
impl ReasoningFormat
Sourcepub fn into_parser(self) -> Box<dyn ReasoningParser>
pub fn into_parser(self) -> Box<dyn ReasoningParser>
2026-09-26: A boxed parser for this format.
Trait Implementations§
Source§impl Clone for ReasoningFormat
impl Clone for ReasoningFormat
Source§fn clone(&self) -> ReasoningFormat
fn clone(&self) -> ReasoningFormat
Returns a duplicate of the value. Read more
1.0.0 · 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 ReasoningFormat
impl Debug for ReasoningFormat
Source§impl FromStr for ReasoningFormat
impl FromStr for ReasoningFormat
Source§impl PartialEq for ReasoningFormat
impl PartialEq for ReasoningFormat
impl Copy for ReasoningFormat
impl Eq for ReasoningFormat
impl StructuralPartialEq for ReasoningFormat
Auto Trait Implementations§
impl Freeze for ReasoningFormat
impl RefUnwindSafe for ReasoningFormat
impl Send for ReasoningFormat
impl Sync for ReasoningFormat
impl Unpin for ReasoningFormat
impl UnwindSafe for ReasoningFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more