Spring AI Alibaba 2.1.0.0 brings Spring AI 2.1.0 to ReactAgent, Graph, Studio, and the Alibaba Cloud integrations. The release uses Spring Boot 4.2.0, Spring AI Alibaba Extensions 2.1.0.0, MCP Java SDK 2.2.0, Nacos 3.3.0, and the Nacos MSE extension 1.0.7.
What's new in Spring AI 2.1.0
- Decision Models.
DecisionModelreturns typed yes/no, choice, and score answers with probabilities. OpenAI, Ollama, and System One provide implementations. Spring AI also uses decisions for RAG document filtering and reranking, and for matching queries to tools. - Message Parts and OpenAI Responses. Ordered message parts carry text, media, reasoning, tool calls, and tool results with provider payloads. Indexed argument deltas can be displayed while a tool call is forming.
OpenAiResponsesChatModeladds the Responses API, including hosted tools and replay of encrypted reasoning. Select it withspring.ai.openai.chat.api=responses. - Session API. Session Memory records messages and tool exchanges in an event log. It supports turn-aware compaction, keyword recall through
conversation_search, and a JDBC session repository. Spring AI deprecatesChatMemoryand its repository APIs in favor of Session Memory. - Tool confirmation, limits, and refusal handling. Tool metadata or a policy can pause a batch for approval. Spring AI adds per-turn call limits, normalized
FinishReasonCategoryvalues, and typed guardrail refusals that structured-output validation and semantic caching can recognize. - Modern MCP. Stateless MCP 2026-07-28 clients and servers support synchronous and asynchronous APIs alongside existing transports. The revision adds client scoping, tool-change subscriptions, and multi-round requests for client input.
- Model integrations. Anthropic moves to Java SDK 3.x, Google GenAI adds image generation and speech APIs, and DeepSeek exposes thinking and reasoning-effort options.
- Vector stores, documents, and observability. Eleven upstream vector stores accept user-supplied embeddings for writes and queries. Document processing adds optional token overlap and PDF page ranges. Metrics coverage expands to decision, speech, transcription, and image models. The upstream GA includes 13 CVE fixes.
Spring AI 2.1.0 GA announcement · Upstream release notes
Spring AI Alibaba Agent, Graph, and Studio
- Request-scoped tool execution. ReactAgent dispatches tools from the final request after ChatClient advisors run. An explicitly empty selection disables tools for that request. Unavailable calls return typed error results.
- Approval and checkpoint resume. Graph supports tool confirmation metadata and explicit human-in-the-loop rules. A batch can contain approved, edited, and rejected calls. Decisions remain separate when providers omit or repeat call IDs, and registered callbacks are checked again on resume.
- Per-turn dispatch limits. ReactAgent defaults to 40 calls per tool and 150 total calls per turn across sequential and parallel dispatch. Set both with
ReactAgent.builder().toolCallLimits(perTool, total). Rejected and unavailable calls do not consume the budget. - Message Parts round trip. Graph streaming aggregation, checkpoints, and Studio message DTOs carry ordered parts, reasoning, attachments, opaque provider payloads, and tool-result errors. PII redaction and context editing preserve unaffected parts. Legacy checkpoint messages remain readable.
- Streaming and filtering. Graph retains the provider's raw finish reason, its normalized category, and final token usage. Filtered replies skip tool dispatch, and routing propagates content filtering without retrying it as a structured-output parsing error.
- Workflow nodes.
QuestionClassifierNode.builder().decisionModel(...)uses typed choice answers and route IDs. The existing ChatClient classifier is also available.LlmNode.builder().sessionMemory(sessionService, sessionIdKey)opts into Session Memory using a session ID from graph state. - Nacos and MCP. The workflow MCP node and Nacos gateway support Modern MCP, Streamable HTTP, and SSE. Nacos model configuration applies
strictandreplayReasoningContenton load and refresh. Local callbacks take precedence over discovered tools with the same name.
Alibaba Cloud integrations in Extensions 2.1.0.0
- DashScope chat and reasoning. Both the HTTP and SDK adapters preserve Message Parts and streamed tool calls. Supported Qwen, GLM, and Kimi models route to their native Bailian endpoints. Provider reasoning can be replayed across tool rounds, and both DashScope tool-calling managers support confirmation, resumption, and per-turn limits.
- Images, video, and audio. Updated Bailian APIs cover image generation and editing, Wan video generation, Qwen speech recognition and synthesis, and CosyVoice synthesis. Graph tools accept media URLs and inline data, including raw Base64.
- Bailian workspace RAG.
DashScopeRagApisupports knowledge-base retrieval, document upload and asynchronous ingestion, and streaming question answering.DashScopeRagDocumentRetrieverintegrates retrieval into Spring AI RAG flows. The Extensions guide shows how to use Bailian Decision Models with the System One starter. - Modern MCP in Nacos. Registration, discovery, routing, and the gateway handle modern and legacy protocol connections in the same deployment, with synchronous and asynchronous
listToolsandcallToolpaths. - Precomputed embeddings. AnalyticDB, OceanBase, Alibaba OpenSearch, Tablestore, and Tair support
upsert(List<EmbeddedDocument>)andsimilaritySearch(float[], SearchRequest). The stores validate vector dimensions and use the vectors directly, without invokingEmbeddingModelto generate embeddings. - Bounded document extraction. The Extensions Tika parser defaults to 10 million extracted characters per document. Applications can supply a different limit using
TikaDocumentParser(int maxExtractedChars).
Extensions 2.1.0.0 release · Bailian Decision Model configuration
Upgrade notes
- Import
com.alibaba.cloud.ai:spring-ai-alibaba-bom:2.1.0.0and, when using extensions,com.alibaba.cloud.ai:spring-ai-alibaba-extensions-bom:2.1.0.0. Upgrade Spring Boot to 4.2 and Spring AI to 2.1 together. - Use
getParts()andgetReasoning()where code needs ordered content or provider reasoning. Use a distinct session ID for each conversation when enabling Session Memory. - Configure approvals and dispatch limits on ReactAgent when migrating from an explicit ChatClient tool advisor. ReactAgent owns dispatch and checkpoint resume. Configure the MCP protocol per connection so modern and legacy peers can run side by side.