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
Auto Trait Implementations§
impl Forget for SessionEpisode
impl Freeze for SessionEpisode
impl Move for SessionEpisode
impl RefUnwindSafe for SessionEpisode
impl Send for SessionEpisode
impl Sync for SessionEpisode
impl Unpin for SessionEpisode
impl UnsafeUnpin for SessionEpisodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
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