pub struct SessionContext {
pub session_id: Option<String>,
pub history: Vec<Message>,
pub formatted_history: String,
pub graph_context: Option<String>,
}Expand description
Session context passed to retrievers: the session ID and any loaded conversation history (as LLM messages).
Fields§
§session_id: Option<String>§history: Vec<Message>§formatted_history: String§graph_context: Option<String>Stored knowledge-graph snapshot to prepend to history.
Set by improve() stage 4 (sync_graph_to_session) and loaded by the
search orchestrator before retrieval, so follow-up questions benefit from
prior graph knowledge. Matches Python’s get_graph_context / prepend
logic in session_manager.py:435-450.
Trait Implementations§
Source§impl Clone for SessionContext
impl Clone for SessionContext
Source§fn clone(&self) -> SessionContext
fn clone(&self) -> SessionContext
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 moreSource§impl Debug for SessionContext
impl Debug for SessionContext
Source§impl Default for SessionContext
impl Default for SessionContext
Source§fn default() -> SessionContext
fn default() -> SessionContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionContext
impl RefUnwindSafe for SessionContext
impl Send for SessionContext
impl Sync for SessionContext
impl Unpin for SessionContext
impl UnsafeUnpin for SessionContext
impl UnwindSafe for SessionContext
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