Spaces:
Sleeping
Sleeping
args
Browse files
app.py
CHANGED
|
@@ -43,8 +43,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 43 |
|
| 44 |
@tool
|
| 45 |
def get_current_weather_on_location(location: str) -> str:
|
| 46 |
-
"""
|
| 47 |
-
A function that from a location fetches the current weather on a location. This tool use the function to fetch
|
| 48 |
from a location the latitude and the longitude via Geocoding called get_latitude_longitude_by_location. After fetched the
|
| 49 |
latitude and the longitude, call via API the open-meteo API for getting the weather.
|
| 50 |
Args:
|
|
@@ -109,8 +108,7 @@ def get_current_weather_on_location(location: str) -> str:
|
|
| 109 |
|
| 110 |
@function
|
| 111 |
def get_latitude_longitude_by_location(location: str) -> str:
|
| 112 |
-
"""
|
| 113 |
-
A function that fetches from a location the latitude and longitude via Google Geocoding API
|
| 114 |
Args:
|
| 115 |
location: a string passed from a tool that representing the location by string
|
| 116 |
"""
|
|
|
|
| 43 |
|
| 44 |
@tool
|
| 45 |
def get_current_weather_on_location(location: str) -> str:
|
| 46 |
+
"""A function that from a location fetches the current weather on a location. This tool use the function to fetch
|
|
|
|
| 47 |
from a location the latitude and the longitude via Geocoding called get_latitude_longitude_by_location. After fetched the
|
| 48 |
latitude and the longitude, call via API the open-meteo API for getting the weather.
|
| 49 |
Args:
|
|
|
|
| 108 |
|
| 109 |
@function
|
| 110 |
def get_latitude_longitude_by_location(location: str) -> str:
|
| 111 |
+
"""A function that fetches from a location the latitude and longitude via Google Geocoding API
|
|
|
|
| 112 |
Args:
|
| 113 |
location: a string passed from a tool that representing the location by string
|
| 114 |
"""
|