pub struct ChatLine {
pub role: ChatRole,
pub text: String,
pub tool: Option<ProjectedTool>,
pub reordered: bool,
pub source_time: Option<SourceTimeObservation>,
pub source_step: Option<u64>,
}Expand description
One line in the projected chat.
Fields§
§role: ChatRoleSpeaker / surface.
text: StringMarkdown (or plain) body for agent/thinking/status lines.
tool: Option<ProjectedTool>Tool payload when role == Tool.
reordered: boolTrue when this line was placed by structural zip (not pure emit order).
source_time: Option<SourceTimeObservation>Dialect source time when present (observational).
source_step: Option<u64>Dialect stream step when present (observational).
Trait Implementations§
impl Eq for ChatLine
impl StructuralPartialEq for ChatLine
Auto Trait Implementations§
impl Freeze for ChatLine
impl RefUnwindSafe for ChatLine
impl Send for ChatLine
impl Sync for ChatLine
impl Unpin for ChatLine
impl UnsafeUnpin for ChatLine
impl UnwindSafe for ChatLine
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.