pub struct RuntimeEventEnvelope {
pub event_id: RuntimeEventId,
pub seq: u64,
pub run_id: RunId,
pub session_id: Option<Uuid>,
pub event: AgentEvent,
pub emitted_at: DateTime<Utc>,
}Expand description
Envelope wrapping an AgentEvent with cross-instance routing metadata.
seq is monotonic per run_id; it is the unit clients use to resume a
stream after a disconnect (run_id + seq). event_id is globally unique
and is the canonical deduplication key when the same envelope is delivered
more than once.
Fields§
§event_id: RuntimeEventIdGlobally unique event identity.
seq: u64Per-run monotonic sequence number.
run_id: RunIdRun this event belongs to.
session_id: Option<Uuid>Session this event belongs to, when known from RunStarted.
event: AgentEventThe wrapped runtime event.
emitted_at: DateTime<Utc>When the envelope was emitted by the runtime bridge.
Implementations§
Source§impl RuntimeEventEnvelope
impl RuntimeEventEnvelope
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Delegates to AgentEvent::is_terminal.
True for RunCompleted / RunFailed / RunCancelled.
Trait Implementations§
Source§impl Clone for RuntimeEventEnvelope
impl Clone for RuntimeEventEnvelope
Source§fn clone(&self) -> RuntimeEventEnvelope
fn clone(&self) -> RuntimeEventEnvelope
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 RuntimeEventEnvelope
impl Debug for RuntimeEventEnvelope
Source§impl<'de> Deserialize<'de> for RuntimeEventEnvelope
impl<'de> Deserialize<'de> for RuntimeEventEnvelope
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 RuntimeEventEnvelope
impl RefUnwindSafe for RuntimeEventEnvelope
impl Send for RuntimeEventEnvelope
impl Sync for RuntimeEventEnvelope
impl Unpin for RuntimeEventEnvelope
impl UnsafeUnpin for RuntimeEventEnvelope
impl UnwindSafe for RuntimeEventEnvelope
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