Skip to content

Commit 5e66aa2

Browse files
authored
Merge pull request #15 from moonpyt/main
Fix some errors
2 parents 9d8de8e + e04a2fa commit 5e66aa2

File tree

3 files changed

+8
-78
lines changed

3 files changed

+8
-78
lines changed

docs/api-reference/tools/builtin-tools.md

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -270,33 +270,6 @@ result = await tool.execute(action="get_market_data")
270270
- `list_files(provider)`: List stored files
271271
- `delete_file(file_hash, provider)`: Delete file from storage
272272

273-
### Security Tools
274-
275-
#### GoPlusLabsTools
276-
**Description:** Security detection (token, NFT, phishing, rug pulls)
277-
**Module:** `spoon_toolkits.gopluslabs`
278-
279-
**Configuration:**
280-
```json
281-
{
282-
"name": "security_tools",
283-
"type": "builtin",
284-
"enabled": true,
285-
"env": {
286-
"GOPLUSLABS_API_KEY": "${GOPLUSLABS_API_KEY}"
287-
},
288-
"config": {
289-
"timeout": 30,
290-
"max_retries": 3
291-
}
292-
}
293-
```
294-
295-
**Methods:**
296-
- `check_token_security(contract_address, chain)`: Analyze token security
297-
- `check_nft_security(contract_address, chain)`: Analyze NFT security
298-
- `check_phishing_site(url)`: Check if URL is phishing
299-
- `check_rug_pull_risk(contract_address)`: Assess rug pull risk
300273

301274
## Agent Integration Examples
302275

docs/core-concepts/tools.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ Ready to use tools? Start with the [Built-in Tools Reference](../api-reference/t
7979
from spoon_ai.tools.crypto_tools import CryptoTools
8080

8181
# Get current Bitcoin price
82-
price = await crypto_tools.get_price("BTC")
82+
price = await CryptoTools.get_token_price("BTC")
8383
```
8484

8585
**Web3Tools** - Blockchain interaction
8686
```python
8787
from spoon_ai.tools.web3_tools import Web3Tools
8888

8989
# Get wallet balance
90-
balance = await web3_tools.get_balance("0x742d35Cc6634C0532925a3b8D4C9db96590e4265")
90+
balance = await web3_tools.GetAccountBalanceToo("0x742d35Cc6634C0532925a3b8D4C9db96590e4265")
9191
```
9292

9393
### Data & Analysis Tools
@@ -97,15 +97,7 @@ balance = await web3_tools.get_balance("0x742d35Cc6634C0532925a3b8D4C9db96590e42
9797
from spoon_toolkits.chainbase import ChainbaseTools
9898

9999
# Get token information
100-
token_info = await chainbase_tools.get_token_info("0xA0b86a33E6441E6C8D3c8C7C5b998e7d8e4C8e8e")
101-
```
102-
103-
**GoPlusLabsTools** - Security analysis
104-
```python
105-
from spoon_toolkits.gopluslabs import GoPlusLabsTools
106-
107-
# Check token security
108-
security = await goplus_tools.token_security("0xA0b86a33E6441E6C8D3c8C7C5b998e7d8e4C8e8e")
100+
token_info = await chainbase_tools.GetTokenMetadataTool("0xA0b86a33E6441E6C8D3c8C7C5b998e7d8e4C8e8e")
109101
```
110102

111103
### Storage Tools
@@ -133,7 +125,7 @@ tool_manager = ToolManager([
133125
])
134126

135127
# Execute tool
136-
result = await tool_manager.execute_tool("get_price", {"symbol": "BTC"})
128+
result = await tool_manager.execute_tool("get_token_price", {"symbol": "BTC"})
137129
```
138130

139131
## MCP (Model Context Protocol) Tools

llm.txt

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -5316,33 +5316,6 @@ result = await tool.execute(action="get_market_data")
53165316
- `list_files(provider)`: List stored files
53175317
- `delete_file(file_hash, provider)`: Delete file from storage
53185318

5319-
### Security Tools
5320-
5321-
#### GoPlusLabsTools
5322-
**Description:** Security detection (token, NFT, phishing, rug pulls)
5323-
**Module:** `spoon_toolkits.gopluslabs`
5324-
5325-
**Configuration:**
5326-
```json
5327-
{
5328-
"name": "security_tools",
5329-
"type": "builtin",
5330-
"enabled": true,
5331-
"env": {
5332-
"GOPLUSLABS_API_KEY": "${GOPLUSLABS_API_KEY}"
5333-
},
5334-
"config": {
5335-
"timeout": 30,
5336-
"max_retries": 3
5337-
}
5338-
}
5339-
```
5340-
5341-
**Methods:**
5342-
- `check_token_security(contract_address, chain)`: Analyze token security
5343-
- `check_nft_security(contract_address, chain)`: Analyze NFT security
5344-
- `check_phishing_site(url)`: Check if URL is phishing
5345-
- `check_rug_pull_risk(contract_address)`: Assess rug pull risk
53465319

53475320
## Agent Integration Examples
53485321

@@ -10769,15 +10742,15 @@ Ready to use tools? Start with the [Built-in Tools Reference](../api-reference/t
1076910742
from spoon_ai.tools.crypto_tools import CryptoTools
1077010743

1077110744
# Get current Bitcoin price
10772-
price = await crypto_tools.get_price("BTC")
10745+
price = await CryptoTools.get_token_price("BTC")
1077310746
```
1077410747

1077510748
**Web3Tools** - Blockchain interaction
1077610749
```python
1077710750
from spoon_ai.tools.web3_tools import Web3Tools
1077810751

1077910752
# Get wallet balance
10780-
balance = await web3_tools.get_balance("0x742d35Cc6634C0532925a3b8D4C9db96590e4265")
10753+
balance = await web3_tools.GetAccountBalanceToo("0x742d35Cc6634C0532925a3b8D4C9db96590e4265")
1078110754
```
1078210755

1078310756
### Data & Analysis Tools
@@ -10787,15 +10760,7 @@ balance = await web3_tools.get_balance("0x742d35Cc6634C0532925a3b8D4C9db96590e42
1078710760
from spoon_toolkits.chainbase import ChainbaseTools
1078810761

1078910762
# Get token information
10790-
token_info = await chainbase_tools.get_token_info("0xA0b86a33E6441E6C8D3c8C7C5b998e7d8e4C8e8e")
10791-
```
10792-
10793-
**GoPlusLabsTools** - Security analysis
10794-
```python
10795-
from spoon_toolkits.gopluslabs import GoPlusLabsTools
10796-
10797-
# Check token security
10798-
security = await goplus_tools.token_security("0xA0b86a33E6441E6C8D3c8C7C5b998e7d8e4C8e8e")
10763+
token_info = await chainbase_tools.GetTokenMetadataTool("0xA0b86a33E6441E6C8D3c8C7C5b998e7d8e4C8e8e")
1079910764
```
1080010765

1080110766
### Storage Tools
@@ -10823,7 +10788,7 @@ tool_manager = ToolManager([
1082310788
])
1082410789

1082510790
# Execute tool
10826-
result = await tool_manager.execute_tool("get_price", {"symbol": "BTC"})
10791+
result = await tool_manager.execute_tool("get_token_price", {"symbol": "BTC"})
1082710792
```
1082810793

1082910794
## MCP (Model Context Protocol) Tools

0 commit comments

Comments
 (0)