pub struct ThinkingDisplay;Expand description
Formats and displays thinking content for user consumption
Implementations§
Source§impl ThinkingDisplay
impl ThinkingDisplay
Sourcepub fn format_thinking(content: &str, depth: ThinkingDepth) -> String
pub fn format_thinking(content: &str, depth: ThinkingDepth) -> String
Format thinking content for display
Sourcepub fn add_thinking_to_response(
response: &mut ModeResponse,
thinking_content: &str,
depth: ThinkingDepth,
) -> Result<()>
pub fn add_thinking_to_response( response: &mut ModeResponse, thinking_content: &str, depth: ThinkingDepth, ) -> Result<()>
Add thinking content to a response
Sourcepub fn format_thinking_with_line_numbers(
content: &str,
depth: ThinkingDepth,
) -> String
pub fn format_thinking_with_line_numbers( content: &str, depth: ThinkingDepth, ) -> String
Format thinking content with line numbers for readability
Sourcepub fn format_thinking_collapsible(
content: &str,
depth: ThinkingDepth,
) -> String
pub fn format_thinking_collapsible( content: &str, depth: ThinkingDepth, ) -> String
Format thinking content as a collapsible section
Sourcepub fn extract_insights(content: &str) -> Vec<String>
pub fn extract_insights(content: &str) -> Vec<String>
Extract key insights from thinking content
Sourcepub fn summarize_thinking(content: &str, max_lines: usize) -> String
pub fn summarize_thinking(content: &str, max_lines: usize) -> String
Summarize thinking content
Sourcepub fn format_thinking_with_emphasis(
content: &str,
depth: ThinkingDepth,
) -> String
pub fn format_thinking_with_emphasis( content: &str, depth: ThinkingDepth, ) -> String
Format thinking content with emphasis on important sections
Sourcepub fn is_empty_or_minimal(content: &str) -> bool
pub fn is_empty_or_minimal(content: &str) -> bool
Check if thinking content is empty or minimal
Sourcepub fn get_statistics(content: &str) -> ThinkingStatistics
pub fn get_statistics(content: &str) -> ThinkingStatistics
Get thinking statistics
Trait Implementations§
Source§impl Clone for ThinkingDisplay
impl Clone for ThinkingDisplay
Source§fn clone(&self) -> ThinkingDisplay
fn clone(&self) -> ThinkingDisplay
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 ThinkingDisplay
impl RefUnwindSafe for ThinkingDisplay
impl Send for ThinkingDisplay
impl Sync for ThinkingDisplay
impl Unpin for ThinkingDisplay
impl UnwindSafe for ThinkingDisplay
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