Spring
Follow
Spring AI 2.1.0-M1 Available Now
Spring AI 2.1.0-M1 has been released, introducing significant enhancements for AI application development. This milestone is built on Spring Boot 4.2 and includes initial support for a structured message content model. Messages are now represented as ordered lists of parts like TextPart, ReasoningPart, and ToolCallPart for faithful conversation round-trips. Streaming models can now deliver these parts incrementally, with an aggregator rebuilding complete parts. A new OpenAiResponsesChatModel leverages OpenAI's Responses API, crucial for agents using advanced OpenAI models combining tool calls and reasoning. This model natively supports message parts, preserving reasoning across tool loops. The release also introduces VectorStore.upsert(), allowing pre-computed embeddings to be written directly to vector stores. Smaller additions include stateless MCP server tuning and improved vector store filter parsing. Several issues have been fixed, such as restored OpenAI timeouts and correct handling of empty image responses. Documentation has been updated, and dependencies like the Anthropic Java SDK have been upgraded. The team is now focusing on 2.1.0-RC1, which will include native message part support across all providers, core session management integration, and MCP specification support. Feedback on the new features is actively encouraged before the General Availability release.