pub enum ScanSegment {
Text(String),
Thinking(String),
ToolCall(ToolCall),
}Expand description
A parsed segment of in-band model output.
Mirrors the terminal events of omp’s InbandScanEvent stream, collapsed to
the three segment kinds the agent loop consumes.
Variants§
Text(String)
Visible prose text.
Thinking(String)
Reasoning / chain-of-thought.
ToolCall(ToolCall)
A re-materialized tool call.
Trait Implementations§
Source§impl Clone for ScanSegment
impl Clone for ScanSegment
Source§fn clone(&self) -> ScanSegment
fn clone(&self) -> ScanSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScanSegment
impl Debug for ScanSegment
Source§impl PartialEq for ScanSegment
impl PartialEq for ScanSegment
impl StructuralPartialEq for ScanSegment
Auto Trait Implementations§
impl Freeze for ScanSegment
impl RefUnwindSafe for ScanSegment
impl Send for ScanSegment
impl Sync for ScanSegment
impl Unpin for ScanSegment
impl UnsafeUnpin for ScanSegment
impl UnwindSafe for ScanSegment
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