Update to 1.0 M5 release
This commit is contained in:
@@ -9,9 +9,9 @@
|
|||||||
<relativePath/> <!-- lookup parent from repository -->
|
<relativePath/> <!-- lookup parent from repository -->
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>com.example</groupId>
|
<groupId>com.example</groupId>
|
||||||
<artifactId>ai-openai-helloworld</artifactId>
|
<artifactId>ai-openai-reflection-example</artifactId>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
<name>ai-openai-helloworld</name>
|
<name>ai-openai-reflection-example</name>
|
||||||
<description>Simple AI Application using OpenAPI Service</description>
|
<description>Simple AI Application using OpenAPI Service</description>
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>17</java.version>
|
<java.version>17</java.version>
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.ai</groupId>
|
<groupId>org.springframework.ai</groupId>
|
||||||
<artifactId>spring-ai-bom</artifactId>
|
<artifactId>spring-ai-bom</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.0.0-M5</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<java.version>17</java.version>
|
<java.version>17</java.version>
|
||||||
<kotlin.version>1.9.25</kotlin.version>
|
<kotlin.version>1.9.25</kotlin.version>
|
||||||
<spring-ai.version>1.0.0-SNAPSHOT</spring-ai.version>
|
<spring-ai.version>1.0.0-M5</spring-ai.version>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@@ -41,10 +41,10 @@ class Config {
|
|||||||
@Bean
|
@Bean
|
||||||
fun weatherFunctionInfo(currentWeather: (WeatherRequest) -> WeatherResponse): FunctionCallback {
|
fun weatherFunctionInfo(currentWeather: (WeatherRequest) -> WeatherResponse): FunctionCallback {
|
||||||
return FunctionCallback.builder()
|
return FunctionCallback.builder()
|
||||||
|
.function("WeatherInfo", currentWeather)
|
||||||
.description(
|
.description(
|
||||||
"Find the weather conditions, forecasts, and temperatures for a location, like a city or state."
|
"Find the weather conditions, forecasts, and temperatures for a location, like a city or state."
|
||||||
)
|
)
|
||||||
.function("WeatherInfo", currentWeather)
|
|
||||||
.inputType(WeatherRequest::class.java)
|
.inputType(WeatherRequest::class.java)
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<java.version>17</java.version>
|
<java.version>17</java.version>
|
||||||
<kotlin.version>1.9.25</kotlin.version>
|
<kotlin.version>1.9.25</kotlin.version>
|
||||||
<spring-ai.version>1.0.0-SNAPSHOT</spring-ai.version>
|
<spring-ai.version>1.0.0-M5</spring-ai.version>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.ai</groupId>
|
<groupId>org.springframework.ai</groupId>
|
||||||
<artifactId>spring-ai-bom</artifactId>
|
<artifactId>spring-ai-bom</artifactId>
|
||||||
<version>${spring-ai.version}</version>
|
<version>1.0.0-M5</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<java.version>17</java.version>
|
<java.version>17</java.version>
|
||||||
<kotlin.version>1.9.25</kotlin.version>
|
<kotlin.version>1.9.25</kotlin.version>
|
||||||
<spring-ai.version>1.0.0-SNAPSHOT</spring-ai.version>
|
<spring-ai.version>1.0.0-M5</spring-ai.version>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
</scm>
|
</scm>
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>17</java.version>
|
<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>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.ai</groupId>
|
<groupId>org.springframework.ai</groupId>
|
||||||
<artifactId>spring-ai-bom</artifactId>
|
<artifactId>spring-ai-bom</artifactId>
|
||||||
<version>${spring-ai.version}</version>
|
<version>1.0.0-M5</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
</scm>
|
</scm>
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>17</java.version>
|
<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>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.ai</groupId>
|
<groupId>org.springframework.ai</groupId>
|
||||||
<artifactId>spring-ai-bom</artifactId>
|
<artifactId>spring-ai-bom</artifactId>
|
||||||
<version>${spring-ai.version}</version>
|
<version>1.0.0-M5</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|||||||
@@ -57,10 +57,10 @@ public class SpringAiJavaFunctionCallbackApplication {
|
|||||||
@Bean
|
@Bean
|
||||||
public FunctionCallback weatherFunctionInfo(Function<WeatherRequest, WeatherResponse> currentWeather) {
|
public FunctionCallback weatherFunctionInfo(Function<WeatherRequest, WeatherResponse> currentWeather) {
|
||||||
return FunctionCallback.builder()
|
return FunctionCallback.builder()
|
||||||
|
.function("WeatherInfo", currentWeather)
|
||||||
.description(
|
.description(
|
||||||
"Find the weather conditions, forecasts, and temperatures for a location, like a city or state."
|
"Find the weather conditions, forecasts, and temperatures for a location, like a city or state."
|
||||||
)
|
)
|
||||||
.function("WeatherInfo", currentWeather)
|
|
||||||
.inputType(WeatherRequest.class)
|
.inputType(WeatherRequest.class)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.ai</groupId>
|
<groupId>org.springframework.ai</groupId>
|
||||||
<artifactId>spring-ai-bom</artifactId>
|
<artifactId>spring-ai-bom</artifactId>
|
||||||
<version>1.0.0-M4</version>
|
<version>1.0.0-M5</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.ai</groupId>
|
<groupId>org.springframework.ai</groupId>
|
||||||
<artifactId>spring-ai-bom</artifactId>
|
<artifactId>spring-ai-bom</artifactId>
|
||||||
<version>1.0.0-M4</version>
|
<version>1.0.0-M5</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.ai</groupId>
|
<groupId>org.springframework.ai</groupId>
|
||||||
<artifactId>spring-ai-bom</artifactId>
|
<artifactId>spring-ai-bom</artifactId>
|
||||||
<version>1.0.0-M4</version>
|
<version>1.0.0-M5</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.ai</groupId>
|
<groupId>org.springframework.ai</groupId>
|
||||||
<artifactId>spring-ai-bom</artifactId>
|
<artifactId>spring-ai-bom</artifactId>
|
||||||
<version>1.0.0-M4</version>
|
<version>1.0.0-M5</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.ai</groupId>
|
<groupId>org.springframework.ai</groupId>
|
||||||
<artifactId>spring-ai-bom</artifactId>
|
<artifactId>spring-ai-bom</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>1.0.0-M5</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|||||||
Reference in New Issue
Block a user