@@ -5870,12 +5870,16 @@ specs = manager.to_params() # List of OpenAI-compatible tool definitions
58705870- `index_tools()` / `query_tools(query)` — Semantic search (requires Pinecone + OpenAI)
58715871
58725872### Crypto toolkit (optional)
5873- If `spoon-toolkits` is installed, you can load its crypto tools :
5873+ If you install `spoon-toolkits`, import the concrete tools you need :
58745874```python
5875- from spoon_ai.tools.crypto_tools import get_crypto_tools, create_crypto_tool_manager
5875+ from spoon_toolkits import CryptoPowerDataPriceTool, CryptoPowerDataCEXTool
5876+ from spoon_ai.tools import ToolManager
58765877
5877- tools = get_crypto_tools() # returns instantiated toolkit tools
5878- manager = create_crypto_tool_manager() # ToolManager with all crypto tools
5878+ crypto_tools = [
5879+ CryptoPowerDataPriceTool(),
5880+ CryptoPowerDataCEXTool(),
5881+ ]
5882+ manager = ToolManager(crypto_tools)
58795883```
58805884Environment variables for these tools depend on the specific provider (e.g., `OKX_API_KEY`, `BITQUERY_API_KEY`, `RPC_URL`, etc.).
58815885
@@ -6240,7 +6244,7 @@ The current market shows strong bullish momentum with BTC leading...
62406244- **Main Example**: [graph_crypto_analysis.py](https://github.com/XSpoonAi/spoon-core/blob/main/examples/graph_crypto_analysis.py)
62416245- **Supporting Modules**:
62426246 - `spoon_ai/graph/builder.py` - Declarative templates and high-level API
6243- - `spoon_ai/tools/crypto_tools .py` - PowerData integration helpers
6247+ - `toolkit/spoon_toolkits/crypto/crypto_powerdata/tools .py` - PowerData integration helpers
62446248 - `spoon_ai/graph/` - Core engine and monitoring utilities
62456249 - [Tool System Docs](../core-concepts/tools.md)
62466250
@@ -6848,7 +6852,10 @@ The agent will respond with a personalized greeting and offer to help with vario
68486852Enhance your agent with blockchain tools:
68496853
68506854```python
6851- from spoon_ai.tools.crypto_tools import get_crypto_tools
6855+ from spoon_toolkits import (
6856+ CryptoPowerDataPriceTool,
6857+ CryptoPowerDataCEXTool,
6858+ )
68526859
68536860class Web3Agent(ToolCallAgent):
68546861 name: str = "web3_agent"
@@ -6861,8 +6868,9 @@ class Web3Agent(ToolCallAgent):
68616868
68626869 available_tools: ToolManager = ToolManager([
68636870 GreetingTool(),
6864- # Loads all crypto/Web3 tools from spoon-toolkits (requires `pip install -e spoon-toolkits`)
6865- *get_crypto_tools()
6871+ # Crypto/Web3 tools (requires `pip install -e toolkit` in the repo root)
6872+ CryptoPowerDataPriceTool(),
6873+ CryptoPowerDataCEXTool(),
68666874 ])
68676875
68686876# Usage
@@ -7607,7 +7615,14 @@ Create a new file `my_first_agent.py` (works with Gemini, OpenAI, or any configu
76077615import os
76087616from spoon_ai.agents import SpoonReactAI
76097617from spoon_ai.chat import ChatBot
7610- from spoon_ai.tools.crypto_tools import get_crypto_tools
7618+ from spoon_toolkits import CryptoPowerDataPriceTool, CryptoPowerDataCEXTool
7619+
7620+ def get_crypto_tools():
7621+ """Helper for docs: instantiate available crypto/Web3 tools."""
7622+ return [
7623+ CryptoPowerDataPriceTool(),
7624+ CryptoPowerDataCEXTool(),
7625+ ]
76117626
76127627# Create your first agent
76137628def create_agent():
@@ -7958,8 +7973,14 @@ from typing import List, Dict, Any
79587973
79597974from spoon_ai.agents import SpoonReactAI
79607975from spoon_ai.chat import ChatBot
7961- from spoon_ai.tools.crypto_tools import get_crypto_tools
79627976from spoon_ai.tools.base import BaseTool
7977+ from spoon_toolkits import CryptoPowerDataPriceTool, CryptoPowerDataCEXTool
7978+
7979+ def get_crypto_tools():
7980+ return [
7981+ CryptoPowerDataPriceTool(),
7982+ CryptoPowerDataCEXTool(),
7983+ ]
79637984
79647985# Configure logging
79657986logging.basicConfig(level=logging.INFO)
0 commit comments