pub struct EventData {
pub input: Option<Value>,
pub output: Option<Value>,
pub chunk: Option<Value>,
pub error: Option<String>,
pub category: Option<ContentCategory>,
}Expand description
Data payload for standard stream events.
Fields§
§input: Option<Value>Input data.
output: Option<Value>Output data.
chunk: Option<Value>Chunk data (for streaming events).
error: Option<String>Error description.
category: Option<ContentCategory>Content category distinguishing primary response content from secondary metadata such as tool calls and usage metrics.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventData
impl<'de> Deserialize<'de> for EventData
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 EventData
impl RefUnwindSafe for EventData
impl Send for EventData
impl Sync for EventData
impl Unpin for EventData
impl UnsafeUnpin for EventData
impl UnwindSafe for EventData
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