pub enum ControlMessage {
Entry {
v: u8,
entry: DisplayEntry,
},
Update {
v: u8,
update: DisplayEntryUpdate,
},
AgentDestroyed {
v: u8,
agent_key: String,
},
}Expand description
Sent from oby-hook to the wrapper’s control socket. JSON-line framed.
Variants§
Entry
A new entry to add to the agent’s timeline.
Update
Update to an existing entry (correlated by tool_use_id).
AgentDestroyed
A subagent has finished (its SubagentStop hook fired). The wrapper
flips that ring’s destroyed flag so the status dot turns red.
Implementations§
Source§impl ControlMessage
impl ControlMessage
pub fn entry(entry: DisplayEntry) -> Self
pub fn update(update: DisplayEntryUpdate) -> Self
pub fn agent_destroyed(agent_key: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ControlMessage
impl Clone for ControlMessage
Source§fn clone(&self) -> ControlMessage
fn clone(&self) -> ControlMessage
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 ControlMessage
impl Debug for ControlMessage
Source§impl<'de> Deserialize<'de> for ControlMessage
impl<'de> Deserialize<'de> for ControlMessage
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 ControlMessage
impl RefUnwindSafe for ControlMessage
impl Send for ControlMessage
impl Sync for ControlMessage
impl Unpin for ControlMessage
impl UnsafeUnpin for ControlMessage
impl UnwindSafe for ControlMessage
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