pub struct SessionEpisode {
pub session_id: String,
pub entry_id: String,
pub turn_index: usize,
pub role: String,
pub content: String,
pub timestamp: DateTime<Utc>,
}Expand description
A single episode read from a session, neutral to the session storage format.
Fields§
§session_id: StringThe session this episode belongs to.
entry_id: StringUnique identifier for this episode entry.
turn_index: usizePosition of this episode in the session sequence.
role: StringThe role that produced this episode: "user", "assistant", "system", "tool".
content: StringThe text content of this episode.
timestamp: DateTime<Utc>When this episode was created.
Trait Implementations§
Source§impl Clone for SessionEpisode
impl Clone for SessionEpisode
Source§fn clone(&self) -> SessionEpisode
fn clone(&self) -> SessionEpisode
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 moreAuto Trait Implementations§
impl Freeze for SessionEpisode
impl RefUnwindSafe for SessionEpisode
impl Send for SessionEpisode
impl Sync for SessionEpisode
impl Unpin for SessionEpisode
impl UnsafeUnpin for SessionEpisode
impl UnwindSafe for SessionEpisode
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