Tagged articles

ChatMemory

7 articles · Page 1 of 1
Java Architecture Diary
Java Architecture Diary
Jul 1, 2026 · Artificial Intelligence

Spring AI Overhauls Memory: Replacing ChatMemory with Session

Spring AI’s new Session model replaces the fragile sliding‑window ChatMemory, introducing immutable Session metadata, event‑based Turn grouping, configurable compaction triggers and strategies, multi‑agent Branch isolation, and a JDBC‑backed repository to reliably handle long‑running tool‑calling agents.

AgentChatMemoryMemory Management
0 likes · 10 min read
Spring AI Overhauls Memory: Replacing ChatMemory with Session
Coder Trainee
Coder Trainee
Jun 22, 2026 · Artificial Intelligence

Building Java AI Agents with LangChain4j: A Hands‑On Guide

This article explains why LangChain4j is needed for advanced Java AI agents, compares its capabilities with Spring AI, walks through project setup, configuration, defining tools and memory, assembling the agent, and demonstrates a complete smart‑customer service example with testing commands.

AI agentsChatMemoryLangChain4j
0 likes · 10 min read
Building Java AI Agents with LangChain4j: A Hands‑On Guide
The Dominant Programmer
The Dominant Programmer
May 26, 2026 · Artificial Intelligence

Spring AI ChatMemory: Concepts, Practical Setup, and Common Issues

This guide explains how Spring AI abstracts LLM conversation memory using a three‑layer architecture, demonstrates configuring MessageWindowChatMemory with a sliding‑window strategy, shows two ways to register the memory advisor, and provides complete Maven, YAML, and Java code examples with test screenshots.

ChatMemoryConversation MemoryLLM
0 likes · 9 min read
Spring AI ChatMemory: Concepts, Practical Setup, and Common Issues
java1234
java1234
Apr 22, 2026 · Artificial Intelligence

Getting Started with LangChain4j: Building Java AI Agents with a Mature LLM Framework

LangChain4j fills the long‑standing gap for Java developers by offering a Java‑native, enterprise‑grade LLM framework that abstracts model calls, prompts, memory, tools, RAG, streaming and structured output, enabling quick setup, clean AI Service definitions, and seamless integration into Spring Boot or Quarkus applications.

AI servicesChatMemoryLLM
0 likes · 24 min read
Getting Started with LangChain4j: Building Java AI Agents with a Mature LLM Framework
Coder Circle
Coder Circle
Apr 16, 2026 · Artificial Intelligence

Add Context Memory to Your AI in 5 Lines with Spring AI ChatMemory

The article demonstrates how to give a Spring Boot AI chatbot persistent context using Spring AI's ChatMemory, showing the problem of stateless requests, explaining the ChatMemory architecture, providing a five‑line code example, comparing storage options (InMemory, JDBC, Redis), and sharing practical tips and pitfalls.

AI conversationChatMemorySpring AI
0 likes · 7 min read
Add Context Memory to Your AI in 5 Lines with Spring AI ChatMemory