Add session-memory module: Spring AI 2.1 Session API (event log, turn-aware windows, compaction with summarizer, SessionAdvisors, JDBC on PostgreSQL 16) with 14 transcripts and the 2.0 ChatMemory deprecation warnings from javac. Spring Boot 4.1.1, Spring AI 2.1.0, Java 25.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6jDW7zqoKDMTRrCyq
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
# Compiles src/broken/LegacyChatMemory.java (the 2.0 ChatMemory setup) against Spring AI 2.1.0 with
|
||||
# -Xlint:deprecation and keeps the compiler's own words in output/12-chatmemory-deprecations.txt.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
mvn -q -B dependency:build-classpath -Dmdep.outputFile=target/cp.txt >/dev/null 2>&1
|
||||
mkdir -p target/legacy output
|
||||
{
|
||||
echo "# javac -Xlint:deprecation on the Spring AI 2.0 ChatMemory setup, compiled against Spring AI 2.1.0"
|
||||
echo
|
||||
echo '$ javac -Xlint:deprecation -cp <2.1.0 classpath> src/broken/LegacyChatMemory.java'
|
||||
javac -Xlint:deprecation -d target/legacy -cp "$(cat target/cp.txt)" src/broken/LegacyChatMemory.java 2>&1 \
|
||||
| grep -v '^Picked up' | sed 's#^src/broken/##' | sed 's/\.\.\. [0-9a-f]*$//'
|
||||
} > output/12-chatmemory-deprecations.txt
|
||||
cat output/12-chatmemory-deprecations.txt
|
||||
Reference in New Issue
Block a user