You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defer call of getToolCallbacks() to prevent initializing ToolCallbackProvider eagerly
Before this commit, `McpSyncClient` is initialized even if `spring.ai.mcp.client.initialized` is set to `false`.
See GH-3232
Signed-off-by: Yanming Zhou <[email protected]>
Copy file name to clipboardExpand all lines: auto-configurations/models/tool/spring-ai-autoconfigure-model-tool/src/main/java/org/springframework/ai/model/tool/autoconfigure/ToolCallingAutoConfiguration.java
+15-7Lines changed: 15 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@
51
51
* @author Thomas Vitale
52
52
* @author Christian Tzolov
53
53
* @author Daniel Garnier-Moiroux
54
+
* @author Yanming Zhou
54
55
* @since 1.0.0
55
56
*/
56
57
@AutoConfiguration
@@ -65,16 +66,23 @@ public class ToolCallingAutoConfiguration {
Copy file name to clipboardExpand all lines: auto-configurations/models/tool/spring-ai-autoconfigure-model-tool/src/test/java/org/springframework/ai/model/tool/autoconfigure/ToolCallingAutoConfigurationTests.java
0 commit comments