github alibaba/spring-ai-alibaba v2.1.0.1
Spring AI Alibaba 2.1.0.1

pre-release39 minutes ago

Preview release notes. The artifacts are staged on Maven Central for manual publication.

Spring AI Alibaba 2.1.0.1 expands how agents retrieve evidence, manage memory and context, delegate work, and stream progress. It also improves recovery for long-running Graph workflows and reduces the storage and I/O cost of large checkpoints.

The framework and Extensions use 2.1.0.1, with Spring AI 2.1.0 and Spring Boot 4.2.0. Dependency versions at the release tag

RAG and Bailian Knowledge

  • Use a Spring AI DocumentRetriever directly in Graph's KnowledgeRetrievalNode. The same retriever can also back a ReactAgent search tool, so an application can share one retrieval implementation across a fixed workflow and model-directed search. The builder's vector-store configuration remains available. #5074
  • The Bailian example shows direct answers, query rewriting when the first retrieval misses, and an explicit insufficient-evidence outcome. The agent retrieves on demand. Both paths verify that citations refer to the documents supplied to the model. Run the Bailian RAG example

Memory and context engineering

  • Scoped long-term recall. Let agents search and page through memory on demand within a namespace supplied by the application, such as a tenant and user. Set recall limits per turn. Applications can prefetch allowlisted preferences across threads while keeping conversation history thread-local. #5069 #5079
  • Versioned preference writes. PreferenceMemory stores approved preference changes in JDBC, with expected-version checks and idempotent receipts across retries. Authorization and namespace are rechecked at write time. Changing or deleting a preference stays effective when an approved operation is replayed after a checkpoint failure. H2 and PostgreSQL cover the JDBC repository contract. #5079
  • Context budgets and model fallback. Opt in to input-budget checks and recovery when a request exceeds the model context window. Configured routes and fallbacks assemble requests with the selected model's options and budget. Recovery can summarize older turns or evict old tool results, while retaining the current turn and tool-call pairs. Streaming failures after output has started are surfaced to the caller. #5060 #5065 #4899
  • Durable conversation compaction and large tool results. Save conversation summaries with the checkpoint so compaction can continue after restart and through an approval pause. Move oversized tool results to a scoped archive that the model can read in bounded pages. Archive or summary failures preserve the original data. #5062 #5063
  • Runnable recipes. The examples cover budget-aware fallback, checkpoint-backed summaries, paged archives, scoped delegation and recovery after tool approval. A scripted HTTP fixture exercises the native OpenAI Chat Completions adapter without credentials. #5070 #5072 Context management examples

Multi-agent workflows and Graph engine

  • Compose agents with predictable state. Sequential, parallel, routing and loop workflows retain the current run's business state and apply child reducer updates in order. Repeated child calls have separate execution identities. Handoffs retain the active agent across turns and restarts, and supervisors can resume the worker waiting for approval. #5057 #5058
  • Delegate only the context a child needs. AgentToolContext lets an application select state keys and metadata to pass to a child and which outputs to expose. Compiled subgraphs support input and output mappings across resumable boundaries, and resume from their own checkpoint. #5059 #5068
  • Durable parallel work. Dispatch multiple tasks with MultiCommand, declare explicit parallel joins, and opt in to task checkpoints. Recovery can reuse a saved dispatch plan and completed task updates, then resume pending work or a specific parallel interruption. Node policies add timeouts, bounded retries and blocking execution, with stable task IDs for application-side idempotency. #5057
  • State and history. Use forkState to continue an alternate path from a selected checkpoint while keeping the original history. Subgraph checkpoints retain the child version associated with the selected parent. Applications can query pending approvals and page through PostgreSQL checkpoint history. RemoveByValue removes matching list elements through the append strategy. #5057 #5059 #5103

Streaming and Studio

  • CompiledGraph.streamEvents and Agent.streamEvents expose typed run, model, tool, state, checkpoint and progress events. Run IDs, delivery sequences and nested scopes distinguish model calls, subgraphs, subagents and parallel branches. A single eventRun can feed several views of one execution. #5075
  • Nodes and tools can stream custom progress. A reactive tool can emit output deltas and a final value. Studio adds versioned SSE endpoints for agent runs, graph runs and approval resumes. Resumes start a new run with the same thread, and approvals can target a particular interruption. #5067 #5075 Streaming events guide
  • Workflow streaming preserves child and routing-merge output. Graph stream errors retain the originating node ID and reach lifecycle listeners. #5058 #4911 #4925

