pub struct ReplaySnapshot {
pub history: Vec<InfinityMessage>,
pub current_thinking: Option<String>,
pub in_progress: bool,
pub pending_choices: Vec<UserChoice>,
}Expand description
A live view of a thread, used to bring a newly attached subscriber up to
date. Produced when a subscriber attaches to a running thread (see
ThreadObserver::on_subscribe).
Fields§
§history: Vec<InfinityMessage>Committed history followed by the in-flight buffered turn, so a subscriber attaching while the model is streaming still sees the partial assistant message.
current_thinking: Option<String>In-progress reasoning text. Streamed reasoning is only committed to history once complete, so without this a client attaching mid-thinking would appear idle.
in_progress: boolWhether a completion is currently streaming.
pending_choices: Vec<UserChoice>Choices awaiting a user response for this conversation.
Trait Implementations§
Source§impl Clone for ReplaySnapshot
impl Clone for ReplaySnapshot
Auto Trait Implementations§
impl Freeze for ReplaySnapshot
impl RefUnwindSafe for ReplaySnapshot
impl Send for ReplaySnapshot
impl Sync for ReplaySnapshot
impl Unpin for ReplaySnapshot
impl UnsafeUnpin for ReplaySnapshot
impl UnwindSafe for ReplaySnapshot
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