pub struct Episode {
pub id: String,
pub timestamp: DateTime<Utc>,
pub summary: String,
pub topics: Vec<String>,
pub importance: f64,
pub session_id: Option<String>,
pub insights: Vec<String>,
pub metadata: HashMap<String, String>,
}Expand description
An episode (summarized interaction or event)
Fields§
§id: StringUnique identifier
timestamp: DateTime<Utc>When this episode occurred
summary: StringSummary of the interaction/event
topics: Vec<String>Key topics discussed
importance: f64Importance score (0.0 to 1.0)
session_id: Option<String>Optional session ID this episode is from
insights: Vec<String>Extracted facts or insights
metadata: HashMap<String, String>Optional metadata
Implementations§
Source§impl Episode
impl Episode
Sourcepub fn with_topics(self, topics: Vec<String>) -> Self
pub fn with_topics(self, topics: Vec<String>) -> Self
Set topics
Sourcepub fn with_importance(self, importance: f64) -> Self
pub fn with_importance(self, importance: f64) -> Self
Set importance
Sourcepub fn with_session_id(self, session_id: impl Into<String>) -> Self
pub fn with_session_id(self, session_id: impl Into<String>) -> Self
Set session ID
Sourcepub fn with_insights(self, insights: Vec<String>) -> Self
pub fn with_insights(self, insights: Vec<String>) -> Self
Add insights
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Episode
impl<'de> Deserialize<'de> for Episode
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 Episode
impl RefUnwindSafe for Episode
impl Send for Episode
impl Sync for Episode
impl Unpin for Episode
impl UnwindSafe for Episode
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