pub struct SummarizedSegment {
pub time_range: (DateTime<Utc>, DateTime<Utc>),
pub original_count: usize,
pub summary: String,
pub key_points: Vec<String>,
}Expand description
A segment of conversation history that has been summarized.
Fields§
§time_range: (DateTime<Utc>, DateTime<Utc>)Timestamp range of the summarized messages.
original_count: usizeNumber of original messages in this segment.
summary: StringThe summary text.
key_points: Vec<String>Key decisions or actions taken during this segment.
Implementations§
Source§impl SummarizedSegment
impl SummarizedSegment
Sourcepub fn to_message(&self) -> Message
pub fn to_message(&self) -> Message
Render as a system message for context injection.
Trait Implementations§
Source§impl Clone for SummarizedSegment
impl Clone for SummarizedSegment
Source§fn clone(&self) -> SummarizedSegment
fn clone(&self) -> SummarizedSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SummarizedSegment
impl Debug for SummarizedSegment
Source§impl<'de> Deserialize<'de> for SummarizedSegment
impl<'de> Deserialize<'de> for SummarizedSegment
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 SummarizedSegment
impl RefUnwindSafe for SummarizedSegment
impl Send for SummarizedSegment
impl Sync for SummarizedSegment
impl Unpin for SummarizedSegment
impl UnsafeUnpin for SummarizedSegment
impl UnwindSafe for SummarizedSegment
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