// Copyright (c) Microsoft. All rights reserved.
using System.ComponentModel;
using Microsoft.SemanticKernel;
namespace MCPServer.Tools;
///
/// A collection of utility methods for working with weather.
///
internal sealed class WeatherUtils
{
///
/// Gets the current weather for the specified city.
///
/// The name of the city.
/// The current date time in UTC.
/// The current weather for the specified city.
[KernelFunction, Description("Gets the current weather for the specified city and specified date time.")]
public static string GetWeatherForCity(string cityName, string currentDateTimeInUtc)
{
return cityName switch
{
"Boston" => "61 and rainy",
"London" => "55 and cloudy",
"Miami" => "80 and sunny",
"Paris" => "60 and rainy",
"Tokyo" => "50 and sunny",
"Sydney" => "75 and sunny",
"Tel Aviv" => "80 and sunny",
_ => "31 and snowing",
};
}
}