spring-ai-alibaba
Introduction: An Application Framework for Java Developers
Tags:
A production-ready framework for building Agentic, Workflow, and Multi-agent applications.
Getting Started, Graph Core, Spring AI, Examples.
Getting Started
- Build your first agent with ReactAgent, a model, and tools.
- Build a graph workflow with explicit state, nodes, and routing.
- Choose versions and dependencies for Spring AI Alibaba, Extensions, Spring AI, and Spring Boot.
Spring AI Alibaba 2.1.0.1
This release uses Spring AI 2.1.0, Spring Boot 4.2.0, Spring AI Alibaba Extensions 2.1.0.1, MCP Java SDK 2.2.0, and Nacos 3.3.0. Release notes
- Reduce checkpoint size by offloading selected state keys and loading their payloads on demand. Save incremental message changes and keep reconstructable, runtime-only values out of durable state.
- Managed checkpoints support PostgreSQL, MySQL/InnoDB, Oracle, MongoDB replica sets, Redis single primary, local files, and in-memory testing. Externalization, deltas, and untracked values are opt-in per key. Blob garbage collection starts in observation mode. Redis Cluster managed checkpoints are deferred.
- Preserve saved conversations, historical branches, and paused parallel tasks. Upgraded apps can read the previously released bare-state format. During a rolling upgrade, an existing store keeps writing in the old format until operators switch it to
checkpoint-v1. Supported fresh stores usecheckpoint-v1by default. - Graph workflows add durable parallel execution, historical forks and subgraph state boundaries, typed streaming events, and pluggable document retrieval with a Bailian example.
- Agent Framework adds declarative and conditional tool approval, deferred tool discovery, structured output negotiation, model and context recovery, and scoped memory with versioned preferences.
Large checkpoints · Rolling upgrade and migration
Architecture
Agent Framework provides ReactAgent and built-in patterns for composing agents. It runs on Graph Core, which provides state management, checkpointing, and streaming.
Use Graph Core directly when the application needs to define its own control flow, such as conditional routing, parallel branches, or nested workflows.
Core Features
- Multi-agent orchestration — Compose agents with sequential, parallel, routing, loop, and supervisor patterns. Multi-agent guide
- Context engineering and memory — Manage model context, reuse conversation history, and retrieve long-term memory. Context engineering · Memory
- RAG — Retrieve evidence in agent or graph workflows. RAG guide · Bailian RAG example
- Tool permissions and human approval — Control tool execution and pause a workflow for a decision. Human-in-the-loop guide · Tool permissions example
- Checkpoints and recovery — Continue conversations and paused workflows, or inspect earlier state. Checkpoint guide
- Streaming — Stream model output, tool progress, and workflow events. Streaming guide · Typed events
- Multimodal and voice agents — Work with images and audio, or build a real-time voice agent. Multimodal example · Voice agent example
- A2A, models, and MCP — Connect distributed agents with Nacos and integrate model providers and tools. A2A · DashScope models · MCP client
Documentation
- Framework overview
- Agent Framework tutorials
- Graph Engineering with Spring AI Alibaba and Lightweight RepoOps
- Spring AI concepts and Session Memory migration
Project Structure
This project consists of several core components:
- spring-ai-alibaba-agent-framework: A multi-agent framework designed for building intelligent agents with built-in context engineering best practices.
- spring-ai-alibaba-graph-core — The graph runtime for checkpointing, streaming, and stateful workflows. Use it directly for custom control flow.
- spring-boot-starters: Starters integrating Agent Framework with Nacos to provide A2A and dynamic config features.
- examples/graphengineering: Runnable Graph Engineering examples. The current RepoOps issue workflow shows how Spring AI Alibaba Graph owns state and routing while AgentScope Java implements specialist nodes.
Spring AI Alibaba Ecosystem
| Repository | Description | ⭐ |
|---|---|---|
| Spring AI Alibaba Graph | A low-level orchestration framework and runtime for building, managing, and deploying long-running, stateful agents. | |
| Spring AI Extensions | Extended implementations for Spring AI core concepts, including DashScopeChatModel, MCP registry, etc. | |
| Spring AI Alibaba Examples | Spring AI Alibaba Examples. | |
| JManus | A Java implementation of Manus built with Spring AI Alibaba, currently used in many applications within Alibaba Group. | |
| DataAgent | A natural language to SQL project based on Spring AI Alibaba, enabling you to query databases directly with natural language without writing complex SQL. | |
| DeepResearch | Deep research workflows built with Spring AI Alibaba Graph. |
Contact Us
- Dingtalk Group (钉钉群), search
182255021470and join.
- WeChat Group (微信公众号), scan the QR code below and follow us.
Resources
- AI-Native Application Architecture White Paper: Co-authored by 40 frontline engineers and endorsed by 15 industry experts, this 200,000+ word white paper is the first comprehensive guide dedicated to the full DevOps lifecycle of AI-native applications. It systematically breaks down core concepts and key challenges, offering practical problem-solving approaches and architectural insights.
Star History
Made with ❤️ by the Spring AI Alibaba Team
