pub struct ProposedPlanParser { /* private fields */ }Expand description
Parser for <proposed_plan> blocks emitted in plan mode.
Implements StreamTextParser so callers can consume:
visible_text: normal assistant text with plan blocks removedextracted: ordered plan segments (includesNormal(...)segments for ordering fidelity)
Implementations§
Trait Implementations§
Source§impl Debug for ProposedPlanParser
impl Debug for ProposedPlanParser
Source§impl Default for ProposedPlanParser
impl Default for ProposedPlanParser
Source§impl StreamTextParser for ProposedPlanParser
impl StreamTextParser for ProposedPlanParser
Source§type Extracted = ProposedPlanSegment
type Extracted = ProposedPlanSegment
Payload extracted by this parser (for example a citation body).
Source§fn push_str(&mut self, chunk: &str) -> StreamTextChunk<Self::Extracted>
fn push_str(&mut self, chunk: &str) -> StreamTextChunk<Self::Extracted>
Feed a new text chunk.
Source§fn finish(&mut self) -> StreamTextChunk<Self::Extracted>
fn finish(&mut self) -> StreamTextChunk<Self::Extracted>
Flush any buffered state at end-of-stream (or end-of-item).
Auto Trait Implementations§
impl Freeze for ProposedPlanParser
impl RefUnwindSafe for ProposedPlanParser
impl Send for ProposedPlanParser
impl Sync for ProposedPlanParser
impl Unpin for ProposedPlanParser
impl UnsafeUnpin for ProposedPlanParser
impl UnwindSafe for ProposedPlanParser
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