Update to 1.0 M5 release
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
</scm>
|
||||
<properties>
|
||||
<java.version>17</java.version>
|
||||
<spring-ai.version>1.0.0-M4</spring-ai.version>
|
||||
<spring-ai.version>1.0.0-M5</spring-ai.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
@@ -51,7 +51,7 @@
|
||||
<dependency>
|
||||
<groupId>org.springframework.ai</groupId>
|
||||
<artifactId>spring-ai-bom</artifactId>
|
||||
<version>${spring-ai.version}</version>
|
||||
<version>1.0.0-M5</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
||||
@@ -57,10 +57,10 @@ public class SpringAiJavaFunctionCallbackApplication {
|
||||
@Bean
|
||||
public FunctionCallback weatherFunctionInfo(Function<WeatherRequest, WeatherResponse> currentWeather) {
|
||||
return FunctionCallback.builder()
|
||||
.function("WeatherInfo", currentWeather)
|
||||
.description(
|
||||
"Find the weather conditions, forecasts, and temperatures for a location, like a city or state."
|
||||
)
|
||||
.function("WeatherInfo", currentWeather)
|
||||
.inputType(WeatherRequest.class)
|
||||
.build();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user