pub struct AssistantStreamTransform {
pub chunk: String,
pub reasoning_deltas: Vec<String>,
pub events: Vec<PluginRuntimeEvent>,
pub abort_stream: bool,
}Fields§
§chunk: String§reasoning_deltas: Vec<String>§events: Vec<PluginRuntimeEvent>§abort_stream: boolWhen true, the runtime cancels the in-flight LLM call the
moment this hook returns and finalizes the turn using whatever
text has been streamed so far. Any plugin may set this — the
first to raise it wins. Used by protocol plugins to enforce
one-block-per-turn contracts (e.g. the RLM stream mask aborts
as soon as the first lashlang fence closes).
Trait Implementations§
Source§impl Clone for AssistantStreamTransform
impl Clone for AssistantStreamTransform
Source§fn clone(&self) -> AssistantStreamTransform
fn clone(&self) -> AssistantStreamTransform
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 AssistantStreamTransform
impl Debug for AssistantStreamTransform
Source§impl Default for AssistantStreamTransform
impl Default for AssistantStreamTransform
Source§fn default() -> AssistantStreamTransform
fn default() -> AssistantStreamTransform
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AssistantStreamTransform
impl RefUnwindSafe for AssistantStreamTransform
impl Send for AssistantStreamTransform
impl Sync for AssistantStreamTransform
impl Unpin for AssistantStreamTransform
impl UnsafeUnpin for AssistantStreamTransform
impl UnwindSafe for AssistantStreamTransform
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