pub struct ThreadInfo {
pub parent_thread_id: Option<ThreadId>,
pub root_thread_id: ThreadId,
pub spawn_message_order: Option<i64>,
pub spawn_tool_call_id: Option<String>,
pub closed: bool,
pub is_subscription_event: bool,
pub is_compaction: bool,
}Expand description
One thread’s bookkeeping in an InMemoryConversationStore.
Public and serializable so embeddings that layer persistence on top (like
the Infinity Code daemon) can snapshot and restore threads through
InMemoryConversationStore::thread_info /
set_thread_info without
re-implementing the store semantics.
Fields§
§parent_thread_id: Option<ThreadId>§root_thread_id: ThreadId§spawn_message_order: Option<i64>Number of parent messages the child inherits (history cutoff).
spawn_tool_call_id: Option<String>§closed: bool§is_subscription_event: bool§is_compaction: boolTrait Implementations§
Source§impl Clone for ThreadInfo
impl Clone for ThreadInfo
Source§fn clone(&self) -> ThreadInfo
fn clone(&self) -> ThreadInfo
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 ThreadInfo
impl Debug for ThreadInfo
Source§impl<'de> Deserialize<'de> for ThreadInfo
impl<'de> Deserialize<'de> for ThreadInfo
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
Auto Trait Implementations§
impl Freeze for ThreadInfo
impl RefUnwindSafe for ThreadInfo
impl Send for ThreadInfo
impl Sync for ThreadInfo
impl Unpin for ThreadInfo
impl UnsafeUnpin for ThreadInfo
impl UnwindSafe for ThreadInfo
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