pub struct ToolStream { /* private fields */ }Expand description
Splits streamed text into plain text and <tool_call>…</tool_call> calls, holding back a
possible partial tag at the end of a chunk.
Implementations§
Trait Implementations§
Source§impl Debug for ToolStream
impl Debug for ToolStream
Auto Trait Implementations§
impl Forget for ToolStream
impl Freeze for ToolStream
impl Move for ToolStream
impl RefUnwindSafe for ToolStream
impl Send for ToolStreamwhere
RawVecInner: Send,
impl Sync for ToolStreamwhere
RawVecInner: Sync,
impl Unpin for ToolStream
impl UnsafeUnpin for ToolStream
impl UnwindSafe for ToolStreamwhere
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