ETS-backed persistent context that survives agent restarts.
Stores agent state snapshots keyed by agent_id. When an agent crashes and restarts, it can restore its context from here rather than starting from scratch.
Table: :raxol_agent_contexts, named_table, public, set, read_concurrency.
Summary
Functions
Deletes an agent's context.
Initializes the ETS table. Safe to call multiple times.
Lists all agent ids that have stored contexts.
Loads the most recent context snapshot for an agent.
Saves a context snapshot for an agent.
Updates an agent's context by applying a transformation function.
Functions
@spec delete(atom()) :: :ok
Deletes an agent's context.
@spec init() :: :ok
Initializes the ETS table. Safe to call multiple times.
@spec list() :: [atom()]
Lists all agent ids that have stored contexts.
Loads the most recent context snapshot for an agent.
Saves a context snapshot for an agent.
Updates an agent's context by applying a transformation function.