# Parse the location and date from our function call response def parse_function(response): parsed_output = response["function_call"]["arguments"] parsed_output = json.loads(parsed_output) return parsed_output location = parse_function(response)['location'] date = parse_function(response)['date'] # Get our weather data data = get_temperature(location, date)