pub struct ThinkSplitter { /* private fields */ }Expand description
Splits streamed answer text into answer and <think> reasoning pieces,
handling tags split across chunks. Leading whitespace of the answer is
dropped, matching split_think_tags.
Implementations§
Source§impl ThinkSplitter
impl ThinkSplitter
Trait Implementations§
Source§impl Debug for ThinkSplitter
impl Debug for ThinkSplitter
Auto Trait Implementations§
impl Forget for ThinkSplitter
impl Freeze for ThinkSplitter
impl Move for ThinkSplitter
impl RefUnwindSafe for ThinkSplitter
impl Send for ThinkSplitterwhere
RawVecInner: Send,
impl Sync for ThinkSplitterwhere
RawVecInner: Sync,
impl Unpin for ThinkSplitter
impl UnsafeUnpin for ThinkSplitter
impl UnwindSafe for ThinkSplitterwhere
RawVecInner: UnwindSafe,
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