Add ai-21-migration module: upgrading Spring AI 2.0.x to 2.1.0, measured. One probe source tree run on 2.0.0, 2.0.2, 2.0.3 and 2.1.0 (Anthropic prompt tokens with caching, auth header, discarded temperature, thinking parts, message mutability, entity() on refusals), three compile breaks, API and configuration diffs from the jars, ChatMemory to session copy, a wrapping ToolCallingManager under tool confirmation, the OpenAI Responses switch, VectorStore.upsert on real pgvector, a grep checklist and an OpenRewrite recipe. Scripted and local fake models; no provider called. Spring Boot 4.2.0, Spring AI 2.1.0, Java 25.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b7N4ZDbUtA3ofqAqRV
This commit is contained in:
Claude
2026-12-03 09:46:46 +05:30
parent 8f69e7bf50
commit c8fa0912f7
71 changed files with 1990 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# Public API and configuration-property differences between two Spring AI releases.
set -euo pipefail
cd "$(dirname "$0")/.."
old=${1:-2.0.3}; new=${2:-2.1.0}
scripts/fetch-jars.sh "$old"; scripts/fetch-jars.sh "$new"
java tools/ApiDiff.java "jars-cache/$old" "jars-cache/$new" | sed "1i # public API, Spring AI $old -> $new (tools/ApiDiff.java over every non-starter jar in the BOM)" > output/13-api-diff.txt
{ echo "# configuration metadata, Spring AI $old -> $new"; python3 -I scripts/config-diff.py "jars-cache/$old" "jars-cache/$new"; } > output/14-config-diff.txt
echo "wrote output/13-api-diff.txt and output/14-config-diff.txt"