pub struct BobStreamParser { /* private fields */ }Expand description
Stateful wrapper over parse_bob_line for a single bob run. bob
streams its reasoning inline as <thinking>…</thinking> within the
assistant message content (grounded in a real run — the tags arrive
as their own deltas), so routing that reasoning to the Thinking
stream requires tracking the open/closed state across lines. The
per-line dispatch (text / tool events / answer) stays in
parse_bob_line; this only re-routes assistant text through the
thinking-tag state machine. One instance per run (see BobHarness).
Implementations§
Source§impl BobStreamParser
impl BobStreamParser
Sourcepub fn parse_line(&mut self, line: &str) -> ParsedLine
pub fn parse_line(&mut self, line: &str) -> ParsedLine
Parse one stdout line, routing any assistant text through the
<thinking> state machine into ParsedLine::text /
ParsedLine::thinking.
Trait Implementations§
Source§impl Debug for BobStreamParser
impl Debug for BobStreamParser
Source§impl Default for BobStreamParser
impl Default for BobStreamParser
Source§fn default() -> BobStreamParser
fn default() -> BobStreamParser
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BobStreamParser
impl RefUnwindSafe for BobStreamParser
impl Send for BobStreamParser
impl Sync for BobStreamParser
impl Unpin for BobStreamParser
impl UnsafeUnpin for BobStreamParser
impl UnwindSafe for BobStreamParser
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