Using Spring AI 1.0.0 M7 Released
The release of Spring AI 1.0.0 Milestone 7. This will be the last milestone release. Next month will be the RC1 release followed quickly by a GA release in time for the Spring IO conference in Barcelona.
To celebrate this release, we have added a new song to our AI-generated music playlist featuring lyrics by Josh Long and Claude! Check out the latest track to enhance your blog reading and coding experience.
Here are the key changes in this release. Note, there are breaking changes!
Breaking Changes
Spring AI 1.0.0-M7 introduces several important changes that align with the structural improvements previously introduced in the SNAPSHOT versions. These changes create a more modular and maintainable codebase while reducing unnecessary dependencies in your applications.
Artifact ID Changes
The most significant change is the naming pattern for Spring AI starter artifacts:
Package Changes
Some classes have moved to new packages to better reflect their domain responsibilities:
Your IDE should easily be able to handle these refactorings.
New Module Structure
As detailed in the Core Architecture Improvements section above, the project has been restructured from a monolithic core into specialized domain modules.
This modular approach allows you to include only the functionality you need, resulting in smaller deployments and clearer boundaries between components.
Importantly, this change should not be a breaking change if you use the Spring AI starters since they now import the new modular dependencies automatically. Only applications that directly referenced the previous monolithic artifacts will need to update their dependencies.
ToolContext Changes
The ToolContext class has been enhanced to support both explicit and implicit tool resolution, with tools only included in model calls when explicitly requested.
Additional Resources
For more details on these changes, refer to:
There are two ways to update your projects to Spring AI 1.0.0-M7:
Core Architecture Improvements
Upgrade to MCP 0.9.0
Spring AI 1.0.0-M7 integrates the latest MCP reference implementation Java SDK version 0.9.0, bringing significant architectural improvements:
These improvements result in a more robust, scalable MCP implementation that better aligns with the MCP specification. For detailed migration guidance, refer to the Upgrade Notes section on MCP Java SDK changes.
All examples in the Spring AI Examples repository have been updated to work with the latest MCP implementation.
New and Enhanced Model Integrations
Docker Model Runner Support
Spring AI 1.0.0-M7 adds support for Docker Desktop 4.40's Model Runner, providing a seamless integration with locally running AI models:
For detailed information, check out the Spring AI Docker Model Runner documentation and our accompanying blog post Spring AI with Docker Model Runner that dives deeper into this integration.
Special thanks to Eddú Meléndez for his significant contributions to this feature.
Tool and Multimodal Capabilities
Memory and Storage
Query Processing
Developer Experience