pub struct CodexStreamParser { /* private fields */ }Expand description
Stateful wrapper around parse_codex_line that remembers the most
recent agent_message AgentEvent::Text and stitches it into the
terminal AgentEvent::Result when a turn.completed line arrives.
turn.completed carries no text of its own; the final agent_message of
the turn is the codex analogue of Claude’s terminal result text (the
validator report JSON), so “last agent_message wins”.
Implementations§
Trait Implementations§
Source§impl Debug for CodexStreamParser
impl Debug for CodexStreamParser
Source§impl Default for CodexStreamParser
impl Default for CodexStreamParser
Source§fn default() -> CodexStreamParser
fn default() -> CodexStreamParser
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CodexStreamParser
impl RefUnwindSafe for CodexStreamParser
impl Send for CodexStreamParser
impl Sync for CodexStreamParser
impl Unpin for CodexStreamParser
impl UnsafeUnpin for CodexStreamParser
impl UnwindSafe for CodexStreamParser
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