#[non_exhaustive]pub enum StreamMode {
Values,
Updates,
Messages,
Debug,
Events,
}Expand description
Which stream shape the caller wants.
Matches LangGraph’s stream_mode. Values and Updates are the most
common; Messages is for token-level UX; Debug and Events are for
observability.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Values
Emit the full output state after each step.
Updates
Emit only what changed at each step, tagged with the node name.
Messages
Emit token-level deltas from any underlying chat model.
Debug
Emit lifecycle markers (node start / node end / final).
Events
Emit runtime events (runnable started / runnable finished).
Trait Implementations§
Source§impl Clone for StreamMode
impl Clone for StreamMode
Source§fn clone(&self) -> StreamMode
fn clone(&self) -> StreamMode
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 StreamMode
impl Debug for StreamMode
Source§impl Hash for StreamMode
impl Hash for StreamMode
Source§impl PartialEq for StreamMode
impl PartialEq for StreamMode
Source§fn eq(&self, other: &StreamMode) -> bool
fn eq(&self, other: &StreamMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StreamMode
impl Eq for StreamMode
impl StructuralPartialEq for StreamMode
Auto Trait Implementations§
impl Freeze for StreamMode
impl RefUnwindSafe for StreamMode
impl Send for StreamMode
impl Sync for StreamMode
impl Unpin for StreamMode
impl UnsafeUnpin for StreamMode
impl UnwindSafe for StreamMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.