pub enum ReasoningFormat {
Qwen,
DeepSeekR1,
MiniMax,
Mistral,
Gemma4,
}Expand description
Supported reasoning-block formats. One variant per model family — see the module docs for the delimiter/contract of each.
Variants§
Qwen
<think>...</think> — Qwen3 family.
DeepSeekR1
<think>...</think> — DeepSeek-R1 / NVIDIA Nemotron (nano_v3).
MiniMax
<think>...</think> — MiniMax M2 / M2.7.
Mistral
[THINK]...[/THINK] — Mistral / Magistral.
Gemma4
<|channel>thought ... <channel|> ... — Gemma 4 channel format.
Implementations§
Source§impl ReasoningFormat
impl ReasoningFormat
Sourcepub fn into_parser(self) -> Box<dyn ReasoningParser>
pub fn into_parser(self) -> Box<dyn ReasoningParser>
Create 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
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