Thinking Tools
enhancedtoolkits.thinking.ThinkingTools ¶
ThinkingTools(max_chain_length: int = 10, confidence_threshold: float = 0.7, add_instructions: bool = True, **kwargs)
Bases: StrictToolkit
Text-first thinking/journaling utilities for agents.
Source code in src/enhancedtoolkits/thinking.py
Functions¶
build_step_by_step_reasoning_chain ¶
build_step_by_step_reasoning_chain(agent: Any, problem: str, thinking_type: Optional[str] = 'analysis', context: Optional[str] = None, evidence: Optional[List[str]] = None, confidence: float = 0.5) -> str
Start or continue a thinking chain.
Source code in src/enhancedtoolkits/thinking.py
add_meta_cognitive_reflection ¶
Add meta-cognitive reflection to current thinking chain.
Source code in src/enhancedtoolkits/thinking.py
manage_working_memory_scratchpad ¶
manage_working_memory_scratchpad(agent: Any, key: str, value: Optional[str] = None, operation: str = 'set') -> str
Working memory scratchpad for intermediate thoughts and calculations.
Source code in src/enhancedtoolkits/thinking.py
synthesize_reasoning_chain_into_output ¶
Synthesize current thinking chain into insights or conclusions.
Source code in src/enhancedtoolkits/thinking.py
assess_reasoning_chain_quality_and_suggest_improvements ¶
Evaluate the quality of current thinking chain and suggest improvements.
Source code in src/enhancedtoolkits/thinking.py
retrieve_current_thinking_chain_state ¶
Get current thinking chain state and history count.
Source code in src/enhancedtoolkits/thinking.py
reset_current_thinking_chain ¶
Clear the current thinking chain (does not delete history).