Abraham E. Tavarez commited on
Commit
fb4e72c
·
1 Parent(s): 05fd3ec

test search tool definition

Browse files
Files changed (1) hide show
  1. tools.py +12 -0
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)