pub struct ThinkMoreController { /* private fields */ }Expand description
Manages extended thinking capabilities for complex tasks
Implementations§
Source§impl ThinkMoreController
impl ThinkMoreController
Sourcepub fn with_config(config: ThinkMoreConfig) -> Self
pub fn with_config(config: ThinkMoreConfig) -> Self
Create a new Think More controller with custom configuration
Sourcepub fn is_enabled(&self) -> Result<bool>
pub fn is_enabled(&self) -> Result<bool>
Check if extended thinking is enabled
Sourcepub fn set_depth(&self, depth: ThinkingDepth) -> Result<()>
pub fn set_depth(&self, depth: ThinkingDepth) -> Result<()>
Set the thinking depth
Sourcepub fn get_depth(&self) -> Result<ThinkingDepth>
pub fn get_depth(&self) -> Result<ThinkingDepth>
Get the current thinking depth
Sourcepub fn set_timeout(&self, timeout: Duration) -> Result<()>
pub fn set_timeout(&self, timeout: Duration) -> Result<()>
Set the thinking timeout
Sourcepub fn get_timeout(&self) -> Result<Duration>
pub fn get_timeout(&self) -> Result<Duration>
Get the current thinking timeout
Sourcepub fn enable_auto_enable(&self) -> Result<()>
pub fn enable_auto_enable(&self) -> Result<()>
Enable auto-enable based on task complexity
Sourcepub fn disable_auto_enable(&self) -> Result<()>
pub fn disable_auto_enable(&self) -> Result<()>
Disable auto-enable
Sourcepub fn is_auto_enable_enabled(&self) -> Result<bool>
pub fn is_auto_enable_enabled(&self) -> Result<bool>
Check if auto-enable is enabled
Sourcepub fn set_task_config(
&self,
task_id: String,
config: ThinkMoreConfig,
) -> Result<()>
pub fn set_task_config( &self, task_id: String, config: ThinkMoreConfig, ) -> Result<()>
Set per-task configuration
Sourcepub fn get_task_config(&self, task_id: &str) -> Result<Option<ThinkMoreConfig>>
pub fn get_task_config(&self, task_id: &str) -> Result<Option<ThinkMoreConfig>>
Get per-task configuration
Sourcepub fn remove_task_config(&self, task_id: &str) -> Result<()>
pub fn remove_task_config(&self, task_id: &str) -> Result<()>
Remove per-task configuration
Sourcepub fn get_effective_config(
&self,
task_id: Option<&str>,
) -> Result<ThinkMoreConfig>
pub fn get_effective_config( &self, task_id: Option<&str>, ) -> Result<ThinkMoreConfig>
Get effective configuration for a task (task-specific or global)
Sourcepub fn start_thinking(&self, depth: ThinkingDepth) -> Result<()>
pub fn start_thinking(&self, depth: ThinkingDepth) -> Result<()>
Start thinking for a task
Sourcepub fn stop_thinking(&self) -> Result<String>
pub fn stop_thinking(&self) -> Result<String>
Stop thinking and return the accumulated content
Sourcepub fn add_thinking_content(&self, content: &str) -> Result<()>
pub fn add_thinking_content(&self, content: &str) -> Result<()>
Add content to the thinking process
Sourcepub fn is_thinking(&self) -> Result<bool>
pub fn is_thinking(&self) -> Result<bool>
Check if thinking is currently active
Sourcepub fn get_thinking_content(&self) -> Result<String>
pub fn get_thinking_content(&self) -> Result<String>
Get the current thinking content
Sourcepub fn get_elapsed_time(&self) -> Result<Option<Duration>>
pub fn get_elapsed_time(&self) -> Result<Option<Duration>>
Get the elapsed time since thinking started
Sourcepub fn has_exceeded_timeout(&self) -> Result<bool>
pub fn has_exceeded_timeout(&self) -> Result<bool>
Check if thinking has exceeded the timeout
Sourcepub fn cancel_thinking(&self) -> Result<()>
pub fn cancel_thinking(&self) -> Result<()>
Cancel thinking
Sourcepub fn should_auto_enable(&self, complexity: ComplexityLevel) -> Result<bool>
pub fn should_auto_enable(&self, complexity: ComplexityLevel) -> Result<bool>
Determine if Think More should be auto-enabled for a given complexity level
Sourcepub fn get_thinking_metadata(&self) -> Result<ThinkingMetadata>
pub fn get_thinking_metadata(&self) -> Result<ThinkingMetadata>
Get metadata about the current thinking session
Trait Implementations§
Source§impl Clone for ThinkMoreController
impl Clone for ThinkMoreController
Source§fn clone(&self) -> ThinkMoreController
fn clone(&self) -> ThinkMoreController
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more