pub struct RunStartedEvent {
pub base: BaseEvent,
pub thread_id: ThreadId,
pub run_id: RunId,
}Expand description
Event indicating that a run has started.
This event is sent when an agent run begins execution within a specific thread. A run represents a single agent execution that may produce multiple events.
Fields§
§base: BaseEventCommon event fields (timestamp, rawEvent).
thread_id: ThreadIdThe thread ID this run belongs to.
run_id: RunIdUnique identifier for this run.
Implementations§
Source§impl RunStartedEvent
impl RunStartedEvent
Sourcepub fn new(
thread_id: impl Into<ThreadId>,
run_id: impl Into<RunId>,
) -> RunStartedEvent
pub fn new( thread_id: impl Into<ThreadId>, run_id: impl Into<RunId>, ) -> RunStartedEvent
Creates a new RunStartedEvent.
Sourcepub fn with_timestamp(self, timestamp: f64) -> RunStartedEvent
pub fn with_timestamp(self, timestamp: f64) -> RunStartedEvent
Sets the timestamp for this event.
Trait Implementations§
Source§impl Clone for RunStartedEvent
impl Clone for RunStartedEvent
Source§fn clone(&self) -> RunStartedEvent
fn clone(&self) -> RunStartedEvent
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 moreSource§impl Debug for RunStartedEvent
impl Debug for RunStartedEvent
Source§impl<'de> Deserialize<'de> for RunStartedEvent
impl<'de> Deserialize<'de> for RunStartedEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunStartedEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunStartedEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RunStartedEvent
impl PartialEq for RunStartedEvent
Source§impl Serialize for RunStartedEvent
impl Serialize for RunStartedEvent
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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RunStartedEvent
Auto Trait Implementations§
impl Freeze for RunStartedEvent
impl RefUnwindSafe for RunStartedEvent
impl Send for RunStartedEvent
impl Sync for RunStartedEvent
impl Unpin for RunStartedEvent
impl UnsafeUnpin for RunStartedEvent
impl UnwindSafe for RunStartedEvent
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