pub struct ThinkingSession {
pub session_id: String,
pub metadata: SessionMetadata,
pub engine: ThinkingEngine,
/* private fields */
}Expand description
A thinking session
Fields§
§session_id: StringSession ID
metadata: SessionMetadataSession metadata
engine: ThinkingEngineThinking engine
Implementations§
Source§impl ThinkingSession
impl ThinkingSession
Sourcepub fn with_metadata(session_id: String, metadata: SessionMetadata) -> Self
pub fn with_metadata(session_id: String, metadata: SessionMetadata) -> Self
Create a new thinking session with metadata
Sourcepub fn status(&self) -> &SessionStatus
pub fn status(&self) -> &SessionStatus
Get session status
Sourcepub fn set_status(&mut self, status: SessionStatus)
pub fn set_status(&mut self, status: SessionStatus)
Set session status
Sourcepub fn priority(&self) -> &SessionPriority
pub fn priority(&self) -> &SessionPriority
Get session priority
Sourcepub fn set_priority(&mut self, priority: SessionPriority)
pub fn set_priority(&mut self, priority: SessionPriority)
Set session priority
Sourcepub fn remove_tag(&mut self, tag: &str)
pub fn remove_tag(&mut self, tag: &str)
Remove a tag from the session
Sourcepub fn set_custom_data(&mut self, key: String, value: Value)
pub fn set_custom_data(&mut self, key: String, value: Value)
Set custom metadata
Sourcepub fn get_custom_data(&self, key: &str) -> Option<&Value>
pub fn get_custom_data(&self, key: &str) -> Option<&Value>
Get custom metadata
Sourcepub fn is_expired(&self) -> bool
pub fn is_expired(&self) -> bool
Check if session is expired
Sourcepub fn get_progress(&self) -> ThinkingProgress
pub fn get_progress(&self) -> ThinkingProgress
Get session progress
Sourcepub fn get_stats(&self) -> ThinkingStats
pub fn get_stats(&self) -> ThinkingStats
Get session statistics
Sourcepub fn get_thoughts(&self) -> Vec<ThoughtData>
pub fn get_thoughts(&self) -> Vec<ThoughtData>
Get all thoughts in the session
Trait Implementations§
Source§impl Clone for ThinkingSession
impl Clone for ThinkingSession
Source§fn clone(&self) -> ThinkingSession
fn clone(&self) -> ThinkingSession
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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