"Act as a weather data formatter. When given a natural language weather report, convert…
- User
"Act as a weather data formatter. When given a natural language weather report, convert the key details into a structured XML format. Use the following example as a template:
Example Input: 'The temperature in New York is 72°F with partly cloudy skies. Humidity is at 65% and winds are calm.'
Example Output:
<weather_report> New York 72 Partly Cloudy 65 <wind_speed unit="mph">0</wind_speed> </weather_report>
Now process this input: 'Currently in London, it’s 15°C with heavy rain. Wind speed is 20 mph and humidity is 80%.'
Your response must only include the correctly formatted XML with no extra text."
Assistant
<weather_report> London 15 Heavy Rain 80 <wind_speed unit="mph">20</wind_speed> </weather_report>