pub enum AssistantBlock {
Text(String),
Thinking(String),
Image(Vec<u8>),
}Expand description
A single visible block of an assistant message, in document order. This is
the provider-free projection the component renders from — the host maps
rpi_ai::Content::{Text, Thinking} into these (dropping tool-call / image
blocks, which are rendered by their own components).
Variants§
Text(String)
Plain assistant text (rendered as markdown).
Thinking(String)
Reasoning / thinking text (rendered as dim italic markdown).
Image(Vec<u8>)
Inline image bytes decoded from the provider’s base64 image block.
Trait Implementations§
Source§impl Clone for AssistantBlock
impl Clone for AssistantBlock
Source§impl Debug for AssistantBlock
impl Debug for AssistantBlock
impl Eq for AssistantBlock
Source§impl PartialEq for AssistantBlock
impl PartialEq for AssistantBlock
impl StructuralPartialEq for AssistantBlock
Auto Trait Implementations§
impl Freeze for AssistantBlock
impl RefUnwindSafe for AssistantBlock
impl Send for AssistantBlock
impl Sync for AssistantBlock
impl Unpin for AssistantBlock
impl UnsafeUnpin for AssistantBlock
impl UnwindSafe for AssistantBlock
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