The Spring team has introduced Spring AI Agent, a new experimental project that aims to give Java and Kotlin developers what it calls “type-safe agentic foundations.” Announced on the Spring blog on 3 December by Sébastien Deleuze, the first public release, version 0.8.0, builds on Spring AI 2.1 and adds orchestration, durability and interoperability features for AI agents. The modules are incubating separately for now and are slated to join Spring AI 3.0 in May 2027.
A typed Agent interface
The post defines an agent as “a model plus a harness” and notes that Spring AI already supports the idea through ChatClient. The new project centers on a generic Agent interface with typed input and output, usually records, Kotlin data classes or plain strings. It offers synchronous methods that return a result and asynchronous methods that return a running handle, plus resume variants for continuing a paused run. A ChatClientAgent adapter exposes an existing ChatClient as an agent and uses structured output when the result type is not a string, while a helper lets an ordinary ChatClient call an agent as a tool.
Graphs for single and multi-agent flows
Two orchestration styles are included. ModelGraphAgent composes one agent as a type-safe graph mixing model calls, tool calls, deterministic checks and human-in-the-loop interrupts, with guardrails applied to complete outputs rather than streamed text. GraphAgent coordinates several subagents as graph nodes. The blog’s example runs a triage agent followed by three parallel rebooking searches, with selection policies such as taking the first result, all results or a minimum number within a timeout. According to the post, each subagent can have its own model, tools, instructions and permissions, and context can either be shared with the parent conversation or forked per branch.
Enterprise features and durability
Spring AI Agent exposes three extension points: hooks at run boundaries, interceptors that wrap calls and asynchronous listeners for events. Features attached to a top-level agent apply to its subagents. A session feature links to Spring AI Session for memory with compaction, and a checkpoint feature saves state after every node and tool round so runs can resume after a crash or human input. In-memory and file-based checkpoint stores ship initially.
Streaming, virtual threads and A2A
The project relies on the Spring team’s new stream-source library for imperative streaming with backpressure, using virtual threads when available and falling back to platform threads on Java 17. Adapters connect it to Reactive Streams. For interoperability, a remote agent type can call agents over the A2A protocol, and any agent can be exposed as an A2A server.
Kotlin and JetBrains collaboration
Kotlin gets dedicated extensions and DSL builders. The design was inspired by JetBrains’ Koog framework, and the Spring team says it will work with JetBrains on more Kotlin support for the Spring AI 3.0 documentation, though it does not aim to match every Koog feature.
Road to Spring AI 3.0
The code lives in the spring-projects-experimental organization for the next few months. Spring AI 3.0 is planned to adopt a virtual-thread programming model, drop the mandatory Reactor dependency and recommend Spring MVC and RestClient on Java 25 and later, while keeping Java 17 and 21 support. The team is asking for feedback on the design document and API, and requests that contributors open issues rather than submit pull requests directly.
Sources:

