pub struct AssistantRow {
pub blocks: Vec<AssistantBlock>,
pub has_tool_calls: bool,
pub stop_reason: Option<StopReason>,
pub error_message: Option<String>,
pub streaming: bool,
}Expand description
Assistant message row.
Fields§
§blocks: Vec<AssistantBlock>Visible blocks in order.
has_tool_calls: boolThe message contains tool calls (errors are shown on the tool rows then).
stop_reason: Option<StopReason>Stop reason (None while streaming).
error_message: Option<String>Provider error text.
streaming: boolStill streaming.
Trait Implementations§
Source§impl Clone for AssistantRow
impl Clone for AssistantRow
Source§impl Debug for AssistantRow
impl Debug for AssistantRow
Source§impl PartialEq for AssistantRow
impl PartialEq for AssistantRow
impl StructuralPartialEq for AssistantRow
Auto Trait Implementations§
impl Freeze for AssistantRow
impl RefUnwindSafe for AssistantRow
impl Send for AssistantRow
impl Sync for AssistantRow
impl Unpin for AssistantRow
impl UnsafeUnpin for AssistantRow
impl UnwindSafe for AssistantRow
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