Class SQLiteSession

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

public class SQLiteSession extends Object implements Session, AutoCloseable
SQLiteSession - Database-backed session storage

Stores conversation history in SQLite database with full persistence. Suitable for: - Production applications requiring data persistence - Multi-session management - Conversation history across restarts

Schema: - agent_sessions: Session metadata (session_id, created_at, updated_at) - agent_messages: Conversation items (session_id, item_json, timestamp, sequence_num)

Thread-safety: Each operation uses the connection in a thread-safe manner. WAL mode enables concurrent reads while writes are happening.

Ported from TypeScript OpenAI Agents SDK Source: https://github.com/openai/openai-agents-js (DrizzleSession pattern)