Nous.Persistence.ETS (nous v0.16.0)
View SourceETS-based persistence backend.
Stores serialized context data in a named ETS table. The table is owned by a dedicated GenServer started under the Nous application supervisor, so the table outlives transient callers - previously the table died with whichever process happened to call save/load first.
Data does not survive node restarts. Useful for development, testing, and short-lived sessions.
Usage
# In AgentServer config
AgentServer.start_link(
session_id: "session_123",
agent_config: %{model: "openai:gpt-4", instructions: "Be helpful"},
persistence: Nous.Persistence.ETS
)