Thinking Tools
enhancedtoolkits.thinking.EnhancedThinkingTools ¶
EnhancedThinkingTools(max_chain_length: int = 10, confidence_threshold: float = 0.7, add_instructions: bool = True, **kwargs)
Bases: StrictToolkit
Advanced LLM Thinking Tool with General Tool Planning and Orchestration
Source code in src/enhancedtoolkits/thinking.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
|
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 structured reasoning chain.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
agent | Any | The agent or team context. | required |
problem | str | The problem or question to reason about. | required |
thinking_type | Optional[str] | (optional) The type of reasoning to use (e.g., "analysis", "planning", etc.). Defaults to "analysis". | 'analysis' |
context | Optional[str] | (optional) Additional context for the reasoning step. | None |
evidence | Optional[List[str]] | (optional) List of evidence strings. | None |
confidence | float | (optional) Confidence score for the step. | 0.5 |
Returns:
Name | Type | Description |
---|---|---|
str | str | Result of the reasoning step. |
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
create_general_tool_execution_plan ¶
create_general_tool_execution_plan(agent: Any, task: str, available_tools: List[str], context: Optional[str] = None) -> str
Plan tool sequence for complex tasks using general approach.
Source code in src/enhancedtoolkits/thinking.py
execute_and_monitor_tool_plan ¶
Execute and monitor tool plans.