pub struct KimiStreamParser { /* private fields */ }Expand description
Stateful wrapper around parse_kimi_line that remembers the most
recent role: "assistant" AgentEvent::Text and, on the terminal
session.resume_hint line, synthesizes an AgentEvent::Init (the
session id first becomes known on this line) followed by the
AgentEvent::Result with text stitched from the last assistant
message.
Implementations§
Trait Implementations§
Source§impl Debug for KimiStreamParser
impl Debug for KimiStreamParser
Source§impl Default for KimiStreamParser
impl Default for KimiStreamParser
Source§fn default() -> KimiStreamParser
fn default() -> KimiStreamParser
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KimiStreamParser
impl RefUnwindSafe for KimiStreamParser
impl Send for KimiStreamParser
impl Sync for KimiStreamParser
impl Unpin for KimiStreamParser
impl UnsafeUnpin for KimiStreamParser
impl UnwindSafe for KimiStreamParser
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