Spring AI Advisors: Chat Memory, Token Tracking, and Message Logging (opens in new tab)
Abstract The previous two articles in this series — Building a Spring AI Assistant with MCP Servers: A Step-by-Step Tutorial and — laid the groundwork for moving from prototype to production when building business-driven Spring AI applications. In this last one, the tutorial is concluded. Why Advisors? When you build something with Spring AI's ChatClient, sooner or later you want behavior that crosses every request — keep conversation history so the next prompt has context, count tokens so yo...
Read the original article