Real PostgreSQL 16 and Redis Stack 7.4; 24 tests write output/01-24. Covers the 20-message default window with no property, the 36-character conversation_id, tool messages dropped by JdbcChatMemoryRepository, concurrent add() on one conversation, a 1.x table under the 2.0 repository, the Redis repository silently backing off for a custom ChatMemory, and the removal of PromptChatMemoryAdvisor. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ja4jkzrbQ4LQZBNrb5mkZE
13 lines
507 B
Java
13 lines
507 B
Java
// Deliberately NOT part of the build (src/broken is not a source root). Compiled by
|
|
// scripts/capture-1x-compile.sh to capture the compiler's own message.
|
|
import org.springframework.ai.chat.client.advisor.PromptChatMemoryAdvisor;
|
|
import org.springframework.ai.chat.memory.ChatMemory;
|
|
|
|
class PromptAdvisorFrom1x {
|
|
|
|
Object build(ChatMemory chatMemory) {
|
|
// Spring AI 1.x: memory rendered into the system prompt as text
|
|
return PromptChatMemoryAdvisor.builder(chatMemory).build();
|
|
}
|
|
}
|