pub struct EventCompaction {
pub start_timestamp: DateTime<Utc>,
pub end_timestamp: DateTime<Utc>,
pub compacted_content: Option<Content>,
pub excluded_events: Vec<EventRef>,
}Expand description
Records that a contiguous range of events has been replaced by one piece of content, typically a model-generated summary. Both bounds are inclusive.
Fields§
§start_timestamp: DateTime<Utc>Timestamp of the earliest covered event (inclusive).
end_timestamp: DateTime<Utc>Timestamp of the latest covered event (inclusive); never before start_timestamp.
compacted_content: Option<Content>The content that replaces the covered events in the prompt (null when None).
excluded_events: Vec<EventRef>Events inside the range that this summary does NOT stand in for.
Trait Implementations§
Source§impl Clone for EventCompaction
impl Clone for EventCompaction
Source§impl Debug for EventCompaction
impl Debug for EventCompaction
Source§impl<'de> Deserialize<'de> for EventCompaction
impl<'de> Deserialize<'de> for EventCompaction
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
Source§impl PartialEq for EventCompaction
impl PartialEq for EventCompaction
Source§impl Serialize for EventCompaction
impl Serialize for EventCompaction
impl StructuralPartialEq for EventCompaction
Auto Trait Implementations§
impl Forget for EventCompaction
impl Freeze for EventCompaction
impl Move for EventCompaction
impl RefUnwindSafe for EventCompaction
impl Send for EventCompaction
impl Sync for EventCompaction
impl Unpin for EventCompaction
impl UnsafeUnpin for EventCompaction
impl UnwindSafe for EventCompaction
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