Spaces:
No application file
No application file
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -1,15 +1,11 @@
|
|
| 1 |
from smolagents import DuckDuckGoSearchTool
|
| 2 |
from smolagents import Tool
|
|
|
|
| 3 |
|
| 4 |
|
| 5 |
# Initialize the DuckDuckGo search tool
|
| 6 |
search_tool = DuckDuckGoSearchTool()
|
| 7 |
|
| 8 |
-
|
| 9 |
-
import random
|
| 10 |
-
|
| 11 |
-
import random
|
| 12 |
-
|
| 13 |
class CurrencyConverterTool(Tool):
|
| 14 |
name = "currency_converter"
|
| 15 |
description = "Converts amounts between different currencies using dummy exchange rates."
|
|
|
|
| 1 |
from smolagents import DuckDuckGoSearchTool
|
| 2 |
from smolagents import Tool
|
| 3 |
+
import random
|
| 4 |
|
| 5 |
|
| 6 |
# Initialize the DuckDuckGo search tool
|
| 7 |
search_tool = DuckDuckGoSearchTool()
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
class CurrencyConverterTool(Tool):
|
| 10 |
name = "currency_converter"
|
| 11 |
description = "Converts amounts between different currencies using dummy exchange rates."
|