Tools, approvals and permissions

  • Deferred tools and Skills. Agents can search descriptors and load tools or Skill instructions only when needed. Applications can bound tool selection by count and estimated schema size, while retaining required tools. Supplier-based grouped tool registries support discovery from a changing registry. #4922 #5066 #5069
  • Resumable tool review. Configure conditional approvals for a tool call. An approval batch supports allowing, editing, rejecting, or returning a human response. Decisions are checkpointed and can be restored before dispatch, including thread-scoped approvals and approved calls from a deferred tool catalog. #5066 #5067 #5079
  • Declarative tool permissions. Set ordered allow, deny and ask rules, with a default decision, using ToolPermissionPolicy. The runtime checks calls before review and again before dispatch, including edited arguments and interceptor rewrites. Built-in file tools support read and write rules for paths and directory trees. Applications govern resource access for Shell, MCP and custom tools in their execution environment. #5078 #5080 Tool permissions example

Structured output and multimodal workflows

  • ReactAgent can negotiate native schema output, tool-based output, or a prompt according to the provider and schema. The framework validates the result against the schema and Java type and supports bounded correction attempts. Applications can explicitly select a strategy. #5073 Structured output example #5071
  • Run the same image-understanding workflow through ReactAgent or Graph Core. The demo accepts an uploaded image, optionally generates an illustration, stores it under a stable artifact ID, and returns a download link. The example also supports direct DashScope text-to-speech. #5077 Run the multimodal examples

Smaller checkpoints and safe rolling upgrades

  • Put large state keys in a payload store and load them only when accessed. Save append and reducer deltas, including updates and deletions by message ID. Keep reconstructable values in runtime state and resupply them on resume. These options are enabled per top-level key. Payload garbage collection starts in observation mode. Retained checkpoints and active readers protect referenced payloads. Recovery and collection metrics help verify behavior before enabling deletion. A PostgreSQL regression test checks that a 10 MiB payload stays unread when the resumed node skips that key. #5103
  • Managed checkpoints are available for PostgreSQL, MySQL/InnoDB, Oracle, MongoDB replica sets, Redis single primary, local files and in-memory testing. The shared saver capability coordinates checkpoint and payload operations, including historical forks and archive retention. H2 continues to support basic checkpoints. Managed Redis Cluster, DataChannel and asynchronous checkpointing are deferred. #5104 #5105 #5106 #5107 #5108 #5109
  • The upgrade bridge can read bare-state checkpoints written by 2.1.0.0. Existing stores keep writing that format during the rolling upgrade. After all readers and writers have upgraded, drain and isolate old writers, then switch the store to checkpoint-v1. Supported new stores use checkpoint-v1 by default. Each checkpoint uses a single write format. #5110

For an existing store, back up checkpoints and archives before rollout. Check that 2.1.0.0 can read progress written by the bridge during the compatibility period. After cutover, resume a previously paused run before enabling key-level optimizations. Rollback to 2.1.0.0 after cutover requires restoring the pre-cutover backup. Configure large checkpoints · Upgrade and migration by saver

Compatibility fixes, examples and maintenance

  • Checkpoint and serialization fixes. Preserve primitive arrays in message metadata and map-shaped DashScope search metadata. Add serialization coverage for List<byte[]>. Read older Redis checkpoints alongside compressed payloads, make PostgreSQL's latest-checkpoint selection deterministic, and apply state updates once when asNode is set. #4860 #4846 #4926 #4884 #4753 #4889
  • Runtime and tool fixes. Cap the default parallel worker pool on high-core hosts, serialize persistent shell command transactions, recognize shell completion without a trailing newline, and validate web-fetch input before cache lookup. Remove an unused Graph MCP dependency and upgrade fastjson to 2.0.58 for security fixes. #4895 #4896 #4744 #4897 #4879 #4871
  • Admin. Preserve workflow tool callbacks, extend locale coverage for the legacy UI, make the sidebar scrollable, and update chat-memory references. #4903 #4891 #4877 #4536 #4913
  • Guides and regression coverage. Refresh runnable Graph and Spring AI 2.1 Agent Framework tutorials, clarify when a checkpointed invocation resumes, and extend automated coverage for interruption metadata and the built-in assigner node. Update README, contributor and community information. #5061 #5064 #4865 #4872 #4918 #4995 #4909 #4912

Thanks to everyone who contributed code, tests and documentation.

Full changelog Compare v2.1.0.0 with v2.1.0.1

Don't miss a new spring-ai-alibaba release

NewReleases is sending notifications on new releases.