pub struct Session {
pub session_id: SessionId,
pub thread_id: ThreadId,
pub model: String,
pub workspace: PathBuf,
pub messages_revision: u64,
}Expand description
Ephemeral session within a thread (one engine lifetime / one turn’s
live posture). The TUI’s EngineHandle and the headless exec both
hold a Session that points at the same ThreadId but with different
SessionIds.
Fields§
§session_id: SessionId§thread_id: ThreadId§model: StringModel for this session’s next turn (may differ from thread default).
workspace: PathBuf§messages_revision: u64Monotonic messages_revision for prefix-cache memoization (carried
from the former Session::messages_revision).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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