Skip to content

Commit 7c70435

Browse files
authored
Merge branch 'spring-projects:main' into main
2 parents 172ee58 + 925f176 commit 7c70435

File tree

207 files changed

+1102
-363
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+1102
-363
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Please refer to the [Getting Started Guide](https://docs.spring.io/spring-ai/ref
4545
* [Documentation](https://docs.spring.io/spring-ai/reference/)
4646
* [Issues](https://github.com/spring-projects/spring-ai/issues)
4747
<!-- * [Discussions](https://github.com/spring-projects/spring-ai/discussions) - Go here if you have a question, suggestion, or feedback! -->
48-
* [Awesome Spring AI](https://github.com/danvega/awesome-spring-ai) - A curated list of awesome resources, tools, tutorials, and projects for building generative AI applications using Spring AI
48+
* [Awesome Spring AI](https://github.com/spring-ai-community/awesome-spring-ai) - A curated list of awesome resources, tools, tutorials, and projects for building generative AI applications using Spring AI
4949
* [Spring AI Examples](https://github.com/spring-projects/spring-ai-examples) contains example projects that explain specific features in more detail.
5050

5151
## Breaking changes

advisors/spring-ai-advisors-vector-store/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>org.springframework.ai</groupId>
2323
<artifactId>spring-ai-parent</artifactId>
24-
<version>1.0.0-SNAPSHOT</version>
24+
<version>1.1.0-SNAPSHOT</version>
2525
<relativePath>../../pom.xml</relativePath>
2626
</parent>
2727
<artifactId>spring-ai-advisors-vector-store</artifactId>

auto-configurations/common/spring-ai-autoconfigure-retry/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.ai</groupId>
88
<artifactId>spring-ai-parent</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>1.1.0-SNAPSHOT</version>
1010
<relativePath>../../../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>spring-ai-autoconfigure-retry</artifactId>

auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.ai</groupId>
88
<artifactId>spring-ai-parent</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>1.1.0-SNAPSHOT</version>
1010
<relativePath>../../../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>spring-ai-autoconfigure-mcp-client</artifactId>

auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/main/java/org/springframework/ai/mcp/client/autoconfigure/McpToolCallbackAutoConfiguration.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.springframework.ai.mcp.AsyncMcpToolCallbackProvider;
2525
import org.springframework.ai.mcp.SyncMcpToolCallbackProvider;
2626
import org.springframework.ai.mcp.client.autoconfigure.properties.McpClientCommonProperties;
27-
import org.springframework.ai.tool.ToolCallbackProvider;
2827
import org.springframework.beans.factory.ObjectProvider;
2928
import org.springframework.boot.autoconfigure.AutoConfiguration;
3029
import org.springframework.boot.autoconfigure.condition.AllNestedConditions;
@@ -52,14 +51,14 @@ public class McpToolCallbackAutoConfiguration {
5251
@Bean
5352
@ConditionalOnProperty(prefix = McpClientCommonProperties.CONFIG_PREFIX, name = "type", havingValue = "SYNC",
5453
matchIfMissing = true)
55-
public ToolCallbackProvider mcpToolCallbacks(ObjectProvider<List<McpSyncClient>> syncMcpClients) {
54+
public SyncMcpToolCallbackProvider mcpToolCallbacks(ObjectProvider<List<McpSyncClient>> syncMcpClients) {
5655
List<McpSyncClient> mcpClients = syncMcpClients.stream().flatMap(List::stream).toList();
5756
return new SyncMcpToolCallbackProvider(mcpClients);
5857
}
5958

6059
@Bean
6160
@ConditionalOnProperty(prefix = McpClientCommonProperties.CONFIG_PREFIX, name = "type", havingValue = "ASYNC")
62-
public ToolCallbackProvider mcpAsyncToolCallbacks(ObjectProvider<List<McpAsyncClient>> mcpClientsProvider) {
61+
public AsyncMcpToolCallbackProvider mcpAsyncToolCallbacks(ObjectProvider<List<McpAsyncClient>> mcpClientsProvider) {
6362
List<McpAsyncClient> mcpClients = mcpClientsProvider.stream().flatMap(List::stream).toList();
6463
return new AsyncMcpToolCallbackProvider(mcpClients);
6564
}

auto-configurations/mcp/spring-ai-autoconfigure-mcp-server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.ai</groupId>
88
<artifactId>spring-ai-parent</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>1.1.0-SNAPSHOT</version>
1010
<relativePath>../../../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>spring-ai-autoconfigure-mcp-server</artifactId>

auto-configurations/models/chat/client/spring-ai-autoconfigure-model-chat-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.ai</groupId>
88
<artifactId>spring-ai-parent</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>1.1.0-SNAPSHOT</version>
1010
<relativePath>../../../../../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>spring-ai-autoconfigure-model-chat-client</artifactId>

auto-configurations/models/chat/memory/repository/spring-ai-autoconfigure-model-chat-memory-repository-cassandra/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.ai</groupId>
88
<artifactId>spring-ai-parent</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>1.1.0-SNAPSHOT</version>
1010
<relativePath>../../../../../../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>spring-ai-autoconfigure-model-chat-memory-repository-cassandra</artifactId>

auto-configurations/models/chat/memory/repository/spring-ai-autoconfigure-model-chat-memory-repository-jdbc/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.springframework.ai</groupId>
88
<artifactId>spring-ai-parent</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>1.1.0-SNAPSHOT</version>
1010
<relativePath>../../../../../../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>spring-ai-autoconfigure-model-chat-memory-repository-jdbc</artifactId>

auto-configurations/models/chat/memory/repository/spring-ai-autoconfigure-model-chat-memory-repository-jdbc/src/test/java/org/springframework/ai/model/chat/memory/repository/jdbc/autoconfigure/JdbcChatMemoryRepositoryPostgresqlAutoConfigurationIT.java

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,28 +73,29 @@ void initializeSchemaEmbeddedDefault() {
7373

7474
@Test
7575
void useAutoConfiguredJdbcChatMemoryRepository() {
76-
this.contextRunner.run(context -> {
77-
var chatMemoryRepository = context.getBean(JdbcChatMemoryRepository.class);
78-
var conversationId = UUID.randomUUID().toString();
79-
var userMessage = new UserMessage("Message from the user");
76+
this.contextRunner.withPropertyValues("spring.ai.chat.memory.repository.jdbc.initialize-schema=always")
77+
.run(context -> {
78+
var chatMemoryRepository = context.getBean(JdbcChatMemoryRepository.class);
79+
var conversationId = UUID.randomUUID().toString();
80+
var userMessage = new UserMessage("Message from the user");
8081

81-
chatMemoryRepository.saveAll(conversationId, List.of(userMessage));
82+
chatMemoryRepository.saveAll(conversationId, List.of(userMessage));
8283

83-
assertThat(chatMemoryRepository.findByConversationId(conversationId)).hasSize(1);
84-
assertThat(chatMemoryRepository.findByConversationId(conversationId)).isEqualTo(List.of(userMessage));
84+
assertThat(chatMemoryRepository.findByConversationId(conversationId)).hasSize(1);
85+
assertThat(chatMemoryRepository.findByConversationId(conversationId)).isEqualTo(List.of(userMessage));
8586

86-
chatMemoryRepository.deleteByConversationId(conversationId);
87+
chatMemoryRepository.deleteByConversationId(conversationId);
8788

88-
assertThat(chatMemoryRepository.findByConversationId(conversationId)).isEmpty();
89+
assertThat(chatMemoryRepository.findByConversationId(conversationId)).isEmpty();
8990

90-
var multipleMessages = List.<Message>of(new UserMessage("Message from the user 1"),
91-
new AssistantMessage("Message from the assistant 1"));
91+
var multipleMessages = List.<Message>of(new UserMessage("Message from the user 1"),
92+
new AssistantMessage("Message from the assistant 1"));
9293

93-
chatMemoryRepository.saveAll(conversationId, multipleMessages);
94+
chatMemoryRepository.saveAll(conversationId, multipleMessages);
9495

95-
assertThat(chatMemoryRepository.findByConversationId(conversationId)).hasSize(multipleMessages.size());
96-
assertThat(chatMemoryRepository.findByConversationId(conversationId)).isEqualTo(multipleMessages);
97-
});
96+
assertThat(chatMemoryRepository.findByConversationId(conversationId)).hasSize(multipleMessages.size());
97+
assertThat(chatMemoryRepository.findByConversationId(conversationId)).isEqualTo(multipleMessages);
98+
});
9899
}
99100

100101
@Test

0 commit comments

Comments
 (0)