File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,8 @@ def __init__(self) -> None:
105
105
"2025-04-16" : [],
106
106
}
107
107
108
- # Define a wrapper function that handles the query parameter correctly
109
- def execute_func (query : str , ** kwargs : Any ) -> str :
110
- # Ignore the query parameter and call our execute method
108
+ # Define a wrapper function that handles parameters correctly
109
+ def execute_func (** kwargs : Any ) -> str :
111
110
return self .execute_calendar (** kwargs )
112
111
113
112
super ().__init__ (
@@ -166,9 +165,7 @@ def __init__(self) -> None:
166
165
execute_func = self .execute_weather_retrieval ,
167
166
)
168
167
169
- def execute_weather_retrieval (
170
- self , query : Optional [str ] = None , ** kwargs : Any
171
- ) -> str :
168
+ def execute_weather_retrieval (self , ** kwargs : Any ) -> str :
172
169
"""Fetch historical weather data for a given date in Malmö, Sweden."""
173
170
date_str = kwargs .get ("date" )
174
171
if not date_str :
@@ -227,10 +224,6 @@ def execute_weather_retrieval(
227
224
) as e :
228
225
return f"Error parsing weather data for Malmö on { date_str } : { e } "
229
226
230
- return (
231
- f"Sorry, I couldn't fetch the weather for Malmö on { date_str } at this time."
232
- )
233
-
234
227
235
228
def main () -> None :
236
229
"""Run the example."""
You can’t perform that action at this time.
0 commit comments