Class MemorySession

java.lang.Object
ai.acolite.agentsdk.core.memory.MemorySession
All Implemented Interfaces:
Session, AutoCloseable

public class MemorySession extends Object implements Session, AutoCloseable
MemorySession - In-memory session storage

Stores conversation history in RAM. Data is lost when the JVM exits. Suitable for: - Development and testing - Stateless applications where persistence isn't needed - Short-lived conversations

Thread-safe using CopyOnWriteArrayList.

Ported from TypeScript OpenAI Agents SDK Source: memory/memorySession.ts