pub struct ThreadSnapshot {
pub version: u32,
pub thread_id: ThreadId,
pub messages: Vec<Message>,
pub state: Value,
pub reasoning: Vec<ReasoningMessage>,
pub subagents: Vec<Subagent>,
pub interrupts: Vec<Interrupt>,
pub submission: Option<ResumeSubmission>,
pub run_ids: Vec<RunId>,
pub last_run_end: Option<RunEnd>,
pub active_run_id: Option<RunId>,
}Available on crate feature
client only.Expand description
A versioned local snapshot. It contains conversation data, never a transport,
observer or running future. Validate it through restore before using it.
Fields§
§version: u32Snapshot format version (currently 1).
thread_id: ThreadIdThe remote conversation identifier.
messages: Vec<Message>Materialized conversation.
state: ValueCurrent raw shared state.
reasoning: Vec<ReasoningMessage>Materialized reasoning, separate from the conversation.
subagents: Vec<Subagent>Announced subagent lifecycle state.
interrupts: Vec<Interrupt>Questions which have not been confirmed as answered.
submission: Option<ResumeSubmission>A submitted decision whose acceptance has not been confirmed.
run_ids: Vec<RunId>Previously dispatched local run IDs, used to prevent reuse.
last_run_end: Option<RunEnd>The last locally observed termination, if any.
active_run_id: Option<RunId>A dispatched local run which had not ended when this snapshot was taken.
Trait Implementations§
Source§impl Clone for ThreadSnapshot
impl Clone for ThreadSnapshot
Source§fn clone(&self) -> ThreadSnapshot
fn clone(&self) -> ThreadSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreadSnapshot
impl Debug for ThreadSnapshot
Source§impl<'de> Deserialize<'de> for ThreadSnapshot
impl<'de> Deserialize<'de> for ThreadSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ThreadSnapshot
impl PartialEq for ThreadSnapshot
Source§impl Serialize for ThreadSnapshot
impl Serialize for ThreadSnapshot
impl StructuralPartialEq for ThreadSnapshot
Auto Trait Implementations§
impl Freeze for ThreadSnapshot
impl RefUnwindSafe for ThreadSnapshot
impl Send for ThreadSnapshot
impl Sync for ThreadSnapshot
impl Unpin for ThreadSnapshot
impl UnsafeUnpin for ThreadSnapshot
impl UnwindSafe for ThreadSnapshot
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