pub struct TextDelta {
pub run_id: RunId,
pub delta: String,
pub timestamp: DateTime<Utc>,
}Expand description
Streaming text delta emitted during model response generation.
Fields§
§run_id: RunIdRun identifier.
delta: StringText delta.
timestamp: DateTime<Utc>When the delta was emitted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextDelta
impl<'de> Deserialize<'de> for TextDelta
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 TextDelta
impl RefUnwindSafe for TextDelta
impl Send for TextDelta
impl Sync for TextDelta
impl Unpin for TextDelta
impl UnsafeUnpin for TextDelta
impl UnwindSafe for TextDelta
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