// 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(); } }