Skip to main content

Module think_splitter

Module think_splitter 

Source
Expand description

Separating a model’s “thinking” spans (delimited by tags like <think>…</think>) from its visible text as the stream arrives.

Structs§

TagPair
A matching pair of open/close thinking delimiters.
ThinkSplitter
A streaming splitter that separates thinking spans from visible text.

Enums§

Piece
A run of separated output: either visible text or hidden thinking.

Functions§

default_pairs
The default thinking delimiters recognized.
has_visible_tags
Whether text contains any default thinking delimiter.