In-memory SessionStore reference adapter.
This adapter is intended for tests, local development, and examples. It keeps
opaque transcript entries in append order and maintains summary sidecars via
ClaudeAgentSDK.SessionStore.Summary.fold_session_summary/3.
Summary
Functions
Starts a new in-memory store and returns the adapter struct.
Starts a new in-memory store and raises on failure.
Types
@type t() :: %ClaudeAgentSDK.SessionStore.InMemory{server: pid()}
Functions
@spec append(t(), ClaudeAgentSDK.SessionStore.Key.input(), [map()]) :: :ok
@spec delete(t(), ClaudeAgentSDK.SessionStore.Key.input()) :: :ok
@spec list_subkeys(t(), ClaudeAgentSDK.SessionStore.Key.input()) :: [String.t()]
@spec load(t(), ClaudeAgentSDK.SessionStore.Key.input()) :: [map()] | nil
Starts a new in-memory store and returns the adapter struct.
@spec new!() :: t()
Starts a new in-memory store and raises on failure.