# `Nous.Persistence.ETS`
[🔗](https://github.com/nyo16/nous/blob/v0.17.1/lib/nous/persistence/ets.ex#L1)

ETS-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
    )

# `clear`

```elixir
@spec clear() :: :ok
```

Remove all persisted sessions. Routed through the owner (the table is
`:protected`, so only the owner may write). Useful for tests.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
