Spring AI 2.1.0-RC2 Available ... Note
Spring

Spring AI 2.1.0-RC2 Available Now

Spring AI 2.1.0-RC2 is now available, featuring a new DecisionModel API for typed yes/no, choice, and score decisions. This API simplifies handling common application decisions by providing probabilities for predefined outcomes instead of free-form text. Implementations are available for OpenAI, Ollama, and System One, with full observability support.Key features include the integration of Decision Models into RAG post-processors like DecisionDocumentReranker and DecisionDocumentFilter, enhancing document processing. DecisionToolIndex is also introduced as a new tool search strategy, improving tool applicability judgment.The release also brings tool call argument delta streaming for several models, allowing UIs to display partial tool calls as they are generated. Support for user-provided embeddings has been extended to Neo4j, MongoDB Atlas, Typesense, MariaDB, and Chroma vector stores.The Spring AI MCP server now supports the 2026-07-28 "modern" protocol revision, offering a single POST endpoint for WebMVC and WebFlux transports. This modern protocol includes features like cacheable discovery, client capabilities, and server-initiated multi-round trip requests.Annotated tools, resources, and prompts are updated for the modern protocol with new attributes and callbacks, requiring potential migration for existing STREAMABLE servers. Smaller additions include SessionService enhancements and an upgrade to Anthropic Java SDK 3.x.Upgrade considerations involve changes to Anthropic API key handling, deprecation of temperature, topP, and topK in Anthropic SDK 3.x, and adjustments to TypesenseVectorStore initialization. Prompt token reporting for Anthropic and Bedrock Converse now includes cached tokens, potentially affecting existing token usage calculations.