pub enum UiStreamPart {
Show 18 variants
Start {
message_id: String,
},
Finish {},
StartStep {},
FinishStep {},
Abort {
reason: String,
},
TextStart {
id: String,
},
TextDelta {
id: String,
delta: String,
},
TextEnd {
id: String,
},
ReasoningStart {
id: String,
},
ReasoningDelta {
id: String,
delta: String,
},
ReasoningEnd {
id: String,
},
ToolInputStart {
tool_call_id: String,
tool_name: String,
},
ToolInputDelta {
tool_call_id: String,
input_text_delta: String,
},
ToolInputAvailable {
tool_call_id: String,
tool_name: String,
input: Value,
},
ToolOutputAvailable {
tool_call_id: String,
output: Value,
},
Error {
error_text: String,
},
DataStatePatch {
data: Value,
},
DataApprovalRequest {
data: Value,
},
}Expand description
Vercel AI SDK v6 “UI Message Stream Protocol” part.
Each variant maps to a v6 stream part type. Custom Arcan extensions
use the data-* namespace per spec.
Variants§
Start
Finish
StartStep
FinishStep
Abort
TextStart
TextDelta
TextEnd
ReasoningStart
ReasoningDelta
ReasoningEnd
ToolInputStart
ToolInputDelta
ToolInputAvailable
ToolOutputAvailable
Error
DataStatePatch
DataApprovalRequest
Trait Implementations§
Source§impl Clone for UiStreamPart
impl Clone for UiStreamPart
Source§fn clone(&self) -> UiStreamPart
fn clone(&self) -> UiStreamPart
Returns a duplicate of the value. Read more
1.0.0 · 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 UiStreamPart
impl Debug for UiStreamPart
Source§impl<'de> Deserialize<'de> for UiStreamPart
impl<'de> Deserialize<'de> for UiStreamPart
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UiStreamPart
impl PartialEq for UiStreamPart
Source§impl Serialize for UiStreamPart
impl Serialize for UiStreamPart
impl StructuralPartialEq for UiStreamPart
Auto Trait Implementations§
impl Freeze for UiStreamPart
impl RefUnwindSafe for UiStreamPart
impl Send for UiStreamPart
impl Sync for UiStreamPart
impl Unpin for UiStreamPart
impl UnsafeUnpin for UiStreamPart
impl UnwindSafe for UiStreamPart
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