PLBot commited on
Commit
db72768
·
verified ·
1 Parent(s): 182fb49

Update tools/get_weather_forecast.py

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