It was a release-free Thanksgiving week for the Spring portfolio after last week's big November GA wave; the Spring team instead published two deep dives on Spring AI 2.1 features.

Human in the Loop with Spring AI 2.1: Tool Calls That Survive a Restart

Spring AI 2.1 adds tool call confirmation, and a new blog post by Christian Tzolov shows how to use it for durable human approval. A tool can be marked for confirmation in three ways: requiresConfirmation = true on the tool annotation, listing it in the spring.ai.tools.confirmation.tools property, or supplying a ToolCallConfirmationPolicy bean for dynamic rules.

The tool loop keeps executing unmarked tools normally and only pauses when the model requests a marked one. The application gathers the human's decision and passes it back through ToolCallDecisions and toolCallingManager.executeToolCalls. To make the pause survive a process restart, the community project Spring AI Session Extensions 0.11.0 (spring-ai-session-turn-advisor, with TurnAdvisors and TurnStatusAdvisor.decisions) parks the turn in the session log so a different instance can resume it later.

The demo is a banking agent where a mortgage retry debit requires approval. The post is upfront about current limits in 0.11.0: a parked turn has no timeout or lease, and decisions are keyed by tool call rather than by question. Still, this is the cleanest built-in pattern so far for putting human approval in front of irreversible agent actions in a Spring app.

Read more — Spring Blog


Decision Models in Spring AI 2.1: Guardrails and Judges with Probabilities

A second post covers the DecisionModel API introduced in Spring AI 2.1. Instead of free-text answers, decision models return typed YesNoQuestion, ChoiceQuestion and ScoreQuestion results with probabilities attached, which makes them suitable for gating logic rather than prose generation.

The local option is Ollama's d1-omni:600m model (Ollama 0.40.4 or later); the hosted option is TypeSafe's jev-1.14.0. Median latency was 29 ms for three questions on the local model and about 150 ms on Jev, small enough to sit in the request path. The new spring-ai-decision-guardrail 0.5.0 provides a DecisionGuardrailAdvisor: by default a hazard score above 0.70 triggers BLOCK, and above 0.35 triggers REVIEW (which can be escalated to block with blockOnReview(true)).

The post also shows DecisionJudge combined with DecisionSelfRefineAdvisor (maxRepeatAttempts(3)) as an LLM-as-judge retry loop. It notes that Spring AI TypeSafe is being archived and that Decision Extensions 0.5.0 is the first release of its replacement.

Read more — Spring Blog