Class FunctionsConfiguration
java.lang.Object
org.bsc.spring.agentexecutor.function.FunctionsConfiguration
Configuration class for various functions related to weather.
This configuration class provides methods to define and execute weather-related functions.
-
Constructor Summary
ConstructorDescriptionConstructor for creating a new instance of FunctionsConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionBean method to define the current weather function.org.springframework.ai.model.function.FunctionCallback
Bean method to define the weather function callback.
-
Constructor Details
-
FunctionsConfiguration
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.
-