pub struct GrokSession {
pub chat_history: Vec<ChatRecord>,
pub updates: Vec<Value>,
pub events: Vec<Value>,
pub rewind_points: Vec<Value>,
pub summary: Option<Value>,
pub prompt_context: Option<Value>,
pub resources_state: Option<Value>,
pub signals: Option<Value>,
pub system_prompt: Option<String>,
}Expand description
Faithful in-memory representation of one Grok session directory.
chat_history is typed per record kind; everything else is raw JSON so
native ↔ disk stays lossless without modeling Grok’s internals. The
terminal/ output logs and *.lock files are intentionally not carried
(ephemeral tool-output scratch, not session state).
Fields§
§chat_history: Vec<ChatRecord>§updates: Vec<Value>§events: Vec<Value>§rewind_points: Vec<Value>§summary: Option<Value>§prompt_context: Option<Value>§resources_state: Option<Value>§signals: Option<Value>§system_prompt: Option<String>Trait Implementations§
Source§impl Clone for GrokSession
impl Clone for GrokSession
Source§fn clone(&self) -> GrokSession
fn clone(&self) -> GrokSession
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 GrokSession
impl Debug for GrokSession
Source§impl<'de> Deserialize<'de> for GrokSession
impl<'de> Deserialize<'de> for GrokSession
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
Source§impl PartialEq for GrokSession
impl PartialEq for GrokSession
Source§impl Serialize for GrokSession
impl Serialize for GrokSession
impl StructuralPartialEq for GrokSession
Auto Trait Implementations§
impl Freeze for GrokSession
impl RefUnwindSafe for GrokSession
impl Send for GrokSession
impl Sync for GrokSession
impl Unpin for GrokSession
impl UnsafeUnpin for GrokSession
impl UnwindSafe for GrokSession
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