Update app.py
Browse files
app.py
CHANGED
@@ -18,11 +18,15 @@ def get_location_name_from_lat_lon(lat: int, lon: int) -> str:
|
|
18 |
lon: longitude of the location
|
19 |
"""
|
20 |
# Example: call a reverse geocoding API
|
21 |
-
response = requests.get(f"https://api.example.com/reverse?lat={lat}&lon={lon}")
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
26 |
|
27 |
@tool
|
28 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
18 |
lon: longitude of the location
|
19 |
"""
|
20 |
# Example: call a reverse geocoding API
|
21 |
+
#response = requests.get(f"https://api.example.com/reverse?lat={lat}&lon={lon}")
|
22 |
+
|
23 |
+
geocoding_data = {
|
24 |
+
(45, 44): "Chisiguihnau, Moldova"
|
25 |
+
}
|
26 |
+
|
27 |
+
|
28 |
+
|
29 |
+
return geocoding_data[(45,44)]
|
30 |
|
31 |
@tool
|
32 |
def get_current_time_in_timezone(timezone: str) -> str:
|