pub struct VercelFormat;Expand description
Vercel AI SDK compatible SSE format.
Formats events using the Vercel AI SDK UI message stream protocol with
lifecycle frames (start-step, text-start, text-delta, text-end,
finish-step) and tool streaming. Adds the
x-vercel-ai-ui-message-stream: v1 header.
Trait Implementations§
Source§impl SseFormat for VercelFormat
impl SseFormat for VercelFormat
Source§fn format(&self, event: &EventEnvelope) -> Vec<SseFrame>
fn format(&self, event: &EventEnvelope) -> Vec<SseFrame>
Convert an event envelope into zero or more SSE frames. Read more
Source§fn done_frame(&self) -> Option<SseFrame>
fn done_frame(&self) -> Option<SseFrame>
An optional “done” frame to send when the stream terminates.
Auto Trait Implementations§
impl Freeze for VercelFormat
impl RefUnwindSafe for VercelFormat
impl Send for VercelFormat
impl Sync for VercelFormat
impl Unpin for VercelFormat
impl UnwindSafe for VercelFormat
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