Urgent.News

What's breaking now, across thousands of outlets.

Editions

AI

Give Your Java Agents a Memory - Session Management with Solon AI

Most LLM demos are amnesiacs. The user says "my name is noear and I like blue" in turn one, asks "what's my name?" in turn two, and the model shrugs - because every HTTP call to the chat API is stateless, and nobody fed the history back in. In production this is not a cosmetic issue: a support agent that forgets the ticket the customer opened 30 seconds ago is worse than no agent at all. Solon AI…

Most open-source language models struggle with conversation history, since each request to the API is stateless. In a support scenario, forgetting the customer's issue mid-conversation is unacceptable. Solon AI addresses this by treating conversation state as a first-class construct. The framework leverages session abstractions to provide memory that survives restarts and scaling.

However, creating manual memory structures can lead to issues like unbounded message growth, system prompt pollution, lack of workflow state, and memory loss upon process termination. Solon AI solves these problems with dedicated layers. The ChatSession interface models the conversation as an append-only message sequence, providing a windowing primitive to retrieve the last N turns without deleting the full history.

The AgentSession extends ChatSession by adding workflow state management, such as suspending and resuming the conversation based on human input. By attaching a session to an agent, Solon AI handles message prompting, updating the session with the assistant's reply, and persisting the entire conversation. Solon AI offers pluggable backends for sessions, including in-memory, file-based, and Redis storage, enabling production deployment with multi-instance support.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

acc vs acc_norm: Why Length Bias Skews LLM Eval Scores

Your fine-tune gains three points of acc_norm on HellaSwag and loses two points of acc . Same checkpoint, same harness, same seed.

  • "acc" measures highest summed log-likelihood of candidate continuation
  • "accnorm" divides sum by byte length of continuation string
  • Length bias can skew LLM evaluation scores significantly

More from Thursday 20 August →