pub struct ThinkingEngine { /* private fields */ }Expand description
Main thinking engine that coordinates the thinking process
Implementations§
Source§impl ThinkingEngine
impl ThinkingEngine
Sourcepub fn with_logging(disable_logging: bool) -> Self
pub fn with_logging(disable_logging: bool) -> Self
Create a new thinking engine with logging configuration
Sourcepub fn start_session(&mut self, session_id: String)
pub fn start_session(&mut self, session_id: String)
Start a new thinking session
Sourcepub async fn process_thought(
&mut self,
thought: ThoughtData,
) -> Result<ThoughtData, String>
pub async fn process_thought( &mut self, thought: ThoughtData, ) -> Result<ThoughtData, String>
Process a thought and add it to the session
Sourcepub fn get_progress(&self) -> &ThinkingProgress
pub fn get_progress(&self) -> &ThinkingProgress
Get the current thinking progress
Sourcepub fn get_thoughts(&self) -> &[ThoughtData]
pub fn get_thoughts(&self) -> &[ThoughtData]
Get all thoughts in the current session
Sourcepub fn get_branches(&self) -> &HashMap<String, ThoughtBranch>
pub fn get_branches(&self) -> &HashMap<String, ThoughtBranch>
Get all branches in the current session
Sourcepub fn get_stats(&self) -> &ThinkingStats
pub fn get_stats(&self) -> &ThinkingStats
Get thinking statistics
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if the thinking session is complete
Sourcepub fn session_id(&self) -> Option<&str>
pub fn session_id(&self) -> Option<&str>
Get the session ID
Trait Implementations§
Source§impl Clone for ThinkingEngine
impl Clone for ThinkingEngine
Source§impl Debug for ThinkingEngine
impl Debug for ThinkingEngine
Auto Trait Implementations§
impl Freeze for ThinkingEngine
impl RefUnwindSafe for ThinkingEngine
impl Send for ThinkingEngine
impl Sync for ThinkingEngine
impl Unpin for ThinkingEngine
impl UnwindSafe for ThinkingEngine
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