pub enum Event {
Status(StatusEvent),
Progress(ProgressEvent),
Executed(ExecutedEvent),
Executing(ExecutingEvent),
ExecutionStart(ExecutionStartEvent),
ExecutionError(ExecutionErrorEvent),
ExecutionCached(ExecutionCachedEvent),
ExecutionInterrupted(ExecutionInterruptedEvent),
Unknown(Value),
}Expand description
Represents events emitted by the system.
The enum variants correspond to different event types. The Unknown variant
holds raw JSON data for unrecognized events.
Variants§
Status(StatusEvent)
A status event containing execution information.
Progress(ProgressEvent)
A progress event indicating current progress.
Executed(ExecutedEvent)
An event indicating that a node has completed execution along with its output.
Executing(ExecutingEvent)
An event indicating that a node is currently executing.
ExecutionStart(ExecutionStartEvent)
An event signaling the start of execution for a prompt.
ExecutionError(ExecutionErrorEvent)
An event signaling that an error occurred during execution.
ExecutionCached(ExecutionCachedEvent)
An event indicating that the execution results were retrieved from the cache.
ExecutionInterrupted(ExecutionInterruptedEvent)
An event indicating that the execution was interrupted.
Unknown(Value)
An unknown event type that encapsulates raw JSON data.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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 Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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