pub enum WatchEvent {
Show 13 variants
ResponseStart,
ResponseReset,
Thinking {
text: String,
},
Text {
text: String,
},
ToolUseStart {
tool_id: String,
tool_name: String,
},
ToolUse {
tool_id: String,
tool_name: String,
input: Value,
},
ToolResultDelta {
tool_id: String,
delta: String,
},
ToolResult {
tool_id: String,
result: String,
},
ToolQueued {
tool_id: String,
},
ToolStarted {
tool_id: String,
},
Steered {
text: String,
},
Done,
Failed {
category: String,
},
}Expand description
One presentation event of a worker, in the shape the TUI’s transcript
applies (stream_handler::apply_transcript_event).
Variants§
ResponseStart
ResponseReset
Thinking
Text
ToolUseStart
ToolUse
ToolResultDelta
ToolResult
ToolQueued
The call waits behind another in its scheduler lane
(LlmEvent::ToolQueued). Only in pages a client asked for with
tool_queue: true: this enum has no #[serde(other)], so an older
client would fail the whole page on it.
ToolStarted
A queued call began executing (LlmEvent::ToolStarted). Same gate.
Steered
A steering message the worker took in (from the user or its parent).
Done
Failed
Terminal failure: the category label only, never the raw message.
Implementations§
Source§impl WatchEvent
impl WatchEvent
Sourcepub fn from_stream(event: &StreamEvent) -> Option<WatchEvent>
pub fn from_stream(event: &StreamEvent) -> Option<WatchEvent>
The journal entry for a worker stream event, if it is one the watch view shows.
Sourcepub fn to_stream(&self) -> Option<StreamEvent>
pub fn to_stream(&self) -> Option<StreamEvent>
The stream event a client replays to render this entry through the
same transcript path as the main conversation. Failed has none:
clients render its category themselves.
Trait Implementations§
Source§impl Clone for WatchEvent
impl Clone for WatchEvent
Source§fn clone(&self) -> WatchEvent
fn clone(&self) -> WatchEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WatchEvent
impl Debug for WatchEvent
Source§impl<'de> Deserialize<'de> for WatchEvent
impl<'de> Deserialize<'de> for WatchEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WatchEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WatchEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for WatchEvent
impl PartialEq for WatchEvent
Source§impl Serialize for WatchEvent
impl Serialize for WatchEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for WatchEvent
Auto Trait Implementations§
impl Freeze for WatchEvent
impl RefUnwindSafe for WatchEvent
impl Send for WatchEvent
impl Sync for WatchEvent
impl Unpin for WatchEvent
impl UnsafeUnpin for WatchEvent
impl UnwindSafe for WatchEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more