Class FunctionsConfiguration

java.lang.Object
org.bsc.spring.agentexecutor.function.FunctionsConfiguration

@Configuration public class FunctionsConfiguration extends Object
Configuration class for various functions related to weather. This configuration class provides methods to define and execute weather-related functions.
  • Constructor Details

    • FunctionsConfiguration

      public FunctionsConfiguration(WeatherConfig props)
      Constructor for creating a new instance of FunctionsConfiguration.
      Parameters:
      props - Weather configuration properties.
  • Method Details

    • currentWeatherFunction

      @Bean @Description("Get the current weather conditions for the given city.") public Function<WeatherFunction.Request,WeatherFunction.Response> currentWeatherFunction()
      Bean method to define the current weather function.
      Returns:
      A Function object that retrieves weather conditions for a given city.
    • weatherFunctionCallback

      @Bean public org.springframework.ai.model.function.FunctionCallback weatherFunctionCallback()
      Bean method to define the weather function callback.
      Returns:
      A FunctionCallback object that wraps a WeatherFunction and provides metadata about it.