Spring AI: Decision Models | Decision Extensions | Demo Applications often need to make decisions with a predefined set of outcomes: Is this message a jailbreak attempt? Which team should handle this support ticket? How helpful is this answer? A chat model can handle these tasks, but the application still has to turn its text reply into a boolean, an enum or a numeric score. Last year we used a chat model and recursive advisors to implement LLM-as-a-Judge. That is still a useful approach, particularly when an evaluation requires general knowledge, reasoning or a written explanation of what…
Spring AI: Tool Call Confirmation | Session Extensions | Demo A bank support agent can look up why a mortgage payment failed. That is reading, and the model may do it on its own. Collecting the payment today moves money, and a person must approve it first. Asking "may I?" is the easy part. The hard part is the wait. The approver answers minutes or hours later, maybe on another instance of the application, maybe after a restart. Whatever the agent was doing must still be there when the answer comes. In Spring AI 2.0, approving a tool call meant user-controlled tool execution: you switch the…
On behalf of the Spring AI team and everyone who has contributed, I'm happy to announce that Spring AI 2.1.0 has been released and is now available from Maven Central! Release notes | Upgrade notes | Reference documentation Spring AI 2.1 arrives five months after 2.0.0 GA. It is built on Spring Boot 4.2 and contains more than 430 commits from 86 contributors. This post covers everything that changed since 2.0.0: the features of the 2.1 milestones and release candidates, what was added after RC2, and the additions that already shipped in 2.0.1 and 2.0.2. The short version: MCP 2026-07-2…
Spring AI: RAG Doc | Jev Doc | Demo Update (Spring AI 2.1.0 GA): JevDocumentFilter and JevDocumentReranker are now part of Spring AI as DecisionDocumentFilter and DecisionDocumentReranker, in the spring-ai-rag module, and they work with every DecisionModel provider, not only Jev. The demo already uses the new classes, so its code differs from the listings below. Spring AI TypeSafe is being archived: see Decision Models in Spring AI 2.1: Yes, No, and How Sure and the migration page. In the previous article we introduced Spring AI TypeSafe and its Jev model: typed questions in, calibrated…
On behalf of the Spring AI team and everyone who has contributed, I'm happy to announce that Spring AI 2.1.0-M1 has been released and is now available from Maven Central! Release notes | Upgrade notes | Reference documentation 2.1.0-M1 is the first milestone of the 2.1 line. It builds on everything that shipped in 2.0.1, moves the baseline to Spring Boot 4.2 (this milestone is built against 4.2.0-M2), and introduces three new capabilities: initial support for a structured, ordered model for message content, support for the OpenAI Responses API, and a way to write pre-computed embeddings into a…
Update (Spring AI 2.1.0 GA): The ideas in this article are now part of Spring AI as the DecisionModel API, with Ollama, OpenAI and System One as providers. Noul, Choice and Score became YesNoQuestion, ChoiceQuestion and ScoreQuestion, and the Jev… classes carry the Decision prefix, in Spring AI or in Spring AI Decision Extensions. Spring AI TypeSafe is being archived, so for new code start with Decision Models in Spring AI 2.1: Yes, No, and How Sure and the migration page. Reference documentation and GitHub repository We often need quick decision-making components in our AI applications: to…
On behalf of the Spring AI team and everyone who has contributed, I'm happy to announce that Spring AI 2.0.1 has been released and is now available from Maven Central! Release notes | Upgrade notes | Reference documentation | Javadoc 2.0.1 is the first maintenance release on top of the 2.0.0 GA foundations. It is a large one: more than 80 issues and pull requests, most of them driven by feedback from teams who moved their applications onto 2.0 in the past weeks. Alongside the fixes, it adds a handful of capabilities that were frequently requested since GA. CVEs fixed in this release CVE-202…
Large language models are text-in, text-out systems — their interface is natural language.
Natural language is a great interface for humans and a poor one for software. The moment downstream code needs to route on a field, persist a value, or branch on a result, the conversation has to become a record. Structured output bridges that gap. The model is steered to produce text conforming to a schema; the application parses it back into a typed object the rest of the codebase can treat like any other domain type. Spring AI has supported structured output since day one through ChatClient.call…
Tool calling — the ability for an AI model to invoke application-defined functions and act on the results — is the essential building block of agentic AI systems.
A model that can discover information, take action, and loop until a goal is reached is an agent. Spring AI 2.0 rearchitects tool calling from the ground up. In 1.x, each chat model implementation contained its own private tool execution loop — functional, but buried. There was no way to hook into it, observe intermediate steps, or compose it with other behaviors. You could call tools; you could not build on top of tool calling. 2.…
On behalf of the team and everyone who has contributed, I'm happy to announce that Spring AI 2.0.0 has been released and is now available from Maven Central! Release notes | Upgrade notes | Reference documentation | Javadoc Improved foundations Since the early days, Spring AI has grown very fast in terms of features, model support, contributions and users. That’s great and exciting, but we felt the need for setting a new baseline in terms of scope, quality and consistency in order to allow evolving the project in a sustainable way. So a few months ago, we took a step back and defined areas…