Abraham E. Tavarez commited on
Commit ·
fb4e72c
1
Parent(s): 05fd3ec
test search tool definition
Browse files
tools.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from smolagents import tool
|
| 2 |
+
|
| 3 |
+
@tool
|
| 4 |
+
def get_weather_data(city: str) -> str:
|
| 5 |
+
"""
|
| 6 |
+
Gets weather data by the city name.
|
| 7 |
+
Args:
|
| 8 |
+
city: city name
|
| 9 |
+
"""
|
| 10 |
+
pass
|
| 11 |
+
|
| 12 |
+
print(get_weather_data.description)
|