pub enum LlmStreamEvent {
AttemptReset,
Delta(String),
ReasoningDelta(String),
Part(LlmOutputPart),
Usage(LlmUsage),
RetryStatus {
wait_seconds: u64,
attempt: usize,
max_attempts: usize,
reason: String,
},
}Variants§
AttemptReset
A retry is starting from the original request. Consumers must discard attempt-local accumulated parts and usage before accepting new events.
Delta(String)
Append-only visible assistant text. Providers must send only the new
suffix here; completed/cumulative message text belongs in Part(Text).
ReasoningDelta(String)
Incremental reasoning-summary text. Kept separate from Delta so
the UI can render it in a distinct muted/italic style rather than
mixing it into the assistant’s final text.
Part(LlmOutputPart)
Structured provider output state. Text parts reconcile final response state and replay metadata; they are not live-visible text deltas.
Usage(LlmUsage)
RetryStatus
Trait Implementations§
Source§impl Clone for LlmStreamEvent
impl Clone for LlmStreamEvent
Source§fn clone(&self) -> LlmStreamEvent
fn clone(&self) -> LlmStreamEvent
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 moreAuto Trait Implementations§
impl Freeze for LlmStreamEvent
impl RefUnwindSafe for LlmStreamEvent
impl Send for LlmStreamEvent
impl Sync for LlmStreamEvent
impl Unpin for LlmStreamEvent
impl UnsafeUnpin for LlmStreamEvent
impl UnwindSafe for LlmStreamEvent
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