pub struct SequentialThinkingClient { /* private fields */ }Expand description
Main sequential thinking client implementation
Implementations§
Source§impl SequentialThinkingClient
impl SequentialThinkingClient
Sourcepub async fn new(server_url: &str) -> SequentialThinkingResult<Self>
pub async fn new(server_url: &str) -> SequentialThinkingResult<Self>
Create a new sequential thinking client
Sourcepub async fn with_config(
server_url: &str,
config: ClientThinkingConfig,
) -> SequentialThinkingResult<Self>
pub async fn with_config( server_url: &str, config: ClientThinkingConfig, ) -> SequentialThinkingResult<Self>
Create a new client with custom configuration
Sourcepub async fn start_session(
&self,
title: String,
) -> SequentialThinkingResult<ThinkingSession>
pub async fn start_session( &self, title: String, ) -> SequentialThinkingResult<ThinkingSession>
Start a new thinking session
Sourcepub async fn get_session(&self, session_id: &str) -> Option<ThinkingSession>
pub async fn get_session(&self, session_id: &str) -> Option<ThinkingSession>
Get a thinking session by ID
Sourcepub async fn add_thought(
&self,
_session_id: &str,
thought: ThoughtData,
) -> SequentialThinkingResult<ThoughtData>
pub async fn add_thought( &self, _session_id: &str, thought: ThoughtData, ) -> SequentialThinkingResult<ThoughtData>
Add a thought to a session
Sourcepub async fn export_session(
&self,
_session_id: &str,
format: &str,
) -> SequentialThinkingResult<String>
pub async fn export_session( &self, _session_id: &str, format: &str, ) -> SequentialThinkingResult<String>
Export a session
Sourcepub async fn analyze_session(
&self,
_session_id: &str,
) -> SequentialThinkingResult<Value>
pub async fn analyze_session( &self, _session_id: &str, ) -> SequentialThinkingResult<Value>
Analyze a session
Sourcepub async fn list_tools(&self) -> SequentialThinkingResult<Vec<Tool>>
pub async fn list_tools(&self) -> SequentialThinkingResult<Vec<Tool>>
Get available tools from the server
Sourcepub async fn get_stats(&self) -> ClientStats
pub async fn get_stats(&self) -> ClientStats
Get client statistics
Sourcepub async fn get_progress(&self) -> Option<ThinkingProgress>
pub async fn get_progress(&self) -> Option<ThinkingProgress>
Get current progress
Sourcepub async fn complete_session(
&self,
session_id: &str,
) -> SequentialThinkingResult<()>
pub async fn complete_session( &self, session_id: &str, ) -> SequentialThinkingResult<()>
Complete a session
Sourcepub async fn remove_session(&self, session_id: &str) -> bool
pub async fn remove_session(&self, session_id: &str) -> bool
Remove a session
Sourcepub async fn get_session_ids(&self) -> Vec<String>
pub async fn get_session_ids(&self) -> Vec<String>
Get all session IDs
Sourcepub async fn get_session_stats(&self, session_id: &str) -> Option<ThinkingStats>
pub async fn get_session_stats(&self, session_id: &str) -> Option<ThinkingStats>
Get session statistics
Sourcepub async fn get_session_progress(
&self,
session_id: &str,
) -> Option<ThinkingProgress>
pub async fn get_session_progress( &self, session_id: &str, ) -> Option<ThinkingProgress>
Get session progress
Sourcepub async fn is_session_complete(&self, session_id: &str) -> bool
pub async fn is_session_complete(&self, session_id: &str) -> bool
Check if a session is complete
Auto Trait Implementations§
impl Freeze for SequentialThinkingClient
impl !RefUnwindSafe for SequentialThinkingClient
impl Send for SequentialThinkingClient
impl Sync for SequentialThinkingClient
impl Unpin for SequentialThinkingClient
impl !UnwindSafe for SequentialThinkingClient
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