Update tools/get_weather_forecast.py
Browse files
tools/get_weather_forecast.py
CHANGED
@@ -10,7 +10,7 @@ class GetWeatherForecastTool(Tool):
|
|
10 |
description = "Gets the weather forecast for a travel destination."
|
11 |
inputs = {
|
12 |
'destination': {'type': 'string', 'description': 'City or location name'},
|
13 |
-
'days': {'type': 'integer', 'description': 'Number of days to forecast (default: 3)'}
|
14 |
}
|
15 |
output_type = "string"
|
16 |
|
@@ -165,4 +165,4 @@ class GetWeatherForecastTool(Tool):
|
|
165 |
if max_temp > 22:
|
166 |
tips += "Sunscreen and sunglasses are recommended. "
|
167 |
|
168 |
-
return tips
|
|
|
10 |
description = "Gets the weather forecast for a travel destination."
|
11 |
inputs = {
|
12 |
'destination': {'type': 'string', 'description': 'City or location name'},
|
13 |
+
'days': {'type': 'integer', 'description': 'Number of days to forecast (default: 3)', 'nullable': True}
|
14 |
}
|
15 |
output_type = "string"
|
16 |
|
|
|
165 |
if max_temp > 22:
|
166 |
tips += "Sunscreen and sunglasses are recommended. "
|
167 |
|
168 |
+
return tips
|