Class TurWeatherToolService

java.lang.Object
com.viglet.turing.genai.tool.TurWeatherToolService

@Service public class TurWeatherToolService extends Object
  • Constructor Details

    • TurWeatherToolService

      public TurWeatherToolService()
  • Method Details

    • getWeather

      @Tool(name="get_weather", description="Gets the current weather and forecast for a city or location.\nUse this tool when the user asks about the weather, temperature, or forecast for a place.\nArgs:\n location (str): City name, optionally with country (e.g., 'S\u00e3o Paulo', 'London, UK', 'New York'). Required.\n days (int): Number of forecast days (1-7). Default: 3.\nReturns:\n Current weather conditions and daily forecast including temperature, humidity, wind speed, and weather description.") public String getWeather(String location, int days)