pub struct ThinkingSession {
pub session_id: String,
pub title: String,
pub engine: ThinkingEngine,
pub metadata: HashMap<String, Value>,
pub created_at: DateTime<Utc>,
pub last_activity: DateTime<Utc>,
}Expand description
A thinking session managed by the client
Fields§
§session_id: StringSession ID
title: StringSession title
engine: ThinkingEngineLocal thinking engine
metadata: HashMap<String, Value>Session metadata
created_at: DateTime<Utc>Created timestamp
last_activity: DateTime<Utc>Last activity timestamp
Implementations§
Source§impl ThinkingSession
impl ThinkingSession
Sourcepub fn add_metadata(&mut self, key: String, value: Value)
pub fn add_metadata(&mut self, key: String, value: Value)
Add metadata to the session
Sourcepub fn get_stats(&self) -> ThinkingStats
pub fn get_stats(&self) -> ThinkingStats
Get session statistics
Sourcepub fn get_progress(&self) -> ThinkingProgress
pub fn get_progress(&self) -> ThinkingProgress
Get session progress
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if session is complete
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThinkingSession
impl RefUnwindSafe for ThinkingSession
impl Send for ThinkingSession
impl Sync for ThinkingSession
impl Unpin for ThinkingSession
impl UnwindSafe for ThinkingSession
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