r/SpringBoot • • 2d ago

News Introducing Spring AI Agent ๐ŸŒฑ

On behalf of the Spring AI team, I'm excited to introduce Spring AI Agent, a new project that brings type-safe agentic foundations to Java and Kotlin, built in collaboration with JetBrains on top of Spring AI 2.1.

๐Ÿ‘‰ https://spring.io/blog/2026/12/03/spring-ai-agent-announcement

๐Ÿค– Agent<I, O> abstraction based on your own records or data classes
๐Ÿงฉ Graph-based composition and orchestration
๐Ÿ’พ Durable execution with session memory and checkpoints
๐Ÿ”— A2A for interoperability with remote agents
๐Ÿงต Virtual thread-friendly streaming

Version 0.8.0 is available now, ahead of the merge into Spring AI 3.0, and we'd love your feedback!

76 Upvotes

9 comments sorted by

1

u/Past-Hunt3151 1d ago

any documentation or examples available, like a how to guide or samples ?

1

u/sdeleuze 1d ago

Samples are implemented for now as integration tests.
Some follow-up blog posts are going to cover more in detail ModelGraphAgent and A2A.
DESIGN.md can also be used as a kind of user guide.
We will gradually provide more user document in the upcoming weeks.

2

u/EagleResponsible8752 16h ago

A normal test runs once and passes or fails. An LLM answer can pass 7 times out of 10, so a strict assertion either breaks the build at random or someone turns it off. I kept hitting this with Spring AI, so I built a small JUnit 5 extension for it.

How it works:

  • @EvalTest(runs = 10) runs a test several times and reports the pass rate with a 95% confidence interval
  • The result is compared with a baseline file in your repo. The build fails only when the pass rate really drops (Fisher exact test), so 9/10 then 8/10 is treated as noise, but 10/10 then 5/10 fails
  • RecordingChatModel records real model answers once and replays them in CI, so normal builds are offline and free
  • Datasets (JSONL/CSV), scores between 0 and 1, parallel runs, token cost tracking, and Spring Boot autoconfiguration that wraps your ChatModel bean

It's on Maven Central (0.2.0), Java 21, Spring AI 1.0.

https://github.com/rrezartprebreza/spring-ai-eval-baseline

I'd like feedback from anyone testing LLM features in Java, especially on the default thresholds.

1

u/improveForever 2d ago

Interesting. How long till AI gets good with it?

3

u/Hous3Fre4k 2d ago

I built an mcp server for spring docs that can help. Will try to update soon: https://sprig-mcp.de

3

u/Usual-Cricket-9817 2d ago

"Sprig 2026"

1

u/Hous3Fre4k 1d ago

Now supports spring-ai-agent docs and sources.