pub struct Event {
pub episode_id: String,
pub seq: u64,
pub ts: u64,
pub role: EventRole,
pub tool_name: Option<String>,
pub input_toon: String,
pub output_toon: String,
pub error: Option<String>,
pub metrics: EventMetrics,
}Expand description
An event represents a single step within an episode
Fields§
§episode_id: StringParent episode ID
seq: u64Sequence number within episode (monotonically increasing)
ts: u64Timestamp (microseconds since epoch)
role: EventRoleWho/what triggered this event
tool_name: Option<String>Tool name (if role == Tool)
input_toon: StringInput data in TOON format
output_toon: StringOutput data in TOON format
error: Option<String>Error message if event failed
metrics: EventMetricsPerformance metrics
Implementations§
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 UnsafeUnpin 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