pub struct MemorySummary {
pub summary: String,
pub message_count: usize,
pub original_tokens: usize,
pub summary_tokens: usize,
pub start_time: DateTime<Utc>,
pub end_time: DateTime<Utc>,
pub metadata: HashMap<String, Value>,
}Expand description
Memory summary for efficient storage
Fields§
§summary: StringSummary text
message_count: usizeNumber of messages summarized
original_tokens: usizeToken count of original messages
summary_tokens: usizeToken count of summary
start_time: DateTime<Utc>Time range covered - start time
end_time: DateTime<Utc>Time range covered - end time
metadata: HashMap<String, Value>Summary metadata
Trait Implementations§
Source§impl Clone for MemorySummary
impl Clone for MemorySummary
Source§fn clone(&self) -> MemorySummary
fn clone(&self) -> MemorySummary
Returns a duplicate of the value. Read more
1.0.0 · 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 MemorySummary
impl Debug for MemorySummary
Source§impl<'de> Deserialize<'de> for MemorySummary
impl<'de> Deserialize<'de> for MemorySummary
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 MemorySummary
impl RefUnwindSafe for MemorySummary
impl Send for MemorySummary
impl Sync for MemorySummary
impl Unpin for MemorySummary
impl UnwindSafe for MemorySummary
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