Skip to content

Commit be25a4c

Browse files
committed
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.
1 parent 1db0cc6 commit be25a4c

File tree

4 files changed

+26
-32
lines changed

4 files changed

+26
-32
lines changed

README.md

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
1-
## Think Tool
1+
## Description
22

3-
**Author:** kalochin
4-
**Version:** 0.0.1
5-
**Type:** tool
3+
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.
64

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.
126

137
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
148

15-
### Optimal Scenarios for Using the Think Tool
9+
## Optimal Scenarios for Using the Think Tool
1610

1711
Research and testing have shown that the think tool provides significant advantages in several key scenarios:
1812

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.
2014

2115
2. **Regulatory and Guidelines Adherence**: Essential in contexts with strict policies or complex regulations that must be carefully followed and verified.
2216

2317
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.
2418

25-
### Effective Implementation Strategies
19+
## Effective Implementation Strategies
2620

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:
2822

2923
1. **Create Context-Specific Examples**
3024
Develop tailored examples that demonstrate:
@@ -34,27 +28,27 @@ To maximize the benefits of the think tool in your Claude implementation:
3428
- Methods for ensuring comprehensive information gathering
3529

3630
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.
3832

39-
### Limitations and When to Skip the Think Tool
33+
## Limitations and When to Skip the Think Tool
4034

4135
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:
4236

4337
- **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.
4438

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.
4640

47-
### Implementation Guide
41+
## Implementation Guide
4842

49-
Incorporate the think tool into your Claude environment through these steps:
43+
Incorporate the think tool into your LLM environment through these steps:
5044

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.
5246

5347
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.
5448

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.
5650

57-
### Maximizing Benefits with Proper Prompting
51+
## Maximizing Benefits with Proper Prompting
5852

5953
To get the most value from the think tool, consider adding specific instructions to your system prompt about when and how to use it:
6054

@@ -77,14 +71,14 @@ User wants to [specific scenario]
7771
</think_tool_example_1>
7872
```
7973

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.
8175

82-
### Credits
76+
## Credits
8377

8478
Original concept by Anthropic
8579
Tool author: [Kalo Chin](https://github.com/fdb02983rhy)
8680
Repository: [https://github.com/fdb02983rhy/dify-think-plugin](https://github.com/fdb02983rhy/dify-think-plugin)
8781

88-
### License
82+
## License
8983

90-
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
84+
This project is licensed under the MIT License.

manifest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.0.1
1+
version: 0.0.2
22
type: plugin
33
author: kalochin
44
name: think
@@ -10,7 +10,7 @@ description:
1010
zh_Hans: 一个通过逐步推理帮助非推理模型有条理地解决问题的工具。
1111
icon: icon.svg
1212
resource:
13-
memory: 268435456
13+
memory: 1048576
1414
permission:
1515
model:
1616
enabled: true

provider/think.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ identity:
33
name: think
44
label:
55
en_US: The "Think" Tool
6-
zh_Hans: 一个"思考"工具
6+
zh_Hans: The "Think" Tool
77
description:
8-
en_US: A tool that enables step-by-step reasoning, helping non-reasoning models solve problems methodically.
9-
zh_Hans: 一个通过逐步推理帮助非推理模型有条理地解决问题的工具
8+
en_US: A tool that enables step-by-step reasoning, helping non-reasoning LLMs solve problems methodically.
9+
zh_Hans: 一个通过逐步推理帮助非推理LLM有条理地解决问题的工具
1010
icon: icon.svg
1111
tools:
1212
- tools/think.yaml

tools/think.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description:
88
human:
99
en_US: A tool that allows LLMs to think. It will not obtain new information or change any data, but just log the thought.
1010
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.
1212
parameters:
1313
- name: thought
1414
type: string
@@ -19,7 +19,7 @@ parameters:
1919
human_description:
2020
en_US: A thought to think about.
2121
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.
22+
llm_description: A thought to think about.
2323
form: llm
2424
extra:
2525
python:

0 commit comments

Comments
 (0)