pub enum WatcherEvent {
Turn(Box<Turn>),
TurnUpdated(Box<Turn>),
Progress {
kind: String,
data: Value,
},
}Expand description
Events emitted by a ConversationWatcher.
Variants§
Turn(Box<Turn>)
A turn seen for the first time.
TurnUpdated(Box<Turn>)
A previously-emitted turn with additional data filled in (e.g. tool results that arrived in a later log entry).
Consumers should replace their stored copy of the turn with this
updated version. The turn’s id field identifies which turn to replace.
Progress
A non-conversational progress/status event.
Trait Implementations§
Source§impl Clone for WatcherEvent
impl Clone for WatcherEvent
Source§fn clone(&self) -> WatcherEvent
fn clone(&self) -> WatcherEvent
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 moreAuto Trait Implementations§
impl Freeze for WatcherEvent
impl RefUnwindSafe for WatcherEvent
impl Send for WatcherEvent
impl Sync for WatcherEvent
impl Unpin for WatcherEvent
impl UnsafeUnpin for WatcherEvent
impl UnwindSafe for WatcherEvent
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