pub enum ChatEvent {
Content(String),
Thinking(String),
ToolCallDetected {
id: String,
uuid: String,
description: String,
arguments: String,
},
Complete,
Error(String),
}Expand description
Events emitted by the chat state machine.
These are structured — clients never see raw <think> or <tool_call> tags.
Variants§
Content(String)
Display text content chunk.
Thinking(String)
Thinking/reasoning block chunk.
ToolCallDetected
A complete tool call was detected in the model output.
Complete
The model finished generating (stream complete).
Error(String)
Stream error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChatEvent
impl RefUnwindSafe for ChatEvent
impl Send for ChatEvent
impl Sync for ChatEvent
impl Unpin for ChatEvent
impl UnsafeUnpin for ChatEvent
impl UnwindSafe for ChatEvent
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