pub enum SyntheticKind {
Tagged(TaggedSyntheticKind),
SubscriptionEvent(ToolCallId),
}Expand description
Distinguishes subscription events (which spawn a subthread) from thread reports (which inject directly into the target thread). A plain string deserializes as SubscriptionEvent for backward compatibility.
Variants§
Tagged(TaggedSyntheticKind)
SubscriptionEvent(ToolCallId)
Backward compat: a bare string is treated as a subscription event
Implementations§
Source§impl SyntheticKind
impl SyntheticKind
pub fn tool_call_id(&self) -> &ToolCallId<str>
pub fn is_thread_report(&self) -> bool
pub fn is_parent_message(&self) -> bool
pub fn is_compaction(&self) -> bool
pub fn is_compaction_complete(&self) -> bool
Sourcepub fn is_associative(&self) -> bool
pub fn is_associative(&self) -> bool
Associative subscription events are injected inline into the subscribing thread’s history (like thread reports) rather than spawning a child thread.
Trait Implementations§
Source§impl Clone for SyntheticKind
impl Clone for SyntheticKind
Source§impl Debug for SyntheticKind
impl Debug for SyntheticKind
Source§impl<'de> Deserialize<'de> for SyntheticKind
impl<'de> Deserialize<'de> for SyntheticKind
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 SyntheticKind
impl RefUnwindSafe for SyntheticKind
impl Send for SyntheticKind
impl Sync for SyntheticKind
impl Unpin for SyntheticKind
impl UnsafeUnpin for SyntheticKind
impl UnwindSafe for SyntheticKind
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