You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update version to 0.0.2 in manifest.yaml and refine memory allocation. Revise README.md for improved clarity, replacing "AI" with "LLM" and enhancing descriptions. Adjust labels in think.yaml for consistency in English and Chinese translations.
The "think" tool creates a dedicated space for LLMs to perform structured thinking during complex tasks. This tool enhances the LLM's problem-solving performance by providing a sandbox for reasoning through complex situations.
6
4
7
-
### Description
8
-
9
-
The "think" tool creates a dedicated space for AI assistants to perform structured thinking during complex tasks. This tool enhances the AI's problem-solving performance by providing a sandbox for reasoning through complex situations.
10
-
11
-
When using multiple tools or making multi-step decisions, AIs benefit from having a place to analyze information, verify policy compliance, and plan sequential actions. The "think" tool provides this space without retrieving new information or changing any data - it simply logs the thought process.
5
+
When using multiple tools or making multi-step decisions, LLMs benefit from having a place to analyze information, verify policy compliance, and plan sequential actions. The "think" tool provides this space without retrieving new information or changing any data - it simply logs the thought process.
12
6
13
7
This tool is a simple implementation inspired by Anthropic's "think" tool research. For more information, please see: https://www.anthropic.com/engineering/claude-think-tool
14
8
15
-
###Optimal Scenarios for Using the Think Tool
9
+
## Optimal Scenarios for Using the Think Tool
16
10
17
11
Research and testing have shown that the think tool provides significant advantages in several key scenarios:
18
12
19
-
1.**Analysis of Tool Results**: Particularly valuable when the AI needs to carefully evaluate outputs from previous tool calls before proceeding, especially in situations where strategy adjustments may be necessary.
13
+
1.**Analysis of Tool Results**: Particularly valuable when the LLM needs to carefully evaluate outputs from previous tool calls before proceeding, especially in situations where strategy adjustments may be necessary.
20
14
21
15
2.**Regulatory and Guidelines Adherence**: Essential in contexts with strict policies or complex regulations that must be carefully followed and verified.
22
16
23
17
3.**Multi-step Decision Processes**: Most beneficial in scenarios where actions build sequentially, with each decision affecting subsequent options and where errors could have cascading consequences.
24
18
25
-
###Effective Implementation Strategies
19
+
## Effective Implementation Strategies
26
20
27
-
To maximize the benefits of the think tool in your Claude implementation:
21
+
To maximize the benefits of the think tool in your LLM implementation:
28
22
29
23
1.**Create Context-Specific Examples**
30
24
Develop tailored examples that demonstrate:
@@ -34,27 +28,27 @@ To maximize the benefits of the think tool in your Claude implementation:
34
28
- Methods for ensuring comprehensive information gathering
35
29
36
30
2.**Integrate Detailed Guidance in System Instructions**
37
-
For complex implementations, incorporate comprehensive think tool instructions within the system prompt rather than the tool description. This approach helps Claude better incorporate structured thinking into its overall problem-solving process.
31
+
For complex implementations, incorporate comprehensive think tool instructions within the system prompt rather than the tool description. This approach helps the LLM better incorporate structured thinking into its overall problem-solving process.
38
32
39
-
###Limitations and When to Skip the Think Tool
33
+
## Limitations and When to Skip the Think Tool
40
34
41
35
The think tool does have limitations and isn't beneficial in all scenarios. Consider the additional token usage when deciding whether to implement it. The tool offers minimal benefits in:
42
36
43
37
-**Simple or Parallel Tool Operations**: Use cases requiring only single tool calls or non-sequential multiple tool operations typically don't benefit from the additional reflection.
44
38
45
-
-**Straightforward Task Execution**: Scenarios with minimal constraints or where Claude's standard reasoning is already sufficient for the task at hand.
39
+
-**Straightforward Task Execution**: Scenarios with minimal constraints or where the LLM's standard reasoning is already sufficient for the task at hand.
46
40
47
-
###Implementation Guide
41
+
## Implementation Guide
48
42
49
-
Incorporate the think tool into your Claude environment through these steps:
43
+
Incorporate the think tool into your LLM environment through these steps:
50
44
51
-
1.**Begin with Complex Scenarios**: Identify challenging use cases where Claude currently experiences difficulties with policy compliance or complex reasoning chains.
45
+
1.**Begin with Complex Scenarios**: Identify challenging use cases where the LLM currently experiences difficulties with policy compliance or complex reasoning chains.
52
46
53
47
2.**Configure the Tool for Your Domain**: Implement a customized think tool specific to your needs, including relevant examples and use cases in your system instructions.
54
48
55
-
3.**Evaluate and Adjust**: Observe how Claude utilizes the tool in real-world scenarios and refine your implementation to encourage more effective reasoning patterns.
49
+
3.**Evaluate and Adjust**: Observe how the LLM utilizes the tool in real-world scenarios and refine your implementation to encourage more effective reasoning patterns.
56
50
57
-
###Maximizing Benefits with Proper Prompting
51
+
## Maximizing Benefits with Proper Prompting
58
52
59
53
To get the most value from the think tool, consider adding specific instructions to your system prompt about when and how to use it:
60
54
@@ -77,14 +71,14 @@ User wants to [specific scenario]
77
71
</think_tool_example_1>
78
72
```
79
73
80
-
Domain-specific examples in your prompts significantly improve how effectively the AI uses the think tool. Consider including examples tailored to your specific use case.
74
+
Domain-specific examples in your prompts significantly improve how effectively the LLM uses the think tool. Consider including examples tailored to your specific use case.
Copy file name to clipboardExpand all lines: tools/think.yaml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ description:
8
8
human:
9
9
en_US: A tool that allows LLMs to think. It will not obtain new information or change any data, but just log the thought.
10
10
zh_Hans: 一个允许LLM思考的工具。它不会获取新信息或更改任何数据,只会记录思考过程。
11
-
llm: Use this tool to think about something. It will not obtain new information or change any data, but just log the thought. Use it when complex reasoning or some cache memory is needed.
11
+
llm: Use the tool to think about something. It will not obtain new information or change the database, but just append the thought to the log. Use it when complex reasoning or some cache memory is needed.
12
12
parameters:
13
13
- name: thought
14
14
type: string
@@ -19,7 +19,7 @@ parameters:
19
19
human_description:
20
20
en_US: A thought to think about.
21
21
zh_Hans: 需要思考的内容。
22
-
llm_description: A thought to think about. Use this for complex reasoning, analyzing tool outputs, checking policy compliance, or planning multi-step actions.
0 commit comments