pub enum ThreadKind {
Chat,
SubAgent {
agent_id: String,
task: String,
},
Background {
purpose: String,
},
Task {
action: String,
},
}Expand description
What kind of thread this is.
Variants§
Chat
User-interactive chat thread (persistent, has messages)
SubAgent
Spawned sub-agent (ephemeral, autonomous, may return result)
Fields
Background
Long-running background work (persistent, autonomous)
Task
One-shot task (ephemeral, returns result and exits)
Implementations§
Source§impl ThreadKind
impl ThreadKind
Sourcepub fn display_name(&self) -> &str
pub fn display_name(&self) -> &str
Display name for the kind.
Sourcepub fn is_interactive(&self) -> bool
pub fn is_interactive(&self) -> bool
Is this an interactive thread?
Sourcepub fn is_ephemeral(&self) -> bool
pub fn is_ephemeral(&self) -> bool
Is this ephemeral (auto-cleanup when done)?
Trait Implementations§
Source§impl Clone for ThreadKind
impl Clone for ThreadKind
Source§fn clone(&self) -> ThreadKind
fn clone(&self) -> ThreadKind
Returns a duplicate of the value. Read more
1.0.0 · 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 ThreadKind
impl Debug for ThreadKind
Source§impl<'de> Deserialize<'de> for ThreadKind
impl<'de> Deserialize<'de> for ThreadKind
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 ThreadKind
impl PartialEq for ThreadKind
Source§impl Serialize for ThreadKind
impl Serialize for ThreadKind
impl Eq for ThreadKind
impl StructuralPartialEq for ThreadKind
Auto Trait Implementations§
impl Freeze for ThreadKind
impl RefUnwindSafe for ThreadKind
impl Send for ThreadKind
impl Sync for ThreadKind
impl Unpin for ThreadKind
impl UnsafeUnpin for ThreadKind
impl UnwindSafe for ThreadKind
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
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